Skip to content

Commit d3ce089

Browse files
committed
basic-server: LocalFileSystem: Use UUIDs instead of Long inodes
Currently, LocalFileSystem creates fake "Inode" numbers, incrementally starting from 1. This may cause inode confusion when restarting the NFS server. Use random UUIDs (which are practically collision-free) instead. Use a stable v3 UUID for the root inode, derived from the Path string. Also provide a hook (for subclasses, etc.) to disable the reporting of 64-bit "ino" fileids, which is possible for NFSv4-only environments. For now, derive tsuch "ino" values from the first 64-bits of the UUID. Related: #149 Signed-off-by: Christian Kohlschütter <[email protected]>
1 parent 3629b8f commit d3ce089

File tree

1 file changed

+89
-78
lines changed

1 file changed

+89
-78
lines changed

0 commit comments

Comments
 (0)