Changeset 988 for vendor/current/source3/include/locking.h
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/include/locking.h
r740 r988 1 /* 1 /* 2 2 Unix SMB/CIFS implementation. 3 3 SMB parameters and setup, plus a whole lot more. 4 4 5 5 Copyright (C) Jeremy Allison 2006 6 6 7 7 This program is free software; you can redistribute it and/or modify 8 8 it under the terms of the GNU General Public License as published by 9 9 the Free Software Foundation; either version 3 of the License, or 10 10 (at your option) any later version. 11 11 12 12 This program is distributed in the hope that it will be useful, 13 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 15 GNU General Public License for more details. 16 16 17 17 You should have received a copy of the GNU General Public License 18 18 along with this program. If not, see <http://www.gnu.org/licenses/>. … … 40 40 struct lock_context { 41 41 uint64_t smblctx; 42 uint 16tid;42 uint32_t tid; 43 43 struct server_id pid; 44 44 }; … … 46 46 struct files_struct; 47 47 48 #include " ../librpc/gen_ndr/file_id.h"48 #include "lib/file_id.h" 49 49 50 struct byte_range_lock { 51 struct files_struct *fsp; 52 unsigned int num_locks; 53 bool modified; 54 bool read_only; 55 struct file_id key; 56 struct lock_struct *lock_data; 57 struct db_record *record; 58 }; 50 struct byte_range_lock; 59 51 60 /* Internal structure in brlock.tdb. 52 /* Internal structure in brlock.tdb. 61 53 The data in brlock records is an unsorted linear array of these 62 54 records. It is unnecessary to store the count as tdb provides the … … 67 59 br_off start; 68 60 br_off size; 69 uint 16fnum;61 uint64_t fnum; 70 62 enum brl_type lock_type; 71 63 enum brl_flavour lock_flav; … … 99 91 }; 100 92 93 struct share_mode_lock { 94 struct share_mode_data *data; 95 }; 96 101 97 #endif /* _LOCKING_H_ */
Note:
See TracChangeset
for help on using the changeset viewer.