mount - Split mount into mount_ufs, auto-detect fstype from disklabel
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 11 May 2012 05:12:28 +0000 (22:12 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 11 May 2012 05:12:28 +0000 (22:12 -0700)
commit9ecd376256edb5fbb7d777d3e7f2f88ca5e28760
tree1b2aac88fe7ed70d5f4f4ef7e1aa8209bff11c23
parent2a3a6ffde91129cf29faded8f47e8fa2390e5581
mount - Split mount into mount_ufs, auto-detect fstype from disklabel

* Move the compiled-in ufs mount code from mount to a new utility called
  mount_ufs.

* When mount determines the filesystem type is ufs it now exec's mount_ufs
  instead of calling the built-in ufs code.

* When mounting a disklabeled device and the fstype is not specified
  mount will attempt to figure out the fstype from the disklabel.

  Devices matching acd%d and cd%d will default to the 'cd9660' fstype.

  It defaults to ufs if it cannot figure it out (as before).

* If your filesystems are properly labeled this allows you to specify
  the mount generically as in this example:

      mount /dev/da0s1d /mnt

  And mount will exec mount_ufs or mount_hammer (etc...) as appropriate.

* NOTE! mount cannot currently auto-detect msdosfs or extract the DOS
  slice type.  It would be cool if it were extended further to do this
  as well.  Currently it only understands DragonFly disklabels.
sbin/Makefile
sbin/mount/Makefile
sbin/mount/extern.h
sbin/mount/mount.c
sbin/mount_ufs/Makefile [copied from sbin/mount/Makefile with 68% similarity]
sbin/mount_ufs/mount.c [copied from sbin/mount/mount.c with 99% similarity]
sbin/mount_ufs/mount_ufs.8 [new file with mode: 0644]
sbin/mount_ufs/mount_ufs.c [moved from sbin/mount/mount_ufs.c with 100% similarity]
sys/sys/dtype.h