[Midnightbsd-cvs] src [7889] trunk/sbin/fsck_ffs/suj.c: fsck_ffs shall accept the configured journal size, and not refuse to

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Wed Sep 14 12:57:47 EDT 2016


Revision: 7889
          http://svnweb.midnightbsd.org/src/?rev=7889
Author:   laffer1
Date:     2016-09-14 12:57:47 -0400 (Wed, 14 Sep 2016)
Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/sbin/fsck_ffs/suj.c

Modified: trunk/sbin/fsck_ffs/suj.c
===================================================================
--- trunk/sbin/fsck_ffs/suj.c	2016-09-14 16:57:09 UTC (rev 7888)
+++ trunk/sbin/fsck_ffs/suj.c	2016-09-14 16:57:47 UTC (rev 7889)
@@ -2383,7 +2383,7 @@
 		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);



More information about the Midnightbsd-cvs mailing list