Commit 979db7542d9c73db0d770110edb31c1252ef6c4a
Committed by
Linus Torvalds
1 parent
aef97cb903
Exists in
master
and in
7 other branches
mount options: fix autofs
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>
Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff
fs/autofs/inode.c
... | ... | @@ -54,6 +54,7 @@ |
54 | 54 | |
55 | 55 | static const struct super_operations autofs_sops = { |
56 | 56 | .statfs = simple_statfs, |
57 | + .show_options = generic_show_options, | |
57 | 58 | }; |
58 | 59 | |
59 | 60 | enum {Opt_err, Opt_fd, Opt_uid, Opt_gid, Opt_pgrp, Opt_minproto, Opt_maxproto}; |
... | ... | @@ -139,6 +140,8 @@ |
139 | 140 | struct autofs_sb_info *sbi; |
140 | 141 | int minproto, maxproto; |
141 | 142 | pid_t pgid; |
143 | + | |
144 | + save_mount_options(s, data); | |
142 | 145 | |
143 | 146 | sbi = kzalloc(sizeof(*sbi), GFP_KERNEL); |
144 | 147 | if (!sbi) |