Axel Beckert ⌨🐧🐪🚴😷 XTaran on Nostr: #TIL that options to subcommands of #xfs_db need to be in the same parameter as the ...
#TIL that options to subcommands of #xfs_db need to be in the same parameter as the subcommand, i.e. need to be quoted:
xfs_db -c "frag -f -v" -r /dev/vgdata/data
The parameter to -c is the subcommand including its parameters.
-f (a frag parameter) says that only file fragmentation should be checked.
-v (a frag parameter) says that the fragementation of each inode should be listed.
-r (an xfs_db parameter again) says that the device should be opened read-only. (Required for a mounted #XFS.)
xfs_db -c "frag -f -v" -r /dev/vgdata/data
The parameter to -c is the subcommand including its parameters.
-f (a frag parameter) says that only file fragmentation should be checked.
-v (a frag parameter) says that the fragementation of each inode should be listed.
-r (an xfs_db parameter again) says that the device should be opened read-only. (Required for a mounted #XFS.)