lib9p

Go 9P library.
Log | Files | Refs | LICENSE

commit 1c54003a003131e0babbaea113fa1f78fe3ee4e3
parent 5944c1fe580363b2e373e7ab4fbe420c59e48a02
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Sat, 16 Dec 2023 09:16:31 +0900

convert stat_t.Dev to uint64 for OpenBSD

Diffstat:
Mdiskfs/stat_unix.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/diskfs/stat_unix.go b/diskfs/stat_unix.go @@ -90,7 +90,7 @@ func (f *File) stat() (*lib9p.FileInfo, error) { stat.Uid = usr.Username gid := stat_t.Gid // TODO: this call is time consuming. - fileid := fileID{device: stat_t.Dev, inode: stat_t.Ino} + fileid := fileID{device: uint64(stat_t.Dev), inode: stat_t.Ino} if _, ok := gidCache[fileid]; !ok { group, err := user.LookupGroupId(strconv.Itoa(int(gid))) if err != nil { @@ -178,7 +178,7 @@ func (f *File) wstat(s *lib9p.Stat) error { return fmt.Errorf("stat: %v", err) } stat_t := st.Sys().(*syscall.Stat_t) - fileid := fileID{device: stat_t.Dev, inode: stat_t.Ino} + fileid := fileID{device: uint64(stat_t.Dev), inode: stat_t.Ino} gidCache[fileid] = s.Gid } if s.Name != oldStat.Name {