summaryrefslogtreecommitdiff
path: root/source3/smbd/files.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-03-10 21:43:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:58 -0500
commit95e68fa7f8c109204b3ddaeb530e192c71b40e58 (patch)
treecc0277ddadbfbb929bec2adc254554ca798cfa14 /source3/smbd/files.c
parent82379c7bd1827601630da120f5b5ebb9061ce2b5 (diff)
downloadsamba-95e68fa7f8c109204b3ddaeb530e192c71b40e58.tar.gz
samba-95e68fa7f8c109204b3ddaeb530e192c71b40e58.tar.bz2
samba-95e68fa7f8c109204b3ddaeb530e192c71b40e58.zip
r5731: Get delayed write semantics closer to W2K3. We need to store 2 times.
This may fix bug #2382. Jeremy. (This used to be commit a27c351e6beafc6609790a9bb9a3d0a1331e8f35)
Diffstat (limited to 'source3/smbd/files.c')
-rw-r--r--source3/smbd/files.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c
index 547206815e..143c119693 100644
--- a/source3/smbd/files.c
+++ b/source3/smbd/files.c
@@ -379,6 +379,7 @@ files_struct *file_find_print(void)
/****************************************************************************
Set a pending modtime across all files with a given dev/ino pair.
+ Record the owner of that modtime.
****************************************************************************/
void fsp_set_pending_modtime(files_struct *tfsp, time_t pmod)
@@ -394,8 +395,11 @@ void fsp_set_pending_modtime(files_struct *tfsp, time_t pmod)
fsp->dev == tfsp->dev &&
fsp->inode == tfsp->inode ) {
fsp->pending_modtime = pmod;
+ fsp->pending_modtime_owner = False;
}
}
+
+ tfsp->pending_modtime_owner = True;
}
/****************************************************************************