mbox series

[v2,0/3] xfsrestore: fix inventory unpacking

Message ID 20220928055307.79341-1-ddouwsma@redhat.com (mailing list archive)
Headers show
Series xfsrestore: fix inventory unpacking | expand

Message

Donald Douwsma Sept. 28, 2022, 5:53 a.m. UTC
When xfsrestore reads its inventory from tape it fails to convert the media
record on bigendian systems, if the online inventory is unavailable this results
in invalid data being writen to the online inventory and failure to restore
non-directory files.

The series fixes the converstion and related issues.

---
v2
- Seperate out cleanup and content.c changes, fix whitespace.
- Show a full reproducer in the first patch.

Donald Douwsma (3):
  xfsrestore: fix inventory unpacking
  xfsrestore: stobj_unpack_sessinfo cleanup
  xfsrestore: untangle inventory unpacking logic

 inventory/inv_stobj.c | 40 ++++++++++++++--------------------------
 restore/content.c     | 13 +++++--------
 2 files changed, 19 insertions(+), 34 deletions(-)