aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsck_ffs
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2012-08-02 10:39:54 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2012-08-02 10:39:54 +0000
commit2db8baa95630fcddcaddce9f86da0ef792ccc158 (patch)
treefda3cf38c88f6f4bb712c06fc8c363ceb11e24be /sbin/fsck_ffs
parent13a5d88f1afb30324eac707954a9bb51d16cb199 (diff)
downloadsrc-2db8baa95630fcddcaddce9f86da0ef792ccc158.tar.gz
src-2db8baa95630fcddcaddce9f86da0ef792ccc158.zip
fsck_ffs shall accept the configured journal size, and not refuse to
operate on it if journal size is greater then SUJ_MAX. The later constant is only to select maximal journal size when user did not specified size explicitely. Submitted by: Andrey Zonov <andrey@zonov.org> Reviewed by: mckusick MFC after: 1 week
Notes
Notes: svn path=/head/; revision=238984
Diffstat (limited to 'sbin/fsck_ffs')
-rw-r--r--sbin/fsck_ffs/suj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/suj.c b/sbin/fsck_ffs/suj.c
index 8819476278a8..fbd3dbd09369 100644
--- a/sbin/fsck_ffs/suj.c
+++ b/sbin/fsck_ffs/suj.c
@@ -2383,7 +2383,7 @@ suj_verifyino(union dinode *ip)
return (-1);
}
- if (DIP(ip, di_size) < SUJ_MIN || DIP(ip, di_size) > SUJ_MAX) {
+ if (DIP(ip, di_size) < SUJ_MIN) {
printf("Invalid size %jd for journal inode %d\n",
DIP(ip, di_size), sujino);
return (-1);