diff options
author | Amir Goldstein <amir73il@gmail.com> | 2016-11-22 10:47:09 +0100 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2016-12-16 11:02:57 +0100 |
commit | c5bef3a72b9d8a2040d5e9f4bde03db7c86bbfce (patch) | |
tree | e58ba1e479fd985dd911e23bccffc92264a9cb86 /fs | |
parent | ovl: allow setting max size of redirect (diff) | |
download | linux-c5bef3a72b9d8a2040d5e9f4bde03db7c86bbfce.tar.xz linux-c5bef3a72b9d8a2040d5e9f4bde03db7c86bbfce.zip |
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.c | 3 |
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; } |