Fixes inode assignenment in nix architectures different than Linux.

This commit is contained in:
Andrea Mazzoleni 2013-08-23 18:24:52 +02:00
parent 524ffa00f2
commit 6a25acb8dc

4
unix.c
View file

@ -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;