[patch 07/26] mount options: fix autofs

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <akpm@...>, <linux-fsdevel@...>, <linux-kernel@...>
Cc: H. Peter Anvin <hpa@...>
Date: Thursday, January 24, 2008 - 3:33 pm

From: Miklos Szeredi <mszeredi@suse.cz>

Add a .show_options super operation to autofs.

Use generic_show_options() and save the complete option string in
autofs_fill_super().

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
---

Index: linux/fs/autofs/inode.c
===================================================================
--- linux.orig/fs/autofs/inode.c	2008-01-17 19:00:54.000000000 +0100
+++ linux/fs/autofs/inode.c	2008-01-24 11:16:30.000000000 +0100
@@ -54,6 +54,7 @@ out_kill_sb:
 
 static const struct super_operations autofs_sops = {
 	.statfs		= simple_statfs,
+	.show_options	= generic_show_options,
 };
 
 enum {Opt_err, Opt_fd, Opt_uid, Opt_gid, Opt_pgrp, Opt_minproto, Opt_maxproto};
@@ -140,6 +141,8 @@ int autofs_fill_super(struct super_block
 	int minproto, maxproto;
 	pid_t pgid;
 
+	save_mount_options(s, data);
+
 	sbi = kzalloc(sizeof(*sbi), GFP_KERNEL);
 	if (!sbi)
 		goto fail_unlock;

--
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 07/26] mount options: fix autofs, Miklos Szeredi, (Thu Jan 24, 3:33 pm)
Re: [patch 07/26] mount options: fix autofs, H. Peter Anvin, (Thu Jan 24, 3:46 pm)