Erast Benson wrote:
On Tue, 2007-03-20 at 09:29 -0700, Erast Benson wrote:
On Tue, 2007-03-20 at 16:22 +0000, Darren J Moffat wrote:
Robert Milkowski wrote:
Hello devid,
Tuesday, March 20, 2007, 3:58:27 PM, you wrote:
d> Does ZFS have a Data Management API to monitor events on files and
d> to store arbitrary attribute information with a file? Any answer on
d> this would be really appreciated.
IIRC correctly there's being developed file event mechanism - more
general which should work with other file systems too. I have no idea
of its status or if someone even started coding it.
Your second question - no, you can't.
Yes you can and it has been there even before ZFS existed see fsattr(5)
it isn't ZFS specific but a generic attribute extension to the
filesystems, currently supported by ufs, nfs, zfs, tmpfs.
apparently fsattr is not part of OpenSolaris or at least I can't find
it..
oh, this is API...
the (5) is a section 5 man page, which is the misc dumping ground for
man pages.
If you want a CLI interface to this see runat(1), for example to create
an attribute called mime-type with the content 'text/plain' on file foo
you could do this:
$ runat foo 'echo text/plain > mime-type'
To see the value of mime-type for file foo do this:
$ runat foo cat mime-type
text/plain
--
Darren J Moffat
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss