ovl: show redirect_dir mount option
authorAmir Goldstein <amir73il@gmail.com>
Tue, 22 Nov 2016 09:47:09 +0000 (11:47 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 16 Dec 2016 10:02:57 +0000 (11:02 +0100)
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>
fs/overlayfs/super.c

index 2750aef24d166455505413874ece6c5980b8aa74..4bd1e9c7246f6cff10fba6245cdbdd233e8fb66b 100644 (file)
@@ -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;
 }