DragonFly-2.3.2.302.g65072 master include fstab.h lib/libc/gen Makefile.inc fstab.c getdevpath.3 getdevpath.c lib/libutil Makefile getdevpath.3 getdevpath.c libutil.h sbin/getdevpath Makefile getdevpath.c share/man/man5 fstab.5 sys/boot/common loader.8 sys/kern vfs_conf.c sys/vfs/devfs devfs_core.c

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Aug 5 19:46:38 PDT 2009


commit 6507240b2fcfebaacc0f92f997dad76922e1d8c0
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Aug 5 19:37:53 2009 -0700

    DEVTAB - Add mountroot & fstab support for serial numbers, and devtab.
    
    * The vfs.root.mountfrom /boot/loader.conf variable may now specify
      devfs aliases, allowing it to specify root mounts by serial number.
      Here is an example:
    
        vfs.root.mountfrom="hammer:serno/L41JYE0G.s1d"
    
      Note that vfs.root.mountfrom may NOT currently specify /etc/devtab labels.
    
    * /etc/fstab may now specify devfs relative paths (such as serial numbers)
      as well as /etc/devtab labels.  A ".suffix" may be used to extend the
      translation so /etc/devtab only needs to specify the base label.
    
      Example /etc/fstab:
    
        # Device                Mountpoint FStype  Options  Dump    Pass
        #
        driveA.s1d              /          hammer  rw       1       1
        driveA.s1b              none       swap    sw       0       0
        driveA.s1a              /boot      ufs     rw       1       1
        serno/L41JYE0G.s1d      /fubar     hammer  rw       1       1
    
       /etc/devtab:
    
        driveA          serno   L41JYE0G

Summary of changes:
 include/fstab.h              |    5 +
 lib/libc/gen/Makefile.inc    |    4 +-
 lib/libc/gen/fstab.c         |   16 +++-
 lib/libc/gen/getdevpath.3    |  126 ++++++++++++++++++++++
 lib/libc/gen/getdevpath.c    |  237 ++++++++++++++++++++++++++++++++++++++++++
 lib/libutil/Makefile         |    6 +-
 lib/libutil/getdevpath.3     |  126 ----------------------
 lib/libutil/getdevpath.c     |  199 -----------------------------------
 lib/libutil/libutil.h        |    5 -
 sbin/getdevpath/Makefile     |    1 -
 sbin/getdevpath/getdevpath.c |    2 +-
 share/man/man5/fstab.5       |    7 +-
 sys/boot/common/loader.8     |    3 +
 sys/kern/vfs_conf.c          |   51 +---------
 sys/vfs/devfs/devfs_core.c   |   17 +++-
 15 files changed, 412 insertions(+), 393 deletions(-)
 create mode 100644 lib/libc/gen/getdevpath.3
 create mode 100644 lib/libc/gen/getdevpath.c
 delete mode 100644 lib/libutil/getdevpath.3
 delete mode 100644 lib/libutil/getdevpath.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6507240b2fcfebaacc0f92f997dad76922e1d8c0


-- 
DragonFly BSD source repository





More information about the Commits mailing list