Merge pull request #2621 from greatroar/fixes

Some small fixes
This commit is contained in:
MichaelEischer
2020-04-18 18:07:08 +02:00
committed by GitHub
4 changed files with 7 additions and 9 deletions

View File

@@ -109,7 +109,7 @@ func newDirFromSnapshot(ctx context.Context, root *Root, inode uint64, snapshot
}
func (d *dir) Attr(ctx context.Context, a *fuse.Attr) error {
debug.Log("called")
debug.Log("Attr()")
a.Inode = d.inode
a.Mode = os.ModeDir | d.node.Mode
a.Uid = d.root.uid
@@ -137,7 +137,7 @@ func (d *dir) calcNumberOfLinks() uint32 {
}
func (d *dir) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error) {
debug.Log("called")
debug.Log("ReadDirAll()")
ret := make([]fuse.Dirent, 0, len(d.items)+2)
ret = append(ret, fuse.Dirent{