[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fuse-devel
Subject:    [fuse-devel] opendir and changes in the opened directory
From:       Nikolaus Rath <Nikolaus () rath ! org>
Date:       2009-12-20 15:54:57
Message-ID: 87zl5dod2m.fsf () vostro ! rath ! org
[Download RAW message or body]

Hello,

From the comments in fuse_lowlevel.h:

	 * Filesystem may also implement stateless directory I/O and not
	 * store anything in fi->fh, though that makes it impossible to
	 * implement standard conforming directory stream operations in
	 * case the contents of the directory can change between opendir
	 * and releasedir.

How would a standard conforming stream operation have to behave in this
case, and which standard is meant here? According to
http://www.opengroup.org/onlinepubs/007908799/xsh/readdir.html, the
behaviour of e.g. readdir is not defined at all if there directory
contents change:

       If a file is removed from or added to the directory after the
       most recent call to opendir() or rewinddir(), whether a
       subsequent call to readdir() returns an entry for that file is
       unspecified.  

Best,

   -Nikolaus

-- 
  »Time flies like an arrow, fruit flies like a Banana. «

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
fuse-devel mailing list
fuse-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fuse-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic