From 6275d69a3612c1fd8c14cb099e67ddd140081af4 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Fri, 10 Feb 2017 21:16:48 +0100 Subject: [PATCH] fuse: Show link count --- src/restic/fuse/file.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/restic/fuse/file.go b/src/restic/fuse/file.go index 6bfa2e4a1..b57e0d663 100644 --- a/src/restic/fuse/file.go +++ b/src/restic/fuse/file.go @@ -74,6 +74,7 @@ func (f *file) Attr(ctx context.Context, a *fuse.Attr) error { a.Size = f.node.Size a.Blocks = (f.node.Size / blockSize) + 1 a.BlockSize = blockSize + a.Nlink = uint32(f.node.Links) if !f.ownerIsRoot { a.Uid = f.node.UID