mkatiyar / fuse-ufs2 Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v2.0
License: GNU General Public License v2.0
-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?)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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.