svn commit: r225351 - projects/ino64/sys/ufs/ufs

Robert Watson rwatson at FreeBSD.org
Sat Sep 3 10:10:21 UTC 2011


On Fri, 2 Sep 2011, mdf at FreeBSD.org wrote:

> Is anyone using UFS_EXTATTR_AUTOSTART?  I think the code is now correct for 
> the endpoint of the returned dirent's, but it would be nice to have a review 
> and/or someone test the code.

Good question.  UFS_EXTATTR_AUTOSTART was the precursor to UFS2 extended 
attributes (which integrated EAs more tightly into the file sytem design), so 
is relevant only on UFS1.  Anyone using ACLs, MAC, etc, on UFS1 will be using 
at least options UFS_EXTATTR.

This code is pretty easy to test -- create a UFS1 file system, and use 
extattrctl to configure storage:

   mkdir -p /.attribute/system
   cd /.attribute/system
   extattrctl initattr -p / 388 posix1e.acl_access
   extattrctl initattr -p / 388 posix1e.acl_default

Then unmount, set the "acls" flag with tunefs, and remount.  If ACLs work, 
then the attributes were properly configured when the file system was mounted.

I imagine it's not seeing a lot of use with widespread deployment of UFS2, but 
when we have broken it in the past, we have received bug reports.

Robert


More information about the svn-src-projects mailing list