提交 d0132eea 编写于 作者: M Miklos Szeredi 提交者: Linus Torvalds

mount options: fix isofs

Add a .show_options super operation to isofs.

Use generic_show_options() and save the complete option string in
isofs_fill_super().
Signed-off-by: NMiklos Szeredi <mszeredi@suse.cz>
Acked-by: NJan Kara <jack@suse.cz>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 10f19a86
...@@ -110,6 +110,7 @@ static const struct super_operations isofs_sops = { ...@@ -110,6 +110,7 @@ static const struct super_operations isofs_sops = {
.put_super = isofs_put_super, .put_super = isofs_put_super,
.statfs = isofs_statfs, .statfs = isofs_statfs,
.remount_fs = isofs_remount, .remount_fs = isofs_remount,
.show_options = generic_show_options,
}; };
...@@ -561,6 +562,8 @@ static int isofs_fill_super(struct super_block *s, void *data, int silent) ...@@ -561,6 +562,8 @@ static int isofs_fill_super(struct super_block *s, void *data, int silent)
int table, error = -EINVAL; int table, error = -EINVAL;
unsigned int vol_desc_start; unsigned int vol_desc_start;
save_mount_options(s, data);
sbi = kzalloc(sizeof(*sbi), GFP_KERNEL); sbi = kzalloc(sizeof(*sbi), GFP_KERNEL);
if (!sbi) if (!sbi)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册