Date: Fri, 26 May 2000 18:16:35 -0400 From: Chuck McCrobie <mccrobi@aplcenMP.apl.jhu.edu> To: Zhihui Zhang <zzhang@cs.binghamton.edu> Cc: Robert Watson <rwatson@FreeBSD.ORG>, freebsd-fs@FreeBSD.ORG Subject: Re: Opinion on File System Implementation Message-ID: <392EF7C3.E8930B01@apl.jhu.edu> References: <Pine.SOL.4.21.0005261045410.5111-100000@sol.cs.binghamton.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Zhihui Zhang wrote: > > On Fri, 26 May 2000, Robert Watson wrote: As for UFS/FFS, that's upto someone else to figure out ;) As for ODS-2, this VOP_GETEXTATTR and VOP_SETEXTATTR would be the best choice. In ODS-2, these attributes are stored as part of the "inode" (file header). I believe that I will, however, have the file system perform the appropriate record minipulations - although for those record types/file types I don't support, it would make sense to expose the attributes via this interface. In fact, it might make sense for a consistent presentation of attributes for both "supported" and unsupported attributes... Thank you very much, I'll be checking out the new interfaces! > > > > > Chuck, > > > > Responding briefly as I'm currently on travel at a DARPA PI meeting and > > checking out shortly -- in 4.0-RELEASE/STABLE and 5.0-CURRENT, there is an > > interface for "extended attributes" on file system objects. Take a look > > at extattr(9), VOP_GETEXTATTR(9) and VOP_SETEXTATTR(9). There are exposed > > syscalls to userland also, but in 4.x they don't have man pages as there > > are no tools using them. > > > > In 5.0-CURRENT, I introduced rudimentary support for extended attributes > > in UFS/FFS to support security extensions I have been working on, so we > > also pushed in simple command line tools to allow userland to > > read/set/control extended attributes (setextattr(8), getextattr(8), > > extattrctl(8)). It may be that this interface is the appropriate > > interface to read, if not write, this meta-data. > > > > I am interested in where you are going to put those extended attributes, > in the extended inode, in the file data, or in a separate associated file? > > -Zhihui > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-fs" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?392EF7C3.E8930B01>