Skip to content

Commit

Permalink
mount options: fix autofs
Browse files Browse the repository at this point in the history
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>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Miklos Szeredi authored and Linus Torvalds committed Feb 8, 2008
1 parent aef97cb commit 979db75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/autofs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ void autofs_kill_sb(struct super_block *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};
Expand Down Expand Up @@ -140,6 +141,8 @@ int autofs_fill_super(struct super_block *s, void *data, int silent)
int minproto, maxproto;
pid_t pgid;

save_mount_options(s, data);

sbi = kzalloc(sizeof(*sbi), GFP_KERNEL);
if (!sbi)
goto fail_unlock;
Expand Down

0 comments on commit 979db75

Please sign in to comment.