DragonFly commits List (threaded) for 2012-05
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: mount - Split mount into mount_ufs, auto-detect fstype from disklabel
commit 9ecd376256edb5fbb7d777d3e7f2f88ca5e28760
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date: Thu May 10 22:12:28 2012 -0700
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.
Summary of changes:
sbin/Makefile | 1 +
sbin/mount/Makefile | 4 +-
sbin/mount/extern.h | 3 -
sbin/mount/mount.c | 107 +++++++++++++++++++++---
sbin/{mount => mount_ufs}/Makefile | 10 ++-
sbin/{mount => mount_ufs}/mount.c | 9 ++-
sbin/{mount/mount.8 => mount_ufs/mount_ufs.8} | 0
sbin/{mount => mount_ufs}/mount_ufs.c | 0
sys/sys/dtype.h | 92 +++++++++++++++-------
9 files changed, 171 insertions(+), 55 deletions(-)
copy sbin/{mount => mount_ufs}/Makefile (68%)
copy sbin/{mount => mount_ufs}/mount.c (99%)
copy sbin/{mount/mount.8 => mount_ufs/mount_ufs.8} (100%)
rename sbin/{mount => mount_ufs}/mount_ufs.c (100%)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9ecd376256edb5fbb7d777d3e7f2f88ca5e28760
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]