Miklos Szeredi d47748e5ae ovl: automatically enable redirect_dir on metacopy=on
Current behavior is to automatically disable metacopy if redirect_dir is
not enabled and proceed with the mount.

If "metacopy=on" mount option was given, then this behavior can confuse the
user: no mount failure, yet metacopy is disabled.

This patch makes metacopy=on imply redirect_dir=on.

The converse is also true: turning off full redirect with redirect_dir=
{off|follow|nofollow} will disable metacopy.

If both metacopy=on and redirect_dir={off|follow|nofollow} is specified,
then mount will fail, since there's no way to correctly resolve the
conflict.

Reported-by: Daniel Walsh <dwalsh@redhat.com>
Fixes: d5791044d2e5 ("ovl: Provide a mount option metacopy=on/off...")
Cc: <stable@vger.kernel.org> # v4.19
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2018-11-01 21:31:39 +01:00
..
2018-06-09 10:32:39 -07:00
2017-05-12 15:57:15 -07:00
2017-10-15 00:47:23 -04:00
2018-01-28 17:00:36 +11:00
2015-07-23 20:59:40 +02:00
2018-08-13 10:48:17 -07:00
2018-05-20 16:35:51 -04:00
2018-03-20 17:11:45 +01:00
2018-08-21 18:19:09 -07:00
2018-04-04 14:05:48 -04:00
2018-07-12 10:04:29 -04:00
2016-03-09 15:33:06 -07:00
2018-08-30 17:08:35 +02:00