Verified Commit 8c3e5271 authored by Tommaso Tocci's avatar Tommaso Tocci
Browse files

Stat use file UID as inode number

parent 1deddf34
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ int metadata_to_stat(const std::string& path, const Metadata& md, struct stat& a

    /* Populate default values */
    attr.st_dev = makedev(0, 0);
    attr.st_ino = std::hash<std::string>{}(path);
    attr.st_ino = md.fuid();
    attr.st_nlink = 1;
    attr.st_uid = CTX->fs_conf()->uid;
    attr.st_gid = CTX->fs_conf()->gid;