I have an application that requires inodes be persistent across mounts, reboots etc.
mount -t cifs -o serverino, it is supposed to do this (with server support). But, when I mount, some random set of files and directories will have client generated sequential IDs < 2^32.
I've tried multiple combinations of things including
-o nounix -o serverino -o mfsymlinks -o noacls, and many others, but none seem to change the randomness of things.
Whenever it returns the > 2^32 inode, it seems to be consistent for a given file/directory, as far as I've seen over many mount attempts (not confirmed exhaustively), but a high proportion yet random set of files has small inode numbers that increment monotonically in the list output.
The server is Windows2012R2. Clients are CentOS and Ubuntu Linux with recent kernels. One has 3.10.0 and the other has 4.4.0
Is there anything that can be set client side or server side to give the UniqueId or the FileID back to the client as the inode when mounted like this?
(tried in vers 1, 2.1, and 3.0 protocols)