summaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-03-16 06:59:40 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2011-03-16 16:48:06 -0400
commitc7f404b40a3665d9f4e9a927cc5c1ee0479ed8f9 (patch)
tree2d6fa2bef00efa759f36b17f3be0d4fab3ac9bb5 /include/linux/fs.h
parentf8ad9c4bae99854c961ca79ed130a0d11d9ab53c (diff)
downloadlinux-c7f404b40a3665d9f4e9a927cc5c1ee0479ed8f9.tar.gz
linux-c7f404b40a3665d9f4e9a927cc5c1ee0479ed8f9.tar.bz2
linux-c7f404b40a3665d9f4e9a927cc5c1ee0479ed8f9.zip
vfs: new superblock methods to override /proc/*/mount{s,info}
a) ->show_devname(m, mnt) - what to put into devname columns in mounts, mountinfo and mountstats b) ->show_path(m, mnt) - what to put into relative path column in mountinfo Leaving those NULL gives old behaviour. NFS switched to using those. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 13df14e2c42e..e6d3fe45981b 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1632,6 +1632,8 @@ struct super_operations {
void (*umount_begin) (struct super_block *);
int (*show_options)(struct seq_file *, struct vfsmount *);
+ int (*show_devname)(struct seq_file *, struct vfsmount *);
+ int (*show_path)(struct seq_file *, struct vfsmount *);
int (*show_stats)(struct seq_file *, struct vfsmount *);
#ifdef CONFIG_QUOTA
ssize_t (*quota_read)(struct super_block *, int, char *, size_t, loff_t);