aboutsummaryrefslogtreecommitdiff
path: root/sbin/tunefs/tunefs.c
diff options
context:
space:
mode:
authorPeter Holm <pho@FreeBSD.org>2013-02-27 18:12:04 +0000
committerPeter Holm <pho@FreeBSD.org>2013-02-27 18:12:04 +0000
commit14951d42342055e20e135415d68c44ec966ec3d3 (patch)
tree32faf80495676fb60d749a1339e6bf0131220f95 /sbin/tunefs/tunefs.c
parent24245e76ea60b4d44ae0610772911daaf3f6d82e (diff)
downloadsrc-14951d42342055e20e135415d68c44ec966ec3d3.tar.gz
src-14951d42342055e20e135415d68c44ec966ec3d3.zip
The .journal file needs to reside on the ROOTINO which must not extend
beyond direct blocks. A typo caused this check to fail.
Notes
Notes: svn path=/head/; revision=247399
Diffstat (limited to 'sbin/tunefs/tunefs.c')
-rw-r--r--sbin/tunefs/tunefs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/tunefs/tunefs.c b/sbin/tunefs/tunefs.c
index 688952fc790a..39e08f760904 100644
--- a/sbin/tunefs/tunefs.c
+++ b/sbin/tunefs/tunefs.c
@@ -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);
}