denemo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Denemo-devel] Help with File modification time???


From: Richard Shann
Subject: Re: [Denemo-devel] Help with File modification time???
Date: Fri, 28 Sep 2012 10:53:20 +0100

Thank you for all this - it seems the best will be to go for alternating
two file names, removing the old file before reusing the name. This also
avoids having conditional code for windows.
I'll work on that solution.
Richard
On Thu, 2012-09-27 at 10:34 -0600, Josue Abarca wrote:
> On Thu, Sep 27, 2012 at 09:37:59AM +0100, Richard Shann wrote:
> > On Wed, 2012-09-26 at 14:56 -0600, Josue Abarca wrote:
> > > On Wed, Sep 26, 2012 at 06:46:16PM +0100, Richard Shann wrote:
> ...
> > > st_mtim.tv_nsec <- to see the nano seconds.
> > > 
> > > (of course the file system must support nanoseconds time stamps)
> > Thanks - it seems I have been on the right track - I was looking at
> > tv_nsec in the debugger and it is always 0. IIRC Debian stable uses ext2
> > filesystem - could it be that it doesn't record nano-second
> > timestamps?
> 
> Ext2 does not support, nano-second timestamps :(.
> 
> Debian stable (squeeze) uses ext3 by default, but AFAIK time
> nano-second timestamps were introduced in ext4 [0].
> 
> Debian stable also supports ext4, but you need to select the option in
> the partitioning step (I always choose ext4 :P).
> 
> > Even if it didn't have the precision to give accurate information it
> > could always increment tv_nsec by 1 every time it modified a file with
> > the same value of tv_sec. 
> > If this is really the situation I guess I should find another way - I
> > need to do something for the Windows system anyway as that doesn't do
> > file locking the same way as unix. So I will maybe need to keep changing
> > the filename that LilyPond stores to, though it is nice to keep the old
> > one for viewing...
> > 
> > Richard
> 
> Maybe inotify could be used, but this would be only for GNU/Linux, so
> I guess that maybe changing the file name is a better approach.
> 
> [0] http://en.wikipedia.org/wiki/Ext4
> [1] https://www.ibm.com/developerworks/linux/library/l-inotify/
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]