logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git
commit: 7bc9dcc67d9842d81e5d81edc06498fc7036d6a1
parent 5e8c0f2c09b5f9aeaa858165c9634aaa5f9c3e95
Author: Michael Forney <mforney@mforney.org>
Date:   Fri,  4 Sep 2020 01:00:33 -0700

f2fs-tools: Update to 1.14.0

Diffstat:

Mpkg/f2fs-tools/config.h14++++++++------
Mpkg/f2fs-tools/gen.lua2+-
Apkg/f2fs-tools/patch/0002-Move-definition-of-blk_zone_v2.patch88+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mpkg/f2fs-tools/ver2+-
4 files changed, 98 insertions(+), 8 deletions(-)

diff --git a/pkg/f2fs-tools/config.h b/pkg/f2fs-tools/config.h @@ -1,9 +1,10 @@ #define F2FS_MAJOR_VERSION 1 -#define F2FS_MINOR_VERSION 13 -#define F2FS_TOOLS_DATE "2019-09-24" -#define F2FS_TOOLS_VERSION "1.13.0" +#define F2FS_MINOR_VERSION 14 +#define F2FS_TOOLS_DATE "2020-08-24" +#define F2FS_TOOLS_VERSION "1.14.0" /* #undef HAVE_ADD_KEY */ /* #undef HAVE_ATTR_XATTR_H */ +/* #undef HAVE_BLK_ZONE_REP_V2 */ #define HAVE_BYTESWAP_H 1 #define HAVE_DECL_BSWAP_64 1 #define HAVE_DLFCN_H 1 @@ -29,6 +30,7 @@ /* #undef HAVE_LLSEEK_PROTOTYPE */ #define HAVE_LSEEK64 1 #define HAVE_LSEEK64_PROTOTYPE 1 +/* #undef HAVE_MACH_MACH_TIME_H */ #define HAVE_MEMORY_H 1 #define HAVE_MEMSET 1 #define HAVE_MNTENT_H 1 @@ -52,12 +54,12 @@ #define PACKAGE "f2fs-tools" #define PACKAGE_BUGREPORT "linux-f2fs-devel@lists.sourceforge.net" #define PACKAGE_NAME "F2FS tools" -#define PACKAGE_STRING "F2FS tools 1.13.0" +#define PACKAGE_STRING "F2FS tools 1.14.0" #define PACKAGE_TARNAME "f2fs-tools" #define PACKAGE_URL "" -#define PACKAGE_VERSION "1.13.0" +#define PACKAGE_VERSION "1.14.0" #define STDC_HEADERS 1 -#define VERSION "1.13.0" +#define VERSION "1.14.0" #ifndef __cplusplus /* #undef inline */ #endif diff --git a/pkg/f2fs-tools/gen.lua b/pkg/f2fs-tools/gen.lua @@ -4,7 +4,7 @@ cflags{ '-I $dir', '-I $srcdir/include', '-isystem $builddir/pkg/linux-headers/include', - '-isystem $builddir/pkg/util-linux/include', + '-isystem $builddir/pkg/util-linux/include/uuid', } pkg.deps = { diff --git a/pkg/f2fs-tools/patch/0002-Move-definition-of-blk_zone_v2.patch b/pkg/f2fs-tools/patch/0002-Move-definition-of-blk_zone_v2.patch @@ -0,0 +1,88 @@ +From 8aee18d96218ce523e705e0bb43b8b67909f83aa Mon Sep 17 00:00:00 2001 +From: Michael Forney <mforney@mforney.org> +Date: Fri, 4 Sep 2020 22:33:09 -0700 +Subject: [PATCH] Move definition of blk_zone_v2 + +Otherwise, the definitions of blk_zone_type_str and blk_zone_cond_str +still refer to the original struct blk_zone. +--- + include/f2fs_fs.h | 56 +++++++++++++++++++++++------------------------ + 1 file changed, 28 insertions(+), 28 deletions(-) + +diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h +index b5bda13..4d99fb7 100644 +--- a/include/f2fs_fs.h ++++ b/include/f2fs_fs.h +@@ -1288,6 +1288,34 @@ static inline int get_inline_xattr_addrs(struct f2fs_inode *inode) + #define blk_zone_seq_pref(z) ((z)->type == BLK_ZONE_TYPE_SEQWRITE_PREF) + #define blk_zone_seq(z) (blk_zone_seq_req(z) || blk_zone_seq_pref(z)) + ++/* ++ * Handle kernel zone capacity support ++ */ ++#ifndef HAVE_BLK_ZONE_REP_V2 ++#define BLK_ZONE_REP_CAPACITY (1 << 0) ++struct blk_zone_v2 { ++ __u64 start; /* Zone start sector */ ++ __u64 len; /* Zone length in number of sectors */ ++ __u64 wp; /* Zone write pointer position */ ++ __u8 type; /* Zone type */ ++ __u8 cond; /* Zone condition */ ++ __u8 non_seq; /* Non-sequential write resources active */ ++ __u8 reset; /* Reset write pointer recommended */ ++ __u8 resv[4]; ++ __u64 capacity; /* Zone capacity in number of sectors */ ++ __u8 reserved[24]; ++}; ++#define blk_zone blk_zone_v2 ++ ++struct blk_zone_report_v2 { ++ __u64 sector; ++ __u32 nr_zones; ++ __u32 flags; ++struct blk_zone zones[0]; ++}; ++#define blk_zone_report blk_zone_report_v2 ++#endif /* HAVE_BLK_ZONE_REP_V2 */ ++ + static inline const char * + blk_zone_type_str(struct blk_zone *blkz) + { +@@ -1328,34 +1356,6 @@ blk_zone_cond_str(struct blk_zone *blkz) + return "Unknown-cond"; + } + +-/* +- * Handle kernel zone capacity support +- */ +-#ifndef HAVE_BLK_ZONE_REP_V2 +-#define BLK_ZONE_REP_CAPACITY (1 << 0) +-struct blk_zone_v2 { +- __u64 start; /* Zone start sector */ +- __u64 len; /* Zone length in number of sectors */ +- __u64 wp; /* Zone write pointer position */ +- __u8 type; /* Zone type */ +- __u8 cond; /* Zone condition */ +- __u8 non_seq; /* Non-sequential write resources active */ +- __u8 reset; /* Reset write pointer recommended */ +- __u8 resv[4]; +- __u64 capacity; /* Zone capacity in number of sectors */ +- __u8 reserved[24]; +-}; +-#define blk_zone blk_zone_v2 +- +-struct blk_zone_report_v2 { +- __u64 sector; +- __u32 nr_zones; +- __u32 flags; +-struct blk_zone zones[0]; +-}; +-#define blk_zone_report blk_zone_report_v2 +-#endif /* HAVE_BLK_ZONE_REP_V2 */ +- + #define blk_zone_empty(z) (blk_zone_cond(z) == BLK_ZONE_COND_EMPTY) + #define blk_zone_sector(z) (z)->start + #define blk_zone_length(z) (z)->len +-- +2.28.0 + diff --git a/pkg/f2fs-tools/ver b/pkg/f2fs-tools/ver @@ -1 +1 @@ -1.13.0 r1 +1.14.0 r0