DragonFly commits List (threaded) for 2009-05
DragonFly BSD
DragonFly commits List (threaded) for 2009-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

DragonFly-2.3.0.895.gd7c75 master sys/kern vfs_helper.c vfs_nlookup.c vfs_vnops.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 6 May 2009 17:36:52 -0700 (PDT)

commit d7c75c7a20590cab729c3d653aaa91a4960d6165
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Wed May 6 16:57:44 2009 -0700

    fstest regression fixes - POSIX error codes.
    
    Deal with most of the issues found by FreeBSD's fstest regression test:
        * Limit path components to 255 characters.  Return ENAMETOOLONG if
          the limit is exceeded.
    
        * Return EEXIST, EINVAL, and ENOTEMPTY as appropriate when the user
          attempts to create, delete, or rename "." or "..", instead of EINVAL.
    
        * Return EISDIR if an attempt is made to open a directory for writing,
          instead of EINVAL.
    
        * Return EACCES if an attempt is made to open a file O_TRUNC without
          O_RDWR or O_WRONLY, instead of silently dropping the O_TRUNC.
    
        * Implement O_NOFOLLOW semantics generally instead of just with O_EXCL.
    
    Not dealt with:
        * DragonFly clears SGID AND SUID on uid or gid change, if not root.
          If root is doing the operation SGID/SUID is not cleared.
    
        * HAMMER cannot modify the ctime without rolling a new inode, which
          is very expensive, and does not do so when entries are added or
          removed from a directory.  mtime is modified.

Summary of changes:
 sys/kern/vfs_helper.c  |    6 ++++++
 sys/kern/vfs_nlookup.c |   23 ++++++++++++++++++++---
 sys/kern/vfs_vnops.c   |   10 ++++++++--
 3 files changed, 34 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d7c75c7a20590cab729c3d653aaa91a4960d6165


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]