mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Doesn't risk to use the inode to sort file in a generic nix.
This commit is contained in:
parent
73c16ffd88
commit
f990c7106b
1 changed files with 3 additions and 2 deletions
5
unix.c
5
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue