commit 40b7d6a9896327aba1bab5d7233186015348e49d
parent 63aa0f0ddebcca1b4694661d3f286b7c7409a6ad
Author: Matsuda Kenji <info@mtkn.jp>
Date: Tue, 28 Nov 2023 08:30:47 +0900
convert Dev to uint64 for OpenBSD
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/diskfs/qid_unix.go b/diskfs/qid_unix.go
@@ -41,7 +41,7 @@ func (f *File) id() (fileID, error) {
}
sys := fi.Sys().(*syscall.Stat_t)
id := fileID{
- device: sys.Dev,
+ device: uint64(sys.Dev),
inode: sys.Ino,
}
return id, nil
@@ -50,7 +50,7 @@ func (f *File) id() (fileID, error) {
// idFromInfo derives the fileID from the fs.FileInfo.
func idFromInfo(info fs.FileInfo) fileID {
stat := info.Sys().(*syscall.Stat_t)
- return fileID{device: stat.Dev, inode: stat.Ino}
+ return fileID{device: uint64(stat.Dev), inode: stat.Ino}
}
// newQidPool allocates a QidPool.