From f990c7106bd9024e43e437255276de56bbf2fb09 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Tue, 24 Sep 2013 23:17:53 +0200 Subject: [PATCH] Doesn't risk to use the inode to sort file in a generic nix. --- unix.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/unix.c b/unix.c index 9033667d..eac6a298 100644 --- a/unix.c +++ b/unix.c @@ -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