Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Aug 2013 22:12:56 +0000 (UTC)
From:      "Kenneth D. Merry" <ken@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r255008 - head/sys/fs/tmpfs
Message-ID:  <201308282212.r7SMCuRV026492@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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. */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308282212.r7SMCuRV026492>