summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2016-11-22 12:47:09 +0300
committerMiklos Szeredi <mszeredi@redhat.com>2016-12-16 13:02:57 +0300
commitc5bef3a72b9d8a2040d5e9f4bde03db7c86bbfce (patch)
treee58ba1e479fd985dd911e23bccffc92264a9cb86 /fs
parent3ea22a71b65b6743a53e286ff4991a06b9d2597c (diff)
downloadlinux-c5bef3a72b9d8a2040d5e9f4bde03db7c86bbfce.tar.xz
ovl: show redirect_dir mount option
Show the value of redirect_dir in /proc/mounts. Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/overlayfs/super.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index 2750aef24d16..4bd1e9c7246f 100644
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -204,6 +204,9 @@ static int ovl_show_options(struct seq_file *m, struct dentry *dentry)
}
if (ufs->config.default_permissions)
seq_puts(m, ",default_permissions");
+ if (ufs->config.redirect_dir != ovl_redirect_dir_def)
+ seq_printf(m, ",redirect_dir=%s",
+ ufs->config.redirect_dir ? "on" : "off");
return 0;
}