Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jan 2021 17:08:41 +0300
From:      Rozhuk Ivan <rozhuk.im@gmail.com>
To:        Kirk McKusick <mckusick@mckusick.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: fsck strange output
Message-ID:  <20210126170841.7efc58c4@rimwks.local>
In-Reply-To: <202101252340.10PNeCR4068248@chez.mckusick.com>
References:  <20210125232933.1ad108d1@rimwks.local> <202101252340.10PNeCR4068248@chez.mckusick.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 25 Jan 2021 15:40:12 -0800
Kirk McKusick <mckusick@mckusick.com> wrote:


> Please try this patch to fsck_ffs and see if it fixes your problem.
> 
> 	Kirk McKusick
> 
> =-=-=
> 
> *** sbin/fsck_ffs/inode.c.orig	2021-01-07 15:04:04.969086284
> -0800 --- sbin/fsck_ffs/inode.c	2021-01-25 15:29:06.404803358
> -0800 ***************
> *** 611,618 ****
>   	    sizeof(struct ufs1_dinode) : sizeof(struct
> ufs2_dinode)); readpercg = inosused / fullcnt;
>   	partialcnt = inosused % fullcnt;
> ! 	partialsize = partialcnt * ((sblock.fs_magic ==
> FS_UFS1_MAGIC) ? ! 	    sizeof(struct ufs1_dinode) :
> sizeof(struct ufs2_dinode)); if (partialcnt != 0) {
>   		readpercg++;
>   	} else {
> --- 611,619 ----
>   	    sizeof(struct ufs1_dinode) : sizeof(struct
> ufs2_dinode)); readpercg = inosused / fullcnt;
>   	partialcnt = inosused % fullcnt;
> ! 	partialsize = fragroundup(&sblock,
> ! 	    partialcnt * ((sblock.fs_magic == FS_UFS1_MAGIC) ?
> ! 	    sizeof(struct ufs1_dinode) : sizeof(struct
> ufs2_dinode))); if (partialcnt != 0) {
>   		readpercg++;
>   	} else {


https://github.com/rozhuk-im/freebsd/commit/5e8bfa01830e2b6ecb88e572064c6fffe5a2df2d
(if I apply correct :) )

With this patch - seems no errors, thanks!




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210126170841.7efc58c4>