summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-06-13 12:11:51 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-14 18:13:31 +0200
commitc7c351b8171ee5536090a04b61fb1566a6092af5 (patch)
tree38e73d7f8200ab850187f4ed262c28c28ab72577 /source3/smbd/server.c
parent2fd28dc4cf4f40a690adfd846911e4da1a776bf2 (diff)
downloadsamba-c7c351b8171ee5536090a04b61fb1566a6092af5.tar.gz
samba-c7c351b8171ee5536090a04b61fb1566a6092af5.tar.bz2
samba-c7c351b8171ee5536090a04b61fb1566a6092af5.zip
s3:smbd: try to make fsp->fh->gen_id as globally unique as possible
This makes sure the value is never 0, it's between 1 and UINT32_MAX. While fsp->fh->gen_id is 'unsigned long' currently (which might by 8 bytes), there's some oplock code which truncates it to uint32_t (using IVAL()). Which means we could reuse fsp->fh->gen_id as persistent file id until we have a final fix, which uses database. See bug #8995 for more details. Based on code from Ira Cooper. Ensure fsp->fh->gen_id starts from a random point. We will use this as the SMB2 persistent_id. metze
Diffstat (limited to 'source3/smbd/server.c')
0 files changed, 0 insertions, 0 deletions