[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xfsrestore assertion failure



>   # xfsrestore -t -f /dev/st0
>....
>   xfsrestore: examining media file 1
>   xfsrestore: seeking past media file directory dump
>   xfsrestore: drive_scsitape.c:1461: do_next_mark: Assertion
>    `rechdrp->first_mark_offset - rechdrp->file_offset <= ( off64_t )
>   ( contextp->dc_recsz )' failed.
>   Aborted (core dumped)

The following fix seems to resolve the problem.  xfsrestore -t works, at
least.  (I'll try a real restore later.) I suspect the problem is in
endian-converting first_mark_offset, maybe when it contains the value
-1.  

Possibly this fix will make the dumps compatible with IRIX, but I
suspect few will mind.

Steve


523c523
<       IXLATE(rh1, rh2, first_mark_offset);
---
>       /*      IXLATE(rh1, rh2, first_mark_offset); */
532a533
>       BXLATE(first_mark_offset);


----------------------------------------------------------------------------
Steve Roseman
Lehigh University Information Resources
sgr0@Lehigh.EDU