Does ZFS have a Data Management API to monitor events on files and to store arbitrary attribute information with a file? Any answer on this would be really appreciated. Thanks This message posted from opensolaris.org
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. -- Best regards, Robert mailto:rmilkowski at task.gda.pl http://milek.blogspot.com
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. -- Darren J Moffat
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.. -- Erast
>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..It''s a manual page fsattr(5) describing file attributes Not a "thing". Casper
Hello Darren, Tuesday, March 20, 2007, 5:22:26 PM, you wrote: DJM> 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.DJM> Yes you can and it has been there even before ZFS existed see fsattr(5) DJM> it isn''t ZFS specific but a generic attribute extension to the DJM> filesystems, currently supported by ufs, nfs, zfs, tmpfs. I didn''t know that! Thank you for correction. -- Best regards, Robert mailto:rmilkowski at task.gda.pl http://milek.blogspot.com
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... -- Erast
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..Given your email address I''m assuming you are using Nexenta :-) The man page does exist on Solaris Express and it first existed in Solaris 9 so I don''t seen any reason for it to be missing. Maybe you just need to updated man page delivery :-) -- Darren J Moffat
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
On the file event monitor portion of the OP, has Solaris added dnotify, inotify or FAM support to the kernel or is the goal still to extend the ports/poll framework junk with a "file events notification facility"? As far as I know the file attributes do not handle file change monitoring. http://mail.opensolaris.org/pipermail/perf-discuss/2006-May/000540.html Wade Stuart Fallon Worldwide P: 612.758.2660 C: 612.877.0385 Conjeturo que no soy buen cocinero. zfs-discuss-bounces at opensolaris.org wrote on 03/20/2007 11:40:15 AM:> 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 filesand> >>>> d> to store arbitrary attribute information with a file? Any answeron> >>>> 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 noidea> >>>> 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 seefsattr(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 at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
IIRC, there is at least some of the necessary code for file change notification present in order to support NFSv4 delegations on the server side. Last time I looked it wasn''t exposed to userspace. On 3/21/07, Wade.Stuart at fallon.com <Wade.Stuart at fallon.com> wrote:> > > > > > On the file event monitor portion of the OP, has Solaris added dnotify, > inotify or FAM support to the kernel or is the goal still to extend the > ports/poll framework junk with a "file events notification facility"? As > far as I know the file attributes do not handle file change monitoring. > > > http://mail.opensolaris.org/pipermail/perf-discuss/2006-May/000540.html > > > > Wade Stuart > Fallon Worldwide > P: 612.758.2660 > C: 612.877.0385 > > Conjeturo que no soy buen cocinero. > > > zfs-discuss-bounces at opensolaris.org wrote on 03/20/2007 11:40:15 AM: > > > 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 at opensolaris.org > > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20070321/f5b71eb9/attachment.html>