Module Name: src
Committed By: reinoud
Date: Fri Jul 5 20:40:20 UTC 2013
Modified Files:
src/sys/fs/udf: udf_vnops.c
Log Message:
Fixes chflags. They were silently rejected before but the VFS standard demands
it complains with EOPNOTSUPP.
Fixes chflags test case.
To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/sys/fs/udf/udf_vnops.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/fs/udf/udf_vnops.c
diff -u src/sys/fs/udf/udf_vnops.c:1.80 src/sys/fs/udf/udf_vnops.c:1.81
--- src/sys/fs/udf/udf_vnops.c:1.80 Fri Jul 5 20:04:57 2013
+++ src/sys/fs/udf/udf_vnops.c Fri Jul 5 20:40:20 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_vnops.c,v 1.80 2013/07/05 20:04:57 reinoud Exp $ */
+/* $NetBSD: udf_vnops.c,v 1.81 2013/07/05 20:40:20 reinoud Exp $ */
/*
* Copyright (c) 2006, 2008 Reinoud Zandijk
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__KERNEL_RCSID(0, "$NetBSD: udf_vnops.c,v 1.80 2013/07/05 20:04:57 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udf_vnops.c,v 1.81 2013/07/05 20:40:20 reinoud Exp $");
#endif /* not lint */
@@ -1115,9 +1115,11 @@ udf_chflags(struct vnode *vp, mode_t mod
if (vp->v_mount->mnt_flag & MNT_RDONLY)
return EROFS;
- /* XXX we can't do this yet, but erroring out is enoying XXX */
+ /*
+ * XXX we can't do this yet, as its not described in the standard yet
+ */
- return 0;
+ return EOPNOTSUPP;
}