Next: JFS, Previous: FAT12/16/32, Up: Filesystems support [Contents]
Support: using the mfstool program unofficially as a library.
Compiling requirements:
‘sed -i 's/opt_squash/0/g' `ls *.c | egrep -v main`’
then compile the program (‘./configure && make’), then perform
‘ar surf libminixfs.a `ls *.o | egrep -v main`’
Then copy the files libminixfs.a, minix_fs.h and protos.h to a directory
where the C compiler can find them (or put the correct -I and -L options
in the compiler flags). You can use the provided patches to do this
instead of the sed
command:
‘patch -F10 -p1 < /path/to/wipefreespace-XX/patches/mfstool-0.5.diff’
WARNING: If both ReiserFSv3 and MinixFS are enabled, the program
may refuse to link if the compiler doesn’t support the command line option
-Wl,-z -Wl,muldefs that makes the linker accept multiple symbol
definitions. If you have this problem, disable the support for either
of these filesystems (you can compile two versions of the program).
You can fix either of these libraries yourself, by running
‘find . -type f -exec sed -i 's/die/new_die/g' '{}' \;’
in the root directory of either reiserfsprogs or mfstool (but NOT both, because this would bring back the same problem, but with a different name). Type the command as above. The command must be run BEFORE compiling reiserfs/mfstool. You can use the provided patches to do this:
‘patch -F10 -p1 < /path/to/wipefreespace-XX/patches/mfstool-0.5.diff’
‘patch -F10 -p1 < /path/to/wipefreespace-XX/patches/reiser-3.6.XX.diff’
Operations:
Next: JFS, Previous: FAT12/16/32, Up: Filesystems support [Contents]