[RFC] Teaching mount(8) to use nmount()
Craig Rodrigues
rodrigc at crodrigues.org
Sun Oct 9 08:21:59 PDT 2005
Hi,
By the way, one side benefit of adding nmount() to mount(8)
is that we can eliminate unnecessary
mount_* binaries from /rescue and free up space.
For example, on my system:
-r-xr-xr-x 131 root wheel 3256200 Oct 8 21:49 mount
-r-xr-xr-x 131 root wheel 3256200 Oct 8 21:49 mount_cd9660
-r-xr-xr-x 131 root wheel 3256200 Oct 8 21:49 mount_devfs
-r-xr-xr-x 131 root wheel 3256200 Oct 8 21:49 mount_ext2fs
-r-xr-xr-x 131 root wheel 3256200 Oct 8 21:49 mount_fdescfs
-r-xr-xr-x 131 root wheel 3256200 Oct 8 21:49 mount_linprocfs
-r-xr-xr-x 131 root wheel 3256200 Oct 8 21:49 mount_msdosfs
-r-xr-xr-x 131 root wheel 3256200 Oct 8 21:49 mount_nfs
-r-xr-xr-x 131 root wheel 3256200 Oct 8 21:49 mount_ntfs
-r-xr-xr-x 131 root wheel 3256200 Oct 8 21:49 mount_nullfs
-r-xr-xr-x 131 root wheel 3256200 Oct 8 21:49 mount_procfs
-r-xr-xr-x 131 root wheel 3256200 Oct 8 21:49 mount_std
-r-xr-xr-x 131 root wheel 3256200 Oct 8 21:49 mount_udf
-r-xr-xr-x 131 root wheel 3256200 Oct 8 21:49 mount_umapfs
-r-xr-xr-x 131 root wheel 3256200 Oct 8 21:49 mount_unionfs
I've found that mount_devfs, mount_std, mount_procfs, mount_fdescfs,
mount_nullfs, and mount_ext2fs are basically thin wrappers around nmount()
(i.e. no special arguments) and can go right away.
--
Craig Rodrigues
rodrigc at crodrigues.org
More information about the freebsd-arch
mailing list