[PATCH 02/38] libfrog: allow METADIR in xfrog_bulkstat_single5

Darrick J. Wong
2024-10-11T01:14:42Z

This is a valid flag for a single-file bulkstat, so add that to the
filter.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
---
libfrog/bulkstat.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libfrog/bulkstat.c b/libfrog/bulkstat.c
index c863bcb6bf89b8..6eceef2a8fa6b9 100644
--- a/libfrog/bulkstat.c
+++ b/libfrog/bulkstat.c
@@ -53,7 +53,8 @@ xfrog_bulkstat_single5(
struct xfs_bulkstat_req *req;
int ret;

- if (flags & ~(XFS_BULK_IREQ_SPECIAL | XFS_BULK_IREQ_NREXT64))
+ if (flags & ~(XFS_BULK_IREQ_SPECIAL | XFS_BULK_IREQ_NREXT64 |
+ XFS_BULK_IREQ_METADIR))
return -EINVAL;

if (xfd->fsgeom.flags & XFS_FSOP_GEOM_FLAGS_NREXT64)