Hello! 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 *); Regards, Thomas
signature.asc
Description: Digital signature