cvs commit: src/sys/kern vfs_syscalls.c vfs_vnops.c src/sys/sys vnode.h

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Sep 18 11:20:19 PDT 2006


dillon      2006/09/18 11:19:35 PDT

DragonFly src repository

  Modified files:
    sys/kern             vfs_syscalls.c vfs_vnops.c 
    sys/sys              vnode.h 
  Log:
  Set f_ncp in the struct file unconditionally.  Previously we only set it
  when opening directories.  This allows the f*() system calls such as
  fchmod() to check the actual mount point instead of the aliased mount
  point (in the case of a NULLFS mount).  Also, the fstat program will
  properly report the path for descriptors opened via nullfs mounts.
  
  Add code to all f*() system calls such as fchmod() to check f_ncp
  in order to detect read-only nullfs mounts.
  
  Revision  Changes    Path
  1.104     +60 -7     src/sys/kern/vfs_syscalls.c
  1.48      +9 -10     src/sys/kern/vfs_vnops.c
  1.70      +1 -0      src/sys/sys/vnode.h


http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_syscalls.c.diff?r1=1.103&r2=1.104&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_vnops.c.diff?r1=1.47&r2=1.48&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/sys/vnode.h.diff?r1=1.69&r2=1.70&f=u





More information about the Commits mailing list