Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762259AbXHGLPX (ORCPT ); Tue, 7 Aug 2007 07:15:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759017AbXHGLPI (ORCPT ); Tue, 7 Aug 2007 07:15:08 -0400 Received: from mtagate8.de.ibm.com ([195.212.29.157]:57854 "EHLO mtagate8.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756691AbXHGLPG (ORCPT ); Tue, 7 Aug 2007 07:15:06 -0400 Message-Id: <20070807111845.182243298@de.ibm.com> References: <20070807111519.972871123@de.ibm.com> User-Agent: quilt/0.46-1 Date: Tue, 07 Aug 2007 13:15:22 +0200 From: Martin Schwidefsky To: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Cc: Michael Holzheu , Martin Schwidefsky Subject: [patch 02/18] hypfs: implement show_options Content-Disposition: inline; filename=002-hypfs-showopt.diff Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1638 Lines: 58 From: Michael Holzheu Signed-off-by: Michael Holzheu Signed-off-by: Martin Schwidefsky --- arch/s390/hypfs/inode.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) Index: quilt-2.6/arch/s390/hypfs/inode.c =================================================================== --- quilt-2.6.orig/arch/s390/hypfs/inode.c +++ quilt-2.6/arch/s390/hypfs/inode.c @@ -17,6 +17,8 @@ #include #include #include +#include +#include #include #include "hypfs.h" @@ -256,6 +258,15 @@ static int hypfs_parse_options(char *opt return 0; } +static int hypfs_show_options(struct seq_file *s, struct vfsmount *mnt) +{ + struct hypfs_sb_info *hypfs_info = mnt->mnt_sb->s_fs_info; + + seq_printf(s, ",uid=%u", hypfs_info->uid); + seq_printf(s, ",gid=%u", hypfs_info->gid); + return 0; +} + static int hypfs_fill_super(struct super_block *sb, void *data, int silent) { struct inode *root_inode; @@ -459,6 +470,7 @@ static struct file_system_type hypfs_typ static struct super_operations hypfs_s_ops = { .statfs = simple_statfs, .drop_inode = hypfs_drop_inode, + .show_options = hypfs_show_options, }; static decl_subsys(s390, NULL, NULL); -- blue skies, Martin. "Reality continues to ruin my life." - Calvin. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/