Changeset 740 for vendor/current/source3/include/locking.h
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/include/locking.h
r414 r740 32 32 #define IS_PENDING_LOCK(type) ((type) == PENDING_READ_LOCK || (type) == PENDING_WRITE_LOCK) 33 33 34 #include "librpc/gen_ndr/server_id.h" 35 34 36 /* This contains elements that differentiate locks. The smbpid is a 35 37 client supplied pid, and is essentially the locking context for … … 37 39 38 40 struct lock_context { 39 uint 32 smbpid;41 uint64_t smblctx; 40 42 uint16 tid; 41 43 struct server_id pid; … … 44 46 struct files_struct; 45 47 46 struct file_id { 47 /* we don't use SMB_DEV_T and SMB_INO_T as we want a fixed size here, 48 and we may be using file system specific code to fill in something 49 other than a dev_t for the device */ 50 uint64_t devid; 51 uint64_t inode; 52 uint64_t extid; /* Support systems that use an extended id (e.g. snapshots). */ 53 }; 48 #include "../librpc/gen_ndr/file_id.h" 54 49 55 50 struct byte_range_lock { … … 89 84 uint64_t offset; 90 85 uint64_t count; 91 uint 32_t lock_pid;92 uint 32_t blocking_pid; /* PIDthat blocks us. */86 uint64_t smblctx; 87 uint64_t blocking_smblctx; /* Context that blocks us. */ 93 88 enum brl_flavour lock_flav; 94 89 enum brl_type lock_type; … … 97 92 }; 98 93 94 struct smbd_lock_element { 95 uint64_t smblctx; 96 enum brl_type brltype; 97 uint64_t offset; 98 uint64_t count; 99 }; 100 99 101 #endif /* _LOCKING_H_ */
Note:
See TracChangeset
for help on using the changeset viewer.