cvs commit: src/sbin/mount mntopts.h mount_ufs.c src/sbin/mount_cd9660 mount_cd9660.c src/sbin/mount_ext2fs mount_ext2fs.c src/sbin/mount_hpfs mount_hpfs.c src/sbin/mount_msdosfs mount_msdosfs.c src/sbin/mount_nfs ...

Xin LI delphij at FreeBSD.org
Wed Jun 1 02:39:37 PDT 2005


delphij     2005-06-01 09:39:36 UTC

  FreeBSD src repository

  Modified files:
    sbin/mount           mntopts.h mount_ufs.c 
    sbin/mount_cd9660    mount_cd9660.c 
    sbin/mount_ext2fs    mount_ext2fs.c 
    sbin/mount_hpfs      mount_hpfs.c 
    sbin/mount_msdosfs   mount_msdosfs.c 
    sbin/mount_nfs       mount_nfs.c 
    sbin/mount_nfs4      mount_nfs4.c 
    sbin/mount_ntfs      mount_ntfs.c 
    sbin/mount_nullfs    mount_nullfs.c 
    sbin/mount_reiserfs  mount_reiserfs.c 
    sbin/mount_std       mount_std.c 
    sbin/mount_udf       mount_udf.c 
    sbin/mount_ufs       mount_ufs.c 
    sbin/mount_umapfs    mount_umapfs.c 
    sbin/mount_unionfs   mount_unionfs.c 
  Log:
  Add a handy macro to represent null mount option, MOPT_NULL, and make
  use of the macro in sbin/mount*'s, by replacing:
  
          mopts[] = {
              MOPT_STDOPTS,
              { NULL }
          }
  
  With:
          mopts[] = {
              MOPT_STDOPTS,
              MOPT_NULL
          }
  
  This change will help to reduce the situation that we don't explicitly
  initialize "struct mntopt"'s.  It should not contribute to any
  functional/logical changes as far as I can tell.
  
  Revision  Changes    Path
  1.25      +3 -0      src/sbin/mount/mntopts.h
  1.25      +1 -1      src/sbin/mount/mount_ufs.c
  1.29      +1 -1      src/sbin/mount_cd9660/mount_cd9660.c
  1.19      +1 -1      src/sbin/mount_ext2fs/mount_ext2fs.c
  1.5       +1 -1      src/sbin/mount_hpfs/mount_hpfs.c
  1.35      +1 -1      src/sbin/mount_msdosfs/mount_msdosfs.c
  1.64      +1 -1      src/sbin/mount_nfs/mount_nfs.c
  1.6       +1 -1      src/sbin/mount_nfs4/mount_nfs4.c
  1.13      +1 -1      src/sbin/mount_ntfs/mount_ntfs.c
  1.24      +1 -1      src/sbin/mount_nullfs/mount_nullfs.c
  1.2       +1 -1      src/sbin/mount_reiserfs/mount_reiserfs.c
  1.20      +1 -1      src/sbin/mount_std/mount_std.c
  1.12      +1 -1      src/sbin/mount_udf/mount_udf.c
  1.3       +1 -1      src/sbin/mount_ufs/mount_ufs.c
  1.24      +1 -1      src/sbin/mount_umapfs/mount_umapfs.c
  1.23      +1 -1      src/sbin/mount_unionfs/mount_unionfs.c


More information about the cvs-src mailing list