Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/sysvbfs sysvbfs do not support file flags; fail with ...



details:   https://anonhg.NetBSD.org/src/rev/5c6bf228400d
branches:  trunk
changeset: 778508:5c6bf228400d
user:      njoly <njoly%NetBSD.org@localhost>
date:      Fri Mar 30 18:27:55 2012 +0000

description:
sysvbfs do not support file flags; fail with EOPNOTSUPP.

diffstat:

 sys/fs/sysvbfs/sysvbfs_vnops.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r df68c87797f6 -r 5c6bf228400d sys/fs/sysvbfs/sysvbfs_vnops.c
--- a/sys/fs/sysvbfs/sysvbfs_vnops.c    Fri Mar 30 18:24:08 2012 +0000
+++ b/sys/fs/sysvbfs/sysvbfs_vnops.c    Fri Mar 30 18:27:55 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysvbfs_vnops.c,v 1.42 2012/03/18 02:40:55 christos Exp $      */
+/*     $NetBSD: sysvbfs_vnops.c,v 1.43 2012/03/30 18:27:55 njoly Exp $ */
 
 /*-
  * Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysvbfs_vnops.c,v 1.42 2012/03/18 02:40:55 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysvbfs_vnops.c,v 1.43 2012/03/30 18:27:55 njoly Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -345,6 +345,9 @@
            ((int)vap->va_bytes != VNOVAL) || (vap->va_gen != VNOVAL))
                return EINVAL;
 
+       if (vap->va_flags != VNOVAL)
+               return EOPNOTSUPP;
+
        if (vap->va_uid != (uid_t)VNOVAL || vap->va_gid != (uid_t)VNOVAL) {
                uid_t uid =
                    (vap->va_uid != (uid_t)VNOVAL) ? vap->va_uid : attr->uid;



Home | Main Index | Thread Index | Old Index