[PATCH] s3: Report ctime as change time, not mtime
christof.schmitt at us.ibm.com
Mon Feb 13 11:23:41 MST 2012
I am working on a patch to store the ctime with the
gpfs_set_times() call. While testing setting and storing
timestamps i discovered that querying the timestamps from a cifs
client does not return all four timestamps. It seems that the
mtime is reported for two timestamps and the ctime is being
E.g. in smbd_do_qfilepathinfo():
mtime_ts = psbuf->st_ex_mtime;
ctime_ts = get_change_timespec(conn, fsp, smb_fname);
and get_change_timespec also returns the mtime.
The attached patch changes get_change_timespec to return the
ctime, so that all timestamps set through the vfs set_times call can
be queried through the vfs stat calls.
Christof Schmitt || IBM || SONAS System Development || Tucson, AZ
christof.schmitt at us.ibm.com || +1-520-799-2469 (T/L: 321-2469)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 845 bytes
Desc: not available
More information about the samba-technical