cvs commit: src/sys/coda coda_vnops.c coda_vnops.h src/sys/conf kern.post.mk src/sys/fs/deadfs dead_vnops.c src/sys/fs/devfs devfs_vnops.c src/sys/fs/fdescfs fdesc_vnops.c src/sys/fs/fifofs fifo.h fifo_vnops.c src/sys/fs/hpfs hpfs.h hpfs_vfsops.c ...

Poul-Henning Kamp phk at FreeBSD.org
Wed Dec 1 15:16:39 PST 2004


phk         2004-12-01 23:16:38 UTC

  FreeBSD src repository

  Modified files:
    sys/coda             coda_vnops.c coda_vnops.h 
    sys/conf             kern.post.mk 
    sys/fs/deadfs        dead_vnops.c 
    sys/fs/devfs         devfs_vnops.c 
    sys/fs/fdescfs       fdesc_vnops.c 
    sys/fs/fifofs        fifo.h fifo_vnops.c 
    sys/fs/hpfs          hpfs.h hpfs_vfsops.c hpfs_vnops.c 
    sys/fs/msdosfs       denode.h msdosfs_denode.c msdosfs_vnops.c 
    sys/fs/ntfs          ntfs.h ntfs_vfsops.c ntfs_vnops.c 
    sys/fs/nullfs        null.h null_subr.c null_vfsops.c 
                         null_vnops.c 
    sys/fs/nwfs          nwfs.h nwfs_node.c nwfs_vnops.c 
    sys/fs/portalfs      portal.h portal_vfsops.c portal_vnops.c 
    sys/fs/pseudofs      pseudofs_vncache.c pseudofs_vnops.c 
    sys/fs/smbfs         smbfs_node.c smbfs_vnops.c 
    sys/fs/udf           udf_vnops.c 
    sys/fs/umapfs        umap.h umap_vnops.c 
    sys/fs/unionfs       union.h union_subr.c union_vnops.c 
    sys/gnu/ext2fs       ext2_extern.h ext2_vfsops.c ext2_vnops.c 
    sys/isofs/cd9660     cd9660_vfsops.c cd9660_vnops.c iso.h 
    sys/kern             vfs_default.c vfs_init.c vfs_subr.c 
    sys/nfs4client       nfs4_vnops.c 
    sys/nfsclient        nfs_node.c nfs_subs.c nfs_vnops.c 
                         nfsnode.h 
    sys/posix4           posix4_mib.c 
    sys/sys              vnode.h 
    sys/tools            vnode_if.awk 
    sys/ufs/ffs          ffs_extern.h ffs_vfsops.c ffs_vnops.c 
    sys/ufs/ufs          ufs_extern.h ufs_vnops.c 
  Log:
  Back when VOP_* was introduced, we did not have new-style struct
  initializations but we did have lofty goals and big ideals.
  
  Adjust to more contemporary circumstances and gain type checking.
  
          Replace the entire vop_t frobbing thing with properly typed
          structures.  The only casualty is that we can not add a new
          VOP_ method with a loadable module.  History has not given
          us reason to belive this would ever be feasible in the the
          first place.
  
          Eliminate in toto VOCALL(), vop_t, VNODEOP_SET() etc.
  
          Give coda correct prototypes and function definitions for
          all vop_()s.
  
          Generate a bit more data from the vnode_if.src file:  a
          struct vop_vector and protype typedefs for all vop methods.
  
          Add a new vop_bypass() and make vop_default be a pointer
          to another struct vop_vector.
  
          Remove a lot of vfs_init since vop_vector is ready to use
          from the compiler.
  
          Cast various vop_mumble() to void * with uppercase name,
          for instance VOP_PANIC, VOP_NULL etc.
  
          Implement VCALL() by making vdesc_offset the offsetof() the
          relevant function pointer in vop_vector.  This is disgusting
          but since the code is generated by a script comparatively
          safe.  The alternative for nullfs etc. would be much worse.
  
          Fix up all vnode method vectors to remove casts so they
          become typesafe.  (The bulk of this is generated by scripts)
  
  Revision  Changes    Path
  1.55      +70 -157   src/sys/coda/coda_vnops.c
  1.14      +27 -27    src/sys/coda/coda_vnops.h
  1.74      +2 -0      src/sys/conf/kern.post.mk
  1.43      +27 -33    src/sys/fs/deadfs/dead_vnops.c
  1.88      +48 -61    src/sys/fs/devfs/devfs_vnops.c
  1.96      +14 -19    src/sys/fs/fdescfs/fdesc_vnops.c
  1.19      +0 -2      src/sys/fs/fifofs/fifo.h
  1.108     +25 -41    src/sys/fs/fifofs/fifo_vnops.c
  1.16      +1 -1      src/sys/fs/hpfs/hpfs.h
  1.42      +1 -1      src/sys/fs/hpfs/hpfs_vfsops.c
  1.55      +22 -30    src/sys/fs/hpfs/hpfs_vnops.c
  1.29      +1 -1      src/sys/fs/msdosfs/denode.h
  1.76      +1 -1      src/sys/fs/msdosfs/msdosfs_denode.c
  1.154     +27 -33    src/sys/fs/msdosfs/msdosfs_vnops.c
  1.18      +1 -1      src/sys/fs/ntfs/ntfs.h
  1.67      +1 -1      src/sys/fs/ntfs/ntfs_vfsops.c
  1.46      +26 -40    src/sys/fs/ntfs/ntfs_vnops.c
  1.21      +1 -1      src/sys/fs/nullfs/null.h
  1.44      +1 -1      src/sys/fs/nullfs/null_subr.c
  1.66      +1 -1      src/sys/fs/nullfs/null_vfsops.c
  1.69      +21 -27    src/sys/fs/nullfs/null_vnops.c
  1.7       +3 -0      src/sys/fs/nwfs/nwfs.h
  1.31      +1 -3      src/sys/fs/nwfs/nwfs_node.c
  1.33      +28 -34    src/sys/fs/nwfs/nwfs_vnops.c
  1.9       +1 -1      src/sys/fs/portalfs/portal.h
  1.53      +1 -1      src/sys/fs/portalfs/portal_vfsops.c
  1.67      +11 -17    src/sys/fs/portalfs/portal_vnops.c
  1.27      +2 -2      src/sys/fs/pseudofs/pseudofs_vncache.c
  1.47      +25 -32    src/sys/fs/pseudofs/pseudofs_vnops.c
  1.21      +2 -2      src/sys/fs/smbfs/smbfs_node.c
  1.49      +31 -38    src/sys/fs/smbfs/smbfs_vnops.c
  1.42      +15 -20    src/sys/fs/udf/udf_vnops.c
  1.18      +0 -1      src/sys/fs/umapfs/umap.h
  1.42      +9 -15     src/sys/fs/umapfs/umap_vnops.c
  1.30      +1 -1      src/sys/fs/unionfs/union.h
  1.81      +4 -4      src/sys/fs/unionfs/union_subr.c
  1.116     +50 -56    src/sys/fs/unionfs/union_vnops.c
  1.33      +3 -3      src/sys/gnu/ext2fs/ext2_extern.h
  1.133     +2 -2      src/sys/gnu/ext2fs/ext2_vfsops.c
  1.92      +50 -61    src/sys/gnu/ext2fs/ext2_vnops.c
  1.126     +2 -2      src/sys/isofs/cd9660/cd9660_vfsops.c
  1.105     +23 -34    src/sys/isofs/cd9660/cd9660_vnops.c
  1.29      +2 -3      src/sys/isofs/cd9660/iso.h
  1.109     +25 -42    src/sys/kern/vfs_default.c
  1.74      +21 -263   src/sys/kern/vfs_init.c
  1.554     +16 -22    src/sys/kern/vfs_subr.c
  1.17      +29 -64    src/sys/nfs4client/nfs4_vnops.c
  1.69      +2 -2      src/sys/nfsclient/nfs_node.c
  1.134     +1 -1      src/sys/nfsclient/nfs_subs.c
  1.232     +45 -55    src/sys/nfsclient/nfs_vnops.c
  1.48      +3 -3      src/sys/nfsclient/nfsnode.h
  1.9       +1 -0      src/sys/posix4/posix4_mib.c
  1.258     +17 -31    src/sys/sys/vnode.h
  1.42      +50 -7     src/sys/tools/vnode_if.awk
  1.62      +2 -2      src/sys/ufs/ffs/ffs_extern.h
  1.258     +2 -2      src/sys/ufs/ffs/ffs_vfsops.c
  1.144     +32 -43    src/sys/ufs/ffs/ffs_vnops.c
  1.53      +3 -3      src/sys/ufs/ufs/ufs_extern.h
  1.252     +66 -95    src/sys/ufs/ufs/ufs_vnops.c


More information about the cvs-all mailing list