From: Amir Goldstein Date: Tue, 22 Nov 2016 09:47:09 +0000 (+0200) Subject: ovl: show redirect_dir mount option X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c5bef3a72b9d8a2040d5e9f4bde03db7c86bbfce;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ovl: show redirect_dir mount option Show the value of redirect_dir in /proc/mounts. Signed-off-by: Amir Goldstein Signed-off-by: Miklos Szeredi --- 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; }