mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Fixes inode assignenment in nix architectures different than Linux.
This commit is contained in:
parent
524ffa00f2
commit
6a25acb8dc
1 changed files with 3 additions and 1 deletions
4
unix.c
4
unix.c
|
|
@ -160,7 +160,9 @@ int filephy(const char* path, struct stat* st, uint64_t* physical)
|
|||
(void)st; /* not used here */
|
||||
#else
|
||||
/* In a generic Unix uses the inode as fake physical address */
|
||||
physical = st->st_ino;
|
||||
*physical = st->st_ino;
|
||||
|
||||
(void)path; /* not used here */
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue