mirror of
https://github.com/psankar/simplefs.git
synced 2025-07-24 22:44:45 +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);
|
||||
kfree(journal_path);
|
||||
|
||||
if ((ret = simplefs_sb_load_journal(sb, journal_inode)))
|
||||
return ret;
|
||||
if (S_ISBLK(journal_inode->i_mode)) {
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user