mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-08 13:28:05 +00:00
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
This commit is contained in:
parent
13a5d88f1a
commit
2db8baa956
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238984
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user