Source-Changes archive

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

Re: CVS commit: src/sys/ufs



YAMAMOTO Takashi wrote:

> Module Name:  src
> Committed By: yamt
> Date:         Mon Sep 26 13:52:21 UTC 2005
> 
> Modified Files:
> 
>       src/sys/ufs/ext2fs: ext2fs_inode.c
>       src/sys/ufs/ffs: ffs_alloc.c ffs_snapshot.c
>       src/sys/ufs/lfs: lfs_segment.c
>       src/sys/ufs/ufs: ufs_lookup.c
> 
> Log Message:
> 
> always use nanotime rather than time.
> it's bad to mix nanotime and time because it sometimes
> make timestamps go backwards.
> 
> --
> To generate a diff of this commit:
> cvs rdiff -r1.86 -r1.87 src/sys/ufs/ffs/ffs_alloc.c

        /*
         * Set the mtime to the time the snapshot has been taken.
         */
-       TIMEVAL_TO_TIMESPEC(&starttime, &ts);
+       nanotime(&ts);

Is that one correct?

Simon.
--
Simon Burge                            <simonb%wasabisystems.com@localhost>
NetBSD Support and Service:         http://www.wasabisystems.com/



Home | Main Index | Thread Index | Old Index