Skip to content

Commit

Permalink
Handle bdevs for journal_path= mount flag
Browse files Browse the repository at this point in the history
  • Loading branch information
azat committed Oct 1, 2014
1 parent 87e3751 commit cb833cd
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit cb833cd

Please sign in to comment.