[Top][All Lists]

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

Re: time coherency issue between libdiskfs and ext2fs

From: Thomas Schwinge
Subject: Re: time coherency issue between libdiskfs and ext2fs
Date: Tue, 17 Feb 2009 10:26:46 +0100
User-agent: Mutt/1.5.11


On Tue, Feb 10, 2009 at 02:34:16AM +0100, Samuel Thibault wrote:
> FS to round values up (I could see that on a machine that has both
> second- and ns-precision filesystems).  Maybe we should do the same: in
> the diskfs_S_file_utimes () and diskfs_set_node_times ()

Rather than doing it every time a new value is set, what about leaving
things internally as they are and do the normalization only on demand
when the value is read out, i.e., in diskfs_S_io_stat?  Something akin to
libtrivfs' trivfs_modify_stat:

    /* The user must define this function.  This should modify a struct
       stat (as returned from the underlying node) for presentation to
       callers of io_stat.  It is permissable for this function to do
       nothing.  */
    void trivfs_modify_stat (struct trivfs_protid *cred, io_statbuf_t *);


Attachment: signature.asc
Description: Digital signature

reply via email to

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