storage/FileInfo, db/simple/Directory: use 64 bit for device/inode

An ino_t is usually a 64 bit integer, and some file systems (such as
Linux's kernel NFS client) really uses the upper 32 bit.  This can
lead to false positives in the directory loop detection in
FindAncestorLoop().  Increasing these two attributes (in
StorageFileInfo and Directory) to 64 bit adds little overhead, but
makes the check a lot safer.
This commit is contained in:
Max Kellermann
2017-04-06 09:58:25 +02:00
parent 32bcad51b8
commit 504f5f7bdd
3 changed files with 4 additions and 2 deletions

2
NEWS
View File

@@ -1,4 +1,6 @@
ver 0.20.7 (not yet released)
* database
- simple: fix false positive directory loop detection with NFS
ver 0.20.6 (2017/03/10)
* input