Use the smbXsrv_open_global.tdb record key as key for the share_mode_entry in locking.tdb

Use the open_global_id from the global open record for the share_mode_entry.share_file_id

open_global_id is an uint32_t, share_file_id is an uint64_t. For internal opens that don't have an smbXsrv_open_global.tdb entry, continue to use a generation counter starting at UINT32_MAX + 1.

This allows taking the share_mode_entry.share_file_id and using this as key to lookup the corresponding global open in smbXsrv_open_global.tdb, something I'd like to make use of in my Persistent Handles branch.

Edited by Ralph Böhme

Merge request reports

Loading