xfs
[Top] [All Lists]

Re: xfsrestore assertion failure

To: linux-xfs@xxxxxxxxxxx
Subject: Re: xfsrestore assertion failure
From: Steve Roseman <sgr0@xxxxxxxxxx>
Date: Thu, 02 Aug 2001 13:16:26 -0400
Sender: owner-linux-xfs@xxxxxxxxxxx
>   # 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@xxxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>