From 589e363cc8705c68ee46bb0fae005d7938a44ce4 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Wed, 21 Oct 2020 18:03:00 +0200 Subject: [PATCH] main: honor option volatile upstream Linux added an option "volatile" for overlay mounts that has the same meaning as fsync=0 already supported by fuse-overlayfs. Signed-off-by: Giuseppe Scrivano --- main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.c b/main.c index 4bb7526..2d2eff6 100644 --- a/main.c +++ b/main.c @@ -220,6 +220,8 @@ static const struct fuse_opt ovl_opts[] = { offsetof (struct ovl_data, xattr_permissions), 0}, {"squash_to_root", offsetof (struct ovl_data, squash_to_root), 1}, + {"volatile", /* native overlay supports "volatile" to mean fsync=0. */ + offsetof (struct ovl_data, fsync), 0}, FUSE_OPT_END }; @@ -5476,6 +5478,7 @@ main (int argc, char *argv[]) fprintf (stderr, "lowerdir=%s\n", lo.lowerdir); fprintf (stderr, "mountpoint=%s\n", lo.mountpoint); fprintf (stderr, "plugins=%s\n", lo.plugins ? lo.plugins : ""); + fprintf (stderr, "fsync=%s\n", lo.fsync ? "enabled" : "disabled"); } lo.uid_mappings = lo.uid_str ? read_mappings (lo.uid_str) : NULL;