Here are some suggestions for xfsprogs.
Some people want xfs to be the standard file system for GNU/Linux. These
changes will bring compatibility with other tools and file systems.
You could take a look to the other fs utilities to find common switches.
I know that you are not responsible for all of these things.
Mkfs.xfs:
-L should be appended as xfs_admin has it.
-(c/C?) for the bad block command.
Mount.xfs:
Acl, user_xattr: put these options in mount or in the xfs kernel module.
Both should ignore them. (only for compatibility)
I migrated from ext3 to xfs and I only changed the file system type in
/etc/fstab. After reboot the root partition was not mounted rw, because
of this not appended feature. I had to edit /etc/fstab and delete these
options.
You can log a notice message that acl, user_xattr are ignored and on by
default.
XFS has acls on by default I know.
Resize: this should also be appended. JFS has this option and file
system size will grow. This option can executed xfs_growfs.
Fsck.xfs:
This tells only success.
-f: should execute xfs_check on a ro file system.
(ext2/3 has a option for optimization I don't know the switch now)
execute xfs_fsr on a ro file system.
Add the usal options for fsck too. Fsck.xfs should also report the used
blocks and the whole blocks and should report about fragmentation. If
you want you can add a percentage when fsck.xfs will start xfs_fsr
automatically.
Xfs_check:
Mv -v to -vv.
-v should say checking journal, replaying journal, checking directories
and files, checking ownerships and permissions and acls
If it finds errors it should execute xfs_repair or xfs_ncheck to correct
these errors.
Xfs_fsr:
You usally use it on a rw mounted fs. But if you add ro and non mounted
you are able to optimize faster and no application can disturb. After
optimization the system should be rebooted. I think error level 1 or 2
should be reported, that the boot scripts know that an error accrued and
the system will be rebooted. This ensures that the application find its
libraries and other stuff. Xfs_fsr is going to put them away from their
place, and put them later back.
Xfs_admin:
Should get a link to xfstune or should be renamed. There are
reiserfstune and tune2fs. I think that sounds logically.
Xfs_grow:
It should not only be able to grow the fs size. It should also be able
to shrink. Reiserfs knows howto grow and to shrink.
Best regards
Daniel
|