On Mon, 25 Jan 2021 15:40:12 -0800 Kirk McKusick <mckus...@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! _______________________________________________ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"