s3:vfs: add 'kernel_share_modes_taken' to files_struct
authorMichael Adam <obnox@samba.org>
Sun, 15 May 2016 23:39:09 +0000 (01:39 +0200)
committerChristian Ambach <ambi@samba.org>
Wed, 18 May 2016 21:01:17 +0000 (23:01 +0200)
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 <obnox@samba.org>
Reviewed-by: Christian Ambach <ambi@samba.org>
source3/include/vfs.h

index 9360802a535cd221615b2eb2b3a4f9c2cd8f3a6e..a849443f023833dc6ca3571a3aeb2e35b5a812d5 100644 (file)
@@ -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;