aboutsummaryrefslogtreecommitdiff
path: root/internal/fusefrontend
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-10-16 13:43:19 +0200
committerJakob Unterwurzacher2016-10-16 15:04:59 +0200
commit35219d0022a6225a4a412844f1cf00747a04e41e (patch)
treeadd03c4d2ae522b73d8d617f3e6967658cb7ec34 /internal/fusefrontend
parent57e8df990c7c251b3cc73c2df6af6bf73367d234 (diff)
fusefrontend: log missing gocryptfs.diriv
This can happen during normal operation when the directory has been deleted concurrently. But it can also mean that the gocryptfs.diriv is missing due to an error, so log the event at "info" level.
Diffstat (limited to 'internal/fusefrontend')
-rw-r--r--internal/fusefrontend/fs_dir.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/fusefrontend/fs_dir.go b/internal/fusefrontend/fs_dir.go
index b7a0251..6b581b1 100644
--- a/internal/fusefrontend/fs_dir.go
+++ b/internal/fusefrontend/fs_dir.go
@@ -255,6 +255,11 @@ func (fs *FS) OpenDir(dirName string, context *fuse.Context) ([]fuse.DirEntry, f
cDirAbsPath = filepath.Join(fs.args.Cipherdir, cDirName)
cachedIV, err = nametransform.ReadDirIV(cDirAbsPath)
if err != nil {
+ // This can happen during normal operation when the directory has
+ // been deleted concurrently. But it can also mean that the
+ // gocryptfs.diriv is missing due to an error, so log the event
+ // at "info" level.
+ tlog.Info.Printf("OpenDir: %v", err)
return nil, fuse.ToStatus(err)
}
}