aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-10-04 14:50:27 +0200
committerJakob Unterwurzacher2015-10-04 14:50:27 +0200
commit089629442ddfcd8a0a7bde4b60746d20dd98da6f (patch)
treef9c4112c2edbaaa79b2d9fb9162fe8886bd79f4f
parent89fef80d32708874c95742db0a7b593bcfd3b31d (diff)
Enable ClientInodes so hard links work
Fixes xfstests generic/002
-rw-r--r--main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.go b/main.go
index 5bd3cbb..ae3974e 100644
--- a/main.go
+++ b/main.go
@@ -192,16 +192,16 @@ func dirEmpty(dir string) bool {
func pathfsFrontend(key []byte, cipherdir string, mountpoint string, debug bool) {
finalFs := pathfs_frontend.NewFS(key, cipherdir, USE_OPENSSL)
-
- opts := &nodefs.Options{
+ pathFsOpts := &pathfs.PathNodeFsOptions{ClientInodes: true}
+ pathFs := pathfs.NewPathNodeFs(finalFs, pathFsOpts)
+ fuseOpts := &nodefs.Options{
// These options are to be compatible with libfuse defaults,
// making benchmarking easier.
NegativeTimeout: time.Second,
AttrTimeout: time.Second,
EntryTimeout: time.Second,
}
- pathFs := pathfs.NewPathNodeFs(finalFs, nil)
- conn := nodefs.NewFileSystemConnector(pathFs.Root(), opts)
+ conn := nodefs.NewFileSystemConnector(pathFs.Root(), fuseOpts)
var mOpts fuse.MountOptions
mOpts.AllowOther = false
// Set values shown in "df -T" and friends