1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00
Stefan Metzmacher c7c351b817 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
2012-06-14 18:13:31 +02:00
..
2012-06-12 10:48:15 +02:00
2012-04-05 02:39:08 +02:00
2012-06-08 13:34:31 +02:00
2012-05-08 16:46:36 +02:00
2012-06-14 01:53:17 +02:00
2012-06-14 16:55:58 +02:00
2012-06-08 13:34:31 +02:00
2012-06-08 13:34:31 +02:00