libf2fs: add BLKFINISHZONE define if not defined
PATCH 1/1 libf2fs: add BLKFINISHZONE define if not defined
BLKFINISHZONE may not defined in old blkzoned.h, and cause build error.
Signed-off-by Wu Bo <[email protected]>
--- lib/libf2fs_zoned.c | 3 +++ 1 file changed, 3 insertions(+)
lib/libf2fs_zoned.c +3 -0
@@ -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
Quoted 3 lines · Wu Bo
BLKFINISHZONE may not defined in old
blkzoned.h, and cause build error.Signed-off-by Wu Bo <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks,