xfs
[Top] [All Lists]

Re: [reiserfs-list] Re: benchmarks

To: Nikita Danilov <NikitaDanilov@xxxxxxxxx>
Subject: Re: [reiserfs-list] Re: benchmarks
From: Hans Reiser <reiser@xxxxxxxxxxx>
Date: Wed, 18 Jul 2001 02:42:01 +0400
Cc: Xuan Baldauf <xuan--reiserfs@xxxxxxxxxxx>, "Ragnar KjЬrstad" <reiserfs@xxxxxxxxxxxxxxxxxxx>, Russell Coker <russell@xxxxxxxxxxxx>, Chris Wedgwood <cw@xxxxxxxx>, rsharpe@xxxxxxxxxx, Seth Mos <knuffie@xxxxxxxxx>, Federico Sevilla III <jijo@xxxxxxxxxxxxxxxxxxxx>, linux-xfs@xxxxxxxxxxx, reiserfs-list@xxxxxxxxxxx
Organization: Namesys
References: <Pine.BSI.4.10.10107141752080.18419-100000@xxxxxxxxxxxxx> <3B5169E5.827BFED@xxxxxxxxxxx> <20010716210029.I11938@xxxxxxxxxxxxx> <20010716101313.2DC3E965@xxxxxxxxxxxxxxxxx> <3B52C49F.9FE1F503@xxxxxxxxxxx> <15186.51514.66966.458597@xxxxxxxxxxxxxxxx> <3B5341BA.1F68F755@xxxxxxxxxxx> <15187.18225.196286.123754@xxxxxxxxxxxxxxxx> <3B534B74.BDE19961@xxxxxxxxxxx> <20010716223240.D14564@xxxxxxxxxxx> <3B5363FE.3A7D892F@xxxxxxxxxxx> <3B53F65D.265034CB@xxxxxxxxxxx> <15188.10675.283457.862145@xxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
Nikita Danilov wrote:
> 
> Hans Reiser writes:
>  > A file change notification API is an inherently reasonable thing to have, 
> for use by more than just
>  > NFS (emacs for instance).
> 
> What's wrong with fcntl( F_NOTIFY )?
> I mean, there is standard notification API (and several non-standard
> ones, stolen from BSD) in Linux.
> 
>  >
>  > Hans
> 
> Nikita.
> 
>  >
>  > Xuan Baldauf wrote:
>  > >
>  > > Ragnar KjЬrstad wrote:
>  > >
>  > > > > > For each open file you have:
>  > > > > >
>  > > > > >  struct file (96b)
> 
> Nikita.
It might be perfect for NFS.  My man page for fcntl doesn't list F_NOTIFY.  I 
will guess at what it
does though (yah, I know, I should read the source, but it is late), and say 
that it or something
resembling it should be used by NFS.  Generation numbers have the feel of a 
hack, to my mind.  I
would probably feel better about generation numbers if they didn't take up 
space in the stat data,
but they would still feel like a hack.  

So, do I understand right that Xuan's solution could eliminate the need to 
store the generation
number in the stat data?  The problem with Xuan's solution though, is that it 
is easier to randomly
obtain identical generation numbers for differing versions of the same file.  
Am I right?

Maybe in V4 we can make the attribute holding generation numbers be dynamically 
allocated.  That
way, NFS doesn't burden other FS uses.  I bet we won't have time for that extra 
touch of programming
before we ship code though.  Sigh.

Hans


<Prev in Thread] Current Thread [Next in Thread>