All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Finegrained a/c/mtime was Re: Directory notification pr
@ 2001-10-05 15:27 Petr Vandrovec
  2001-10-05 13:41 ` Jonathan Lundell
  0 siblings, 1 reply; 2+ messages in thread
From: Petr Vandrovec @ 2001-10-05 15:27 UTC (permalink / raw)
  To: Padraig Brady; +Cc: Alex Larsson, Ulrich Drepper, linux-kernel

On  5 Oct 01 at 14:15, Padraig Brady wrote:
> >Another advantage of using the real time instead of a counter is that 
> >you can easily merge the both values into a single 64bit value and do
> >arithmetic on it in user space. With a generation counter you would need 
> >to work with number pairs, which is much more complex. 
> >
> ??
> if (file->mtime != mtime || file->gen_count != gen_count)
>      file_changed=1;

make needs comparing timestamps between two files. I cannot imagine
how you can get this working (without network filesystem you can
have global gen_count, but with network filesystem each server has
its own gen_count... and using world-wide nanoseconds instead of world-wide
gen_count looks much simpler to me ;-) )
                                                Best regards,
                                                    Petr Vandrovec
                                                    vandrove@vc.cvut.cz
                                                    

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-10-05 13:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-05 15:27 Finegrained a/c/mtime was Re: Directory notification pr Petr Vandrovec
2001-10-05 13:41 ` Jonathan Lundell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.