summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-09-21 21:25:55 +0200
committerJakob Unterwurzacher2016-09-25 16:43:17 +0200
commitd76e7aadb48e5efd6af6ad42e9146f65f8e89fb8 (patch)
treea3ac9bbd25c01988ecd4170beddb268c3837a737 /main.go
parent5f726aaa9d95be30ecfcb61637df3ccc133bf2ea (diff)
reverse: use dynamic inode numbers
...with stable mappings for hard-linked files.
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.go b/main.go
index 68f6a44..ea9efad 100644
--- a/main.go
+++ b/main.go
@@ -349,6 +349,9 @@ func initFuseFrontend(key []byte, args argContainer, confFile *configfile.ConfFi
mOpts.Options = append(mOpts.Options, "fsname="+args.cipherdir)
// Second column, "Type", will be shown as "fuse." + Name
mOpts.Name = "gocryptfs"
+ if args.reverse {
+ mOpts.Name += "-reverse"
+ }
// The kernel enforces read-only operation, we just have to pass "ro".
// Reverse mounts are always read-only