Browse Source

Add ability to passthrough 'nofail' mount option (#1567)

pull/1568/head
trapexit 7 days ago
committed by GitHub
parent
commit
78551049d5
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 11
      libfuse/util/mount.mergerfs.c

11
libfuse/util/mount.mergerfs.c

@ -148,17 +148,22 @@ int main(int argc, char *argv[])
opts = xstrdup(argv[i]);
opt = strtok(opts, ",");
while (opt) {
while (opt)
{
int j;
int ignore = 0;
const char *ignore_opts[] = { "",
const char *ignore_opts[] =
{
"",
"nofail",
"user",
"nouser",
"users",
"auto",
"noauto",
"_netdev",
NULL};
NULL
};
if (strncmp(opt, "setuid=", 7) == 0) {
setuid = xstrdup(opt + 7);
ignore = 1;

Loading…
Cancel
Save