diff options
author | Jeremy Allison <jra@samba.org> | 2007-03-05 23:40:03 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:18:24 -0500 |
commit | 4952fe368a40b239140b3035db6075427d237bb9 (patch) | |
tree | 4522aa1bd6ec5f4b627aa7fa2868297e4dcea99f /source3/smbd/files.c | |
parent | 242927bd5cae1d2ab8739b1c424e702ab97726b5 (diff) | |
download | samba-4952fe368a40b239140b3035db6075427d237bb9.tar.gz samba-4952fe368a40b239140b3035db6075427d237bb9.tar.bz2 samba-4952fe368a40b239140b3035db6075427d237bb9.zip |
r21714: Change the VFS interface to use struct timespec
for utimes - change the call to ntimes. This preserves
nsec timestamps we get from stat (if the system supports
it) and only maps back down to usec or sec resolution
on time set. Looks bigger than it is as I had to move
lots of internal code from using time_t and struct utimebuf
to struct timespec.
Jeremy.
(This used to be commit 8f3d530c5a748ea90f42ed8fbe68ae92178d4875)
Diffstat (limited to 'source3/smbd/files.c')
-rw-r--r-- | source3/smbd/files.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c index 0706548334..062bebd58e 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -383,11 +383,11 @@ files_struct *file_find_print(void) Record the owner of that modtime. ****************************************************************************/ -void fsp_set_pending_modtime(files_struct *tfsp, time_t pmod) +void fsp_set_pending_modtime(files_struct *tfsp, const struct timespec mod) { files_struct *fsp; - if (null_mtime(pmod)) { + if (null_timespec(mod)) { return; } @@ -395,7 +395,7 @@ void fsp_set_pending_modtime(files_struct *tfsp, time_t pmod) if ( fsp->fh->fd != -1 && fsp->dev == tfsp->dev && fsp->inode == tfsp->inode ) { - fsp->pending_modtime = pmod; + fsp->pending_modtime = mod; fsp->pending_modtime_owner = False; } } |