Doesn't risk to use the inode to sort file in a generic nix.

This commit is contained in:
Andrea Mazzoleni 2013-09-24 23:17:53 +02:00
parent 73c16ffd88
commit f990c7106b

5
unix.c
View file

@ -181,8 +181,9 @@ int filephy(const char* path, struct stat* st, uint64_t* physical)
if (close(f) == -1)
return -1;
#else
/* In a generic Unix uses the inode as fake physical address */
*physical = st->st_ino;
/* In a generic Unix use a dummy value for all the files */
/* We don't want to risk to use the inode without knowing if it really improves performance */
*physical = 0;
(void)path; /* not used here */
#endif