The .journal file needs to reside on the ROOTINO which must not extend

beyond direct blocks. A typo caused this check to fail.
This commit is contained in:
Peter Holm 2013-02-27 18:12:04 +00:00
parent 24245e76ea
commit 14951d4234
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=247399

View File

@ -671,7 +671,7 @@ journal_findfile(void)
return (ino);
}
} else {
if ((off_t)dp1->di_size >= lblktosize(&sblock, NDADDR)) {
if ((off_t)dp2->di_size >= lblktosize(&sblock, NDADDR)) {
warnx("ROOTINO extends beyond direct blocks.");
return (-1);
}