From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier Galibert Subject: Re: [PATCH 00/17] [RFC] AFS: Implement OpenAFS pioctls(version)s Date: Thu, 18 Jun 2009 14:50:02 +0200 Message-ID: <20090618125002.GA50695@dspnet.fr.eu.org> References: <20090617185219.GJ8633@ZenIV.linux.org.uk> <20090617001157.065ee652@lxorguk.ukuu.org.uk> <20090616203845.4526.60013.stgit@warthog.procyon.org.uk> <10437.1245193192@redhat.com> <11650.1245198358@redhat.com> <20090617075502.GB13073@webber.adilger.int> <20090617183745.GI8633@ZenIV.linux.org.uk> <29139.1245266909@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Al Viro , Linus Torvalds , Andreas Dilger , Alan Cox , akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-afs@lists.infradead.org To: David Howells Return-path: Content-Disposition: inline In-Reply-To: <29139.1245266909@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Wed, Jun 17, 2009 at 08:28:29PM +0100, David Howells wrote: > Al Viro wrote: > > > ... so we need a syscall that would do that "drop the caches" operation. > > _After_ having decided that it's really needed for symlinks. > > If you want to support disconnected operation, then you need a way to (a) lock > an object in the cache, (b) unlock an object in the cache, (c) pull an object > into the cache, (d) kick an object out of the cache, (e) ban an object from the > cache, (f) reserve space in the cache for an object, (g) release the > reservation on an object and (h) find out the lock/ban/reservation status of an > object in the cache, and you'd need to support them for _all_ file types, > including dirs, symlinks, dev files and fifos. Probably not UNIX sockets, > though. If I follow correctly, what you call "object" is "anything a name can point to in a filesystem", and you need to be able to refer to any of them without side effects. So, Al, whay should be used to refer to them? OG.