summaryrefslogtreecommitdiffstats
path: root/libcli/nbt/pynbt.c
diff options
context:
space:
mode:
authorChristof Schmitt <cs@samba.org>2014-01-07 11:55:46 -0700
committerChristof Schmitt <cs@samba.org>2014-01-09 00:04:47 +0100
commitd1dacd62bbff93351763ff339cca13ba8180dd89 (patch)
tree39e9dd8b8f75f1d92c22605366a30b44e002da5c /libcli/nbt/pynbt.c
parentca931e460460ffe46735f98b31db47220772d566 (diff)
downloadsamba-d1dacd62bbff93351763ff339cca13ba8180dd89.tar.gz
samba-d1dacd62bbff93351763ff339cca13ba8180dd89.tar.xz
samba-d1dacd62bbff93351763ff339cca13ba8180dd89.zip
s3: Avoid oplock break by storing timestamps with gpfs_set_times
The gpfs_set_times API call allows setting timestamps directly in GPFS without going through the utime() call. Using this API call fixes an unecessary oplock break when a client sends a SET_FILE_ALLOCATION_INFO request and no other client has opened the file. The call to utime() triggers the oplock break through the Linux kernel. Using the gpfs_set_times call for updating the timestamp avoids the call to utime() and the oplock break. Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Christof Schmitt <cs@samba.org> Autobuild-Date(master): Thu Jan 9 00:04:48 CET 2014 on sn-devel-104
Diffstat (limited to 'libcli/nbt/pynbt.c')
0 files changed, 0 insertions, 0 deletions