3.3 XFS
Support: only supported by executing xfs_db
from xfsprogs,
because I haven’t found any usable development library.
Compiling requirements:
- the unistd.h header
- the fcntl.h header
- the mntent.h header
- the wait.h header or sys/wait.h (not required, actually, but a good thing to have)
- the sched.h header (not required, actually, but a good thing to have)
- the paths.h header (not required, actually, but a good thing to have)
- the ‘fork’ function
- the ‘execvp’ function
- the ‘dup2’ function
- the ‘close’ function
- the ‘pipe’ function
- the ‘kill’ function
- the ‘waitpid’ or ‘wait’ function
- the ‘sleep’ function (not required, actually, but a good thing to have)
- the ‘long long’ data type support in the compiler
- xfsprogs installed and in your
PATH
variable
(devel package unusable, so not required). Can be downloaded from
https://kernel.org/pub/linux/utils/fs/xfs/xfsprogs/ (previous address:
’http://oss.sgi.com/projects/xfs/’)
Compile and install that package. The following utilities should be available:
xfs_db
, xfs_freeze
, xfs_unfreeze
.
The xfs_db
program should support the following
command-line options: -i, -c and the following interactive mode commands:
‘quit’, ‘freesp -d’, ‘blockget -n’, ‘ncheck’, ‘sb 0’, ‘print’.
Version 2.7.11 is enough, earlier versions will probably also work.
Operations:
- wiping the free space
- wiping deleted files’ data (part of free space or partially used blocks)
- wiping free space in partially used blocks