From: Donald Douwsma <ddouwsma@redhat.com>
To: linux-xfs@vger.kernel.org
Cc: Donald Douwsma <ddouwsma@redhat.com>
Subject: [PATCH v2 0/3] xfsrestore: fix inventory unpacking
Date: Wed, 28 Sep 2022 15:53:04 +1000 [thread overview]
Message-ID: <20220928055307.79341-1-ddouwsma@redhat.com> (raw)
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(-)
--
2.31.1
next reply other threads:[~2022-09-28 5:53 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-28 5:53 Donald Douwsma [this message]
2022-09-28 5:53 ` [PATCH 1/3] xfsrestore: fix inventory unpacking Donald Douwsma
2022-09-28 15:12 ` Darrick J. Wong
2022-09-28 23:02 ` Donald Douwsma
2022-09-28 5:53 ` [PATCH 2/3] xfsrestore: stobj_unpack_sessinfo cleanup Donald Douwsma
2022-09-28 15:23 ` Darrick J. Wong
2022-09-28 23:12 ` Donald Douwsma
2022-09-28 23:28 ` Donald Douwsma
2022-09-29 18:01 ` Darrick J. Wong
2022-10-06 4:43 ` Donald Douwsma
2022-09-28 5:53 ` [PATCH 3/3] xfsrestore: untangle inventory unpacking logic Donald Douwsma
2022-09-28 15:24 ` Darrick J. Wong
2022-09-28 23:12 ` Donald Douwsma
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220928055307.79341-1-ddouwsma@redhat.com \
--to=ddouwsma@redhat.com \
--cc=linux-xfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).