mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-08-03 18:05:58 -04:00
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 <gscrivan@redhat.com>
This commit is contained in:
parent
80d0ed6499
commit
589e363cc8
3
main.c
3
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 : "<none>");
|
||||
fprintf (stderr, "fsync=%s\n", lo.fsync ? "enabled" : "disabled");
|
||||
}
|
||||
|
||||
lo.uid_mappings = lo.uid_str ? read_mappings (lo.uid_str) : NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user