Allows wrapped filesystems to return dirent.ino except in windows (#1558)

Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
Crypt Keeper
2023-07-05 17:41:35 +08:00
committed by GitHub
parent 7498ad335f
commit d7193952e1
12 changed files with 182 additions and 85 deletions

View File

@@ -27,7 +27,7 @@ func stat(path string) (fsapi.Stat_t, syscall.Errno) {
}
}
func statFile(f *os.File) (fsapi.Stat_t, syscall.Errno) {
func statFile(f fs.File) (fsapi.Stat_t, syscall.Errno) {
return defaultStatFile(f)
}
@@ -56,5 +56,5 @@ func statFromFileInfo(t fs.FileInfo) fsapi.Stat_t {
st.Ctim = ctime.Sec*1e9 + ctime.Nsec
return st
}
return StatFromDefaultFileInfo(t)
return statFromDefaultFileInfo(t)
}