From: Christoph Hellwig <hch@lst.de>
To: linux-xfs@vger.kernel.org
Cc: Murphy Zhou <jencce.kernel@gmail.com>
Subject: [PATCH v2] xfsprogs: provide a few compatibility typedefs
Date: Fri, 30 Aug 2019 17:03:27 +0200 [thread overview]
Message-ID: <20190830150327.20874-1-hch@lst.de> (raw)
Add back four typedefs that allow xfsdump to compile against the
headers from the latests xfsprogs.
Reported-by: Murphy Zhou <jencce.kernel@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
include/xfs.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/include/xfs.h b/include/xfs.h
index f2f675df..35435b18 100644
--- a/include/xfs.h
+++ b/include/xfs.h
@@ -37,4 +37,13 @@ extern int xfs_assert_largefile[sizeof(off_t)-8];
#include <xfs/xfs_types.h>
#include <xfs/xfs_fs.h>
+/*
+ * Backards compatibility for users of this header, now that the kernel
+ * removed these typedefs from xfs_fs.h.
+ */
+typedef struct xfs_bstat xfs_bstat_t;
+typedef struct xfs_fsop_bulkreq xfs_fsop_bulkreq_t;
+typedef struct xfs_fsop_geom_v1 xfs_fsop;
+typedef struct xfs_inogrp xfs_inogrp_t;
+
#endif /* __XFS_H__ */
--
2.20.1
next reply other threads:[~2019-08-30 15:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-30 15:03 Christoph Hellwig [this message]
2019-08-30 15:09 ` [PATCH v2] xfsprogs: provide a few compatibility typedefs Darrick J. Wong
2019-09-02 3:43 ` Murphy Zhou
2019-09-02 17:09 ` Christoph Hellwig
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=20190830150327.20874-1-hch@lst.de \
--to=hch@lst.de \
--cc=jencce.kernel@gmail.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