[PATCH] libf2fs: add BLKFINISHZONE define if not defined

From: Wu Bo
Date: Wed Jul 24 2024 - 06:14:17 EST


BLKFINISHZONE may not defined in old blkzoned.h, and cause build error.

Signed-off-by: Wu Bo <bo.wu@xxxxxxxx>
---
lib/libf2fs_zoned.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/lib/libf2fs_zoned.c b/lib/libf2fs_zoned.c
index e55d098..221d7d1 100644
--- a/lib/libf2fs_zoned.c
+++ b/lib/libf2fs_zoned.c
@@ -27,6 +27,9 @@
#include <libgen.h>

#ifdef HAVE_LINUX_BLKZONED_H
+#ifndef BLKFINISHZONE
+#define BLKFINISHZONE _IOW(0x12, 136, struct blk_zone_range)
+#endif

int get_sysfs_path(struct device_info *dev, const char *attr,
char *buf, size_t buflen)
--
2.25.1