Skip to contentSkip to conversation

libf2fs: add BLKFINISHZONE define if not defined

PATCH In review Wu Bo 2 participants 2 messages Jul 24, 2024 – Jul 25, 2024 Library code

lore
Share & tools
lore

Wu Bo

author
#0 lore raw

PATCH 1/1 libf2fs: add BLKFINISHZONE define if not defined

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

---
 lib/libf2fs_zoned.c | 3 +++
 1 file changed, 3 insertions(+)
lib/libf2fs_zoned.c +3 -0
index e55d098..221d7d1 100644
@@ -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)
Signature · 1 line
2.25.1