From: Michael Adam Date: Sun, 15 May 2016 23:39:09 +0000 (+0200) Subject: s3:vfs: add 'kernel_share_modes_taken' to files_struct X-Git-Tag: tdb-1.3.10~1101 X-Git-Url: http://git.samba.org/samba.git/?p=ambi%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=356487345724ce5dffdddf9c60735b2c965f30bc s3:vfs: add 'kernel_share_modes_taken' to files_struct This will allow to track whether kernel share modes have been taken at open and correclty remove them again on close. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11919 Signed-off-by: Michael Adam Reviewed-by: Christian Ambach --- diff --git a/source3/include/vfs.h b/source3/include/vfs.h index 9360802a535..a849443f023 100644 --- a/source3/include/vfs.h +++ b/source3/include/vfs.h @@ -259,6 +259,8 @@ typedef struct files_struct { uint32_t access_mask; /* NTCreateX access bits (FILE_READ_DATA etc.) */ uint32_t share_access; /* NTCreateX share constants (FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE). */ + bool kernel_share_modes_taken; + bool update_write_time_triggered; struct tevent_timer *update_write_time_event; bool update_write_time_on_close;