Use uint32 for Nlink, matching fuse.
Cf. https://github.com/torvalds/linux/blob/00c570f/include/uapi/linux/fuse.h#L159geesefs-0-30-9
parent
41dd5f04f5
commit
a4ffa71f0b
|
@ -472,7 +472,7 @@ func convertAttributes(
|
|||
out.Mtime, out.MtimeNsec = convertTime(in.Mtime)
|
||||
out.Ctime, out.CtimeNsec = convertTime(in.Ctime)
|
||||
out.SetCrtime(convertTime(in.Crtime))
|
||||
out.Nlink = uint32(in.Nlink) // TODO(jacobsa): Make the public field uint32?
|
||||
out.Nlink = in.Nlink
|
||||
out.Uid = in.Uid
|
||||
out.Gid = in.Gid
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ type InodeAttributes struct {
|
|||
Size uint64
|
||||
|
||||
// The number of incoming hard links to this inode.
|
||||
Nlink uint64
|
||||
Nlink uint32
|
||||
|
||||
// The mode of the inode. This is exposed to the user in e.g. the result of
|
||||
// fstat(2).
|
||||
|
|
Loading…
Reference in New Issue