Re: [PATCH v2] ovl: return error on mount if metacopy cannot be enabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Ok. So basically strict and metacopy has no connection but we want to
> take this opportunity to enable more sane overlayfs behavior by default
> without breaking backward compatibility.
>
> And if a corner case user does not like implicit strict=on, they can
> specifically do "metacopy=on,strict=off".
>

Yes, but keep in mind that strict=off will NOT be applied to stable
v4.19.y *unless* a real user really reports a bug, a-priori, we assume
that implicit metacopy=on => redirect_dir=on,strict=on is sufficient
to solve the bug, so it is sufficient for stable.

> I am fine with this. Thanks.
>
> So every new mount option now will enable strict=on implicitly?
>

Correct. For example:


@@ -109,6 +109,7 @@ config OVERLAY_FS_METACOPY
        bool "Overlayfs: turn on metadata only copy up feature by default"
        depends on OVERLAY_FS
        select OVERLAY_FS_REDIRECT_DIR
+       select OVERLAY_FS_STRICT
        help
          If this config option is enabled then overlay filesystems will
          copy up only metadata where appropriate and data copy up will

...

@@ -560,6 +599,10 @@ static int ovl_parse_opt(char *opt, struct
ovl_config *config)
                }
        }

+       /* We must honor user explicit request to enable metacopy */
+       if (config->metacopy && !ovl_metacopy_def)
+               config->strict = true;
+
        /* Workdir is useless in non-upper mount */
        if (!config->upperdir && config->workdir) {

---

Thanks,
Amir.



[Index of Archives]     [Linux Filesystems Devel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux