mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
btrfs: sanity mount option parsing and early mount code
Also adds lots of comments to describe what's going on here. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
306929f364
commit
edf24abe51
3 changed files with 139 additions and 106 deletions
|
@ -1266,8 +1266,11 @@ struct btrfs_root *open_ctree(struct super_block *sb,
|
|||
if (!btrfs_super_root(disk_super))
|
||||
goto fail_sb_buffer;
|
||||
|
||||
btrfs_parse_options(options, tree_root, NULL);
|
||||
err = btrfs_parse_options(tree_root, options);
|
||||
if (err)
|
||||
goto fail_sb_buffer;
|
||||
|
||||
err = -EINVAL;
|
||||
if (btrfs_super_num_devices(disk_super) > fs_devices->open_devices) {
|
||||
printk("Btrfs: wanted %llu devices, but found %llu\n",
|
||||
(unsigned long long)btrfs_super_num_devices(disk_super),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue