Re: Re: [Dazuko-help] Dazukofs
errik <[email protected]> Fri, 18 Feb 2011 18:54:04 +0800
| Newsgroups | gmane.linux.dazuko.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============1102581597== Content-Type: multipart/alternative; boundary=001e680f168824da91049c8c55fa --001e680f168824da91049c8c55fa Content-Type: text/plain; charset=ISO-8859-1 Yes, fanotify is a good choice. But fanotify not support watch descendant directories. On Thu, 2010-11-25 at 11:26 +0800, errik wrote: > Hello Eric, > > Here are some questions need your help. > As we know, fanotify is to replace inotify in current kernel. > The problems are: > 1. Can fanotify watch all the child directories recursively for > one watched directory? Because inotify can't do this. we can either watch: 1) a single inode 2) a directory and it's children (note: children, NOT descendants) 3) an entire mount point. number 3 can be abused with bind mounting to watch descendants but takes admin action and has some odd side effects... > 2. Can fanotify block the file operations before fanotify send > the event to application? Just do it like dazukofs. Yes, for certain events this is possible (namely OPEN and READ) -Eric 2011/2/15 John Ogness <[email protected]> > On 2011-02-15, Tommy <[email protected]> wrote: > > Will there be a dazukofs release that supports the 2.6.38-3- generic > > Linux kernel? I believe the upcoming release of Ubuntu 11.04 will > > feature the 2.6.38-3 kernel. > > It is not planned. For 2.6.38 you should switch to the official kernel > API for file access control: fanotify. > > John Ogness > > -- > Dazuko Maintainer > > _______________________________________________ > Dazuko-devel mailing list > [email protected] > http://lists.nongnu.org/mailman/listinfo/dazuko-devel > --001e680f168824da91049c8c55fa Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div>Yes, fanotify is a good choice. But fanotify not support=A0 watch desc= endant directories. </div> <div>=A0</div> <div>On Thu, 2010-11-25 at 11:26 +0800, errik wrote:<br>> Hello Eric,<br= >><br>>=A0=A0=A0=A0=A0=A0=A0 Here are some questions need your help.<= br>>=A0=A0=A0=A0=A0=A0=A0 As we know, fanotify is to replace inotify in = current kernel.<br>> The problems are:<br> >=A0=A0=A0=A0=A0=A0=A0 1. Can fanotify watch all the child directories r= ecursively for<br>> one watched directory? Because inotify can't do = this.</div> <div><br>we can either watch:<br>1) a single inode<br>2) a directory and it= 's children (note: children, NOT descendants)<br>3) an entire mount poi= nt.</div> <div>number 3 can be abused with bind mounting to watch descendants but tak= es<br>admin action and has some odd side effects...</div> <div><br>>=A0=A0=A0=A0=A0=A0=A0 2. Can fanotify block the file operation= s before fanotify send<br>> the event to application? Just do it like da= zukofs.</div> <div><br>Yes, for certain events this is possible (namely OPEN and READ)</d= iv> <div>-Eric<br><br></div> <div class=3D"gmail_quote">2011/2/15 John Ogness <span dir=3D"ltr"><<a h= ref=3D"mailto:[email protected]">[email protected]</a>></span>= <br> <blockquote style=3D"BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex= ; PADDING-LEFT: 1ex" class=3D"gmail_quote">On 2011-02-15, Tommy <<a href= =3D"mailto:[email protected]">[email protected]</a>> wrote:<br>&= gt; Will there be a dazukofs release that supports the 2.6.38-3- generic<br= > > Linux kernel? I believe the upcoming release of Ubuntu 11.04 will<br>&= gt; feature the 2.6.38-3 kernel.<br><br>It is not planned. For 2.6.38 you s= hould switch to the official kernel<br>API for file access control: fanotif= y.<br> <br>John Ogness<br><font color=3D"#888888"><br>--<br>Dazuko Maintainer<br><= br>_______________________________________________<br>Dazuko-devel mailing = list<br><a href=3D"mailto:[email protected]">[email protected]<= /a><br> <a href=3D"http://lists.nongnu.org/mailman/listinfo/dazuko-devel" target=3D= "_blank">http://lists.nongnu.org/mailman/listinfo/dazuko-devel</a><br></fon= t></blockquote></div><br> --001e680f168824da91049c8c55fa-- --===============1102581597== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Dazuko-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/dazuko-devel --===============1102581597==--