Giter Site home page Giter Site logo

fuse-ufs2's People

Contributors

danielo avatar jblumsch avatar mkatiyar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

fuse-ufs2's Issues

Drop unnecessary external references

  • -lbsd linked by "libufs" component (may not be easily available on some systems, and actually should not be needed)
  • <ext2fs/...h> includes pulled by "fuse-ufs" sources (those may not be available on systems other than Linux)
  • -lcom_err linked by "fuse-ufs" build (not actually needed, remnant of ext2fs stuff?)

Build issues

Building the project "out of the box" and installing into a sandbox environment fails:

  • Compiling the "fuse-ufs" component fails on Linux / x86_64:

      do_fillstatbuf.c:45:4: error: 'struct stat' has no member named '__st_ino'
    
  • ./configure --prefix=... does not work as expected: make install ignores --prefix and insists on writing into /usr/local/lib/(while installing the "libufs" component),

  • and, regardless of --prefix, make install first makes sure that /usr/sbin exists, then attempts to write into /sbin/(while installing the "fuse-ufs" part)

  • Off-tree build using cd ${builddir}; ${sourcedir}/configure ... fails:

    • configure complains:
      configure: error: source directory already configured; run "make distclean" there first`
      
    • make distclean fails:
      Making distclean in fuse-ufs
      make[1]: Entering directory `/.../fuse-ufs'
      Makefile:558: .deps/fuse_ufs-do_check.Po: No such file or directory
      Makefile:559: .deps/fuse_ufs-do_fillstatbuf.Po: No such file or directory
      ...
      
  • Once that is fixed, the off-tree build does not take care of the "libufs" component:

      Making all in libufs
      /bin/sh: line 17: cd: libufs: No such file or directory
    

[GUIDE] How to build and run fuse-ufs2 on Ubuntu 20.04 (Focal Fossa)

Unfortunately, the README is lacking on all the dependencies that are required, and certain weirdness with executable names (possibly some sort-of automake alias syntax that no longer works?)

The below commands include applying the patch in PR #4 from @dreibh #4

By running the commands below, you should be able to compile and install fuse-ufs2 on Ubuntu 20.04 (Focal Fossa), and may also work on other versions of Ubuntu or debian-based distros.

git clone https://github.com/mkatiyar/fuse-ufs2.git
cd fuse-ufs2
# apply patch from github PR #4 from dreibh
curl https://raw.githubusercontent.com/mkatiyar/fuse-ufs2/40b3d1f7eac1532e70303f1d5123bbd1efd95c8f/fuse-ufs/op_create.c > fuse-ufs/op_create.c

# install various dependencies and build tools
apt update
apt install -y libfuse-dev fuse build-essential
apt install -y autotools-dev automake libtool-bin e2fslibs-dev

# make calls specific versions of programs and weird capital case @ prefixed/suffixed names
# so create symbolic links to make it work...
ln -s /usr/bin/aclocal-1.16 /usr/bin/aclocal-1.13
ln -s /usr/bin/automake /usr/bin/automake-1.13
ln -s /usr/bin/ranlib /usr/bin/RANLIB\@
ln -s /usr/bin/libtool /usr/bin/LIBTOOL\@
ln -s /usr/bin/libtool /usr/bin/\@LIBTOOL\@

# Create LN_S@ which simply runs ln -s and forwards any CLI arguments.
cat > /usr/local/bin/LN_S\@ <<"EOF"
#!/usr/bin/env bash
ln -s "$@"

EOF

# Make LN_S@ executable
chmod +x /usr/local/bin/LN_S\@

# Finally build and install fuse-ufs2 ...
./configure
make -j4
make install

I hope this helps other people trying to use this FUSE plugin.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.