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

Matthew Dillon dillon at
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 
  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

More information about the Commits mailing list