Fix bug #7410 - samba sends "raw" inode number as uniqueid with unix extensions.
commit920ffe49290cacd30d9bc582c1c3fee38308c260
authorJeremy Allison <jra@samba.org>
Thu, 20 May 2010 18:36:47 +0000 (20 11:36 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 25 May 2010 07:49:53 +0000 (25 09:49 +0200)
tree1d4284c6b8669875c7e15061eebc4835a00d11e3
parent167c082c1eb18f8360d094c96cbcef4ce48d935b
Fix bug #7410 - samba sends "raw" inode number as uniqueid with unix extensions.

Move to a consistent get_FileIndex() function for all inode returns,
that checks if st_dev on the file is identical to the top directory
dev_t of the exported share, and if so uses the raw 64-bit inode
number. If it isn't (we've traversed a mount point) - return what
we used to do for Windows which is the concatination of the bottom
32-bits of the inode with the 32-bit device number. We can get more
creative with this over time (hashing?) if we want as now all inode returns go
through this single function.

Jeremy.
source3/include/proto.h
source3/include/smb.h
source3/smbd/service.c
source3/smbd/smb2_create.c
source3/smbd/trans2.c