aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorMichael Holzheu <holzheu@de.ibm.com>2007-08-10 08:32:27 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2007-08-10 08:32:36 -0400
commitb01af5ba9105094ba4f1af60da8f7be44321a0c7 (patch)
tree68111e92125a498188e6cda64c32e1c8c032e738 /arch/s390
parent5693ce6f9b9f08942e55e3825db014f8b1205772 (diff)
[S390] hypfs: implement show_options
Signed-off-by: Michael Holzheu <holzheu@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/hypfs/inode.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/s390/hypfs/inode.c b/arch/s390/hypfs/inode.c
index 8e1ea1c40128..ad4ca75c0f04 100644
--- a/arch/s390/hypfs/inode.c
+++ b/arch/s390/hypfs/inode.c
@@ -17,6 +17,8 @@
17#include <linux/parser.h> 17#include <linux/parser.h>
18#include <linux/sysfs.h> 18#include <linux/sysfs.h>
19#include <linux/module.h> 19#include <linux/module.h>
20#include <linux/seq_file.h>
21#include <linux/mount.h>
20#include <asm/ebcdic.h> 22#include <asm/ebcdic.h>
21#include "hypfs.h" 23#include "hypfs.h"
22 24
@@ -256,6 +258,15 @@ static int hypfs_parse_options(char *options, struct super_block *sb)
256 return 0; 258 return 0;
257} 259}
258 260
261static int hypfs_show_options(struct seq_file *s, struct vfsmount *mnt)
262{
263 struct hypfs_sb_info *hypfs_info = mnt->mnt_sb->s_fs_info;
264
265 seq_printf(s, ",uid=%u", hypfs_info->uid);
266 seq_printf(s, ",gid=%u", hypfs_info->gid);
267 return 0;
268}
269
259static int hypfs_fill_super(struct super_block *sb, void *data, int silent) 270static int hypfs_fill_super(struct super_block *sb, void *data, int silent)
260{ 271{
261 struct inode *root_inode; 272 struct inode *root_inode;
@@ -459,6 +470,7 @@ static struct file_system_type hypfs_type = {
459static struct super_operations hypfs_s_ops = { 470static struct super_operations hypfs_s_ops = {
460 .statfs = simple_statfs, 471 .statfs = simple_statfs,
461 .drop_inode = hypfs_drop_inode, 472 .drop_inode = hypfs_drop_inode,
473 .show_options = hypfs_show_options,
462}; 474};
463 475
464static decl_subsys(s390, NULL, NULL); 476static decl_subsys(s390, NULL, NULL);