Friday, January 05, 2018

Re: DUMP: Invalid argument: [block -25232932859]

On Jan 05 19:09:24, otto@drijf.net wrote:
> On Fri, Jan 05, 2018 at 02:08:14PM +0100, Otto Moerbeek wrote:
>
> > On Fri, Jan 05, 2018 at 01:31:08PM +0100, Jan Stary wrote:
> >
> > > Given that my dump(8) problem above also reported negative block
> > > numbers, is there a similar glitch in dump? At some places, blkno
> > > is cast to different int_ types (but he disk code is way over my head).
> >
> > Yest, that is very well possible.
> >
>
> I'll try to reproduce your problem, your original report contains
> almost enough information to get started. But one thing I like to
> know: is your /dev/sd2a filesystem UFS1 or UFS2?
>
> If you are unsure; do a
>
> # dumpfs /dev/rsd2a | head -1

magic 11954 (FFS1) time Fri Jul 14 13:17:25 2017

That's actually one of the places where the casts happen:

if (sblock->fs_magic == FS_UFS1_MAGIC)
blkno = ((int32_t *)idblk)[i];
else
blkno = ((int64_t *)idblk)[i];

Jan

No comments:

Post a Comment