summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorpho <pho@FreeBSD.org>2013-02-27 18:12:04 +0000
committerpho <pho@FreeBSD.org>2013-02-27 18:12:04 +0000
commit5661e1fe461be2da03359fdaaf886b1a1155062b (patch)
tree32faf80495676fb60d749a1339e6bf0131220f95 /sbin
parent18e9a0422b52091035dae9d69bde9dd571a8ff7e (diff)
downloadFreeBSD-src-5661e1fe461be2da03359fdaaf886b1a1155062b.zip
FreeBSD-src-5661e1fe461be2da03359fdaaf886b1a1155062b.tar.gz
The .journal file needs to reside on the ROOTINO which must not extend
beyond direct blocks. A typo caused this check to fail.
Diffstat (limited to 'sbin')
-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 688952f..39e08f7 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);
}
OpenPOWER on IntegriCloud