mirror of
https://github.com/psankar/simplefs.git
synced 2025-07-25 23:14:33 +02:00
Handle bdevs for journal_path= mount flag
This commit is contained in:
parent
87e3751725
commit
cb833cd591
11
simple.c
11
simple.c
@ -801,8 +801,15 @@ static int simplefs_parse_options(struct super_block *sb, char *options)
|
|||||||
path_put(&path);
|
path_put(&path);
|
||||||
kfree(journal_path);
|
kfree(journal_path);
|
||||||
|
|
||||||
if ((ret = simplefs_sb_load_journal(sb, journal_inode)))
|
if (S_ISBLK(journal_inode->i_mode)) {
|
||||||
return ret;
|
unsigned long journal_devnum = new_encode_dev(journal_inode->i_rdev);
|
||||||
|
if ((ret = simplefs_load_journal(sb, journal_devnum)))
|
||||||
|
return ret;
|
||||||
|
} else {
|
||||||
|
/** Seems didn't work properly */
|
||||||
|
if ((ret = simplefs_sb_load_journal(sb, journal_inode)))
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user