svn commit: r255008 - head/sys/fs/tmpfs
Kenneth D. Merry
ken at FreeBSD.org
Wed Aug 28 22:12:56 UTC 2013
Author: ken
Date: Wed Aug 28 22:12:56 2013
New Revision: 255008
URL: http://svnweb.freebsd.org/changeset/base/255008
Log:
Support storing 7 additional file flags in tmpfs:
UF_SYSTEM, UF_SPARSE, UF_OFFLINE, UF_REPARSE, UF_ARCHIVE, UF_READONLY,
and UF_HIDDEN.
Sort the file flags tmpfs supports alphabetically. tmpfs now
supports the same flags as UFS, with the exception of SF_SNAPSHOT.
Reported by: bdrewery, antoine
Sponsored by: Spectra Logic
Modified:
head/sys/fs/tmpfs/tmpfs_subr.c
Modified: head/sys/fs/tmpfs/tmpfs_subr.c
==============================================================================
--- head/sys/fs/tmpfs/tmpfs_subr.c Wed Aug 28 21:10:37 2013 (r255007)
+++ head/sys/fs/tmpfs/tmpfs_subr.c Wed Aug 28 22:12:56 2013 (r255008)
@@ -1433,9 +1433,10 @@ tmpfs_chflags(struct vnode *vp, u_long f
node = VP_TO_TMPFS_NODE(vp);
- if ((flags & ~(UF_NODUMP | UF_IMMUTABLE | UF_APPEND | UF_OPAQUE |
- UF_NOUNLINK | SF_ARCHIVED | SF_IMMUTABLE | SF_APPEND |
- SF_NOUNLINK)) != 0)
+ if ((flags & ~(SF_APPEND | SF_ARCHIVED | SF_IMMUTABLE | SF_NOUNLINK |
+ UF_APPEND | UF_ARCHIVE | UF_HIDDEN | UF_IMMUTABLE | UF_NODUMP |
+ UF_NOUNLINK | UF_OFFLINE | UF_OPAQUE | UF_READONLY | UF_REPARSE |
+ UF_SPARSE | UF_SYSTEM)) != 0)
return (EOPNOTSUPP);
/* Disallow this operation if the file system is mounted read-only. */
More information about the svn-src-head
mailing list