mirror of
https://github.com/octoleo/restic.git
synced 2024-11-29 16:23:59 +00:00
fuse: Show link count
This commit is contained in:
parent
6300c8df56
commit
6275d69a36
@ -74,6 +74,7 @@ func (f *file) Attr(ctx context.Context, a *fuse.Attr) error {
|
|||||||
a.Size = f.node.Size
|
a.Size = f.node.Size
|
||||||
a.Blocks = (f.node.Size / blockSize) + 1
|
a.Blocks = (f.node.Size / blockSize) + 1
|
||||||
a.BlockSize = blockSize
|
a.BlockSize = blockSize
|
||||||
|
a.Nlink = uint32(f.node.Links)
|
||||||
|
|
||||||
if !f.ownerIsRoot {
|
if !f.ownerIsRoot {
|
||||||
a.Uid = f.node.UID
|
a.Uid = f.node.UID
|
||||||
|
Loading…
Reference in New Issue
Block a user