[PATCH 04/13] erofs-utils: add input/output functions

2019-05-30 Thread Gao Xiang via Linux-erofs
From: Li Guifu This patch adds definitions and functions which are mainly used for reading and writing target image files. Signed-off-by: Li Guifu Signed-off-by: Miao Xie Signed-off-by: Fang Wei Signed-off-by: Gao Xiang --- include/erofs/io.h | 33 lib/Makefile.am| 2 +-

[PATCH 12/13] erofs-utils: add a README

2019-05-30 Thread Gao Xiang via Linux-erofs
From: Gao Xiang This patch adds a README and some warnings here. Signed-off-by: Gao Xiang --- README | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 README diff --git a/README b/README new file mode 100644 index 000..4d509be --- /dev/null +++ b/README @@ -0,0 +1,11

[PATCH 00/13] erofs_utils: new mkfs framework

2019-05-30 Thread Gao Xiang via Linux-erofs
Hi all, I spent nearly a month to make big changes to erofs-mkfs, which mainly introduces a new mkfs framework. I personally think it is much cleaner and more scalable than the old one, which is hack and not clean enough. In-place compression is still work-in-progress, thus it isn't included in

[PATCH 09/13] erofs-utils: introduce lz4/lz4hc compression algorithm

2019-05-30 Thread Gao Xiang via Linux-erofs
From: Gao Xiang This patch adds lz4/lz4hc compression algorithms to erofs-utils compression framework in order to enable the fixed-output size compression. Signed-off-by: Gao Xiang --- configure.ac | 65 ++ lib/Makefile.am| 7 +

[PATCH 06/13] erofs-utils: introduce inode operations

2019-05-30 Thread Gao Xiang via Linux-erofs
From: Gao Xiang This patch adds core inode and dentry operations to build the target image. Signed-off-by: Li Guifu [ Gao Xiang: with heavy changes. ] Signed-off-by: Gao Xiang --- include/erofs/inode.h| 21 ++ include/erofs/internal.h | 10 +- lib/Makefile.am | 2 +-

[PATCH 08/13] erofs-utils: introduce generic compression framework

2019-05-30 Thread Gao Xiang via Linux-erofs
From: Gao Xiang This patch adds a new flexable compression framework to user-space utilities, which is designed in order to integrate more compression algorithms easily. Signed-off-by: Gao Xiang --- lib/Makefile.am | 2 +- lib/compressor.c | 74

[PATCH 07/13] erofs-utils: introduce mkfs support

2019-05-30 Thread Gao Xiang via Linux-erofs
From: Li Guifu This patch adds mkfs support to erofs-utils, and it's able to build uncompressed images at the moment. Signed-off-by: Li Guifu Signed-off-by: Gao Xiang --- Makefile.am | 2 +- configure.ac | 3 +- mkfs/Makefile.am | 9 +++ mkfs/main.c | 179

[PATCH 03/13] erofs-utils: introduce miscellaneous files

2019-05-30 Thread Gao Xiang via Linux-erofs
From: Li Guifu This patch introduces a global configuration scheme, some functions which can print messages in different level, build scripts and .gitignore file. Signed-off-by: Li Guifu Signed-off-by: Miao Xie Signed-off-by: Fang Wei Signed-off-by: Gao Xiang --- .gitignore |

[PATCH 01/13] erofs-utils: add erofs on-disk layout

2019-05-30 Thread Gao Xiang via Linux-erofs
From: Li Guifu This patch adds a header file describing the erofs on-disk layout, which should be kept in line with the kernel implementation all the time. Signed-off-by: Li Guifu Signed-off-by: Miao Xie Signed-off-by: Fang Wei Signed-off-by: Gao Xiang --- include/erofs_fs.h | 275

[PATCH 02/13] erofs-utils: introduce erofs-utils basic headers

2019-05-30 Thread Gao Xiang via Linux-erofs
From: Li Guifu This patch adds basic definitions, and a simple kernel-like list implementaion. Signed-off-by: Li Guifu Signed-off-by: Miao Xie Signed-off-by: Fang Wei Signed-off-by: Gao Xiang --- include/erofs/defs.h | 159 +++ include/erofs/err.h

[PATCH 05/13] erofs-utils: introduce buffer cache

2019-05-30 Thread Gao Xiang via Linux-erofs
From: Gao Xiang This patch adds a buffer cache mainly to manage incomplete metadata blocks. mkfs logic is also simplified with the help of buffer cache. Signed-off-by: Miao Xie [ Gao Xiang: with heavy changes. ] Signed-off-by: Gao Xiang --- include/erofs/cache.h | 104 +

[PATCH 13/13] erofs-utils: fix potential erofs_bh_balloon failure

2019-05-30 Thread Gao Xiang via Linux-erofs
From: Gao Xiang erofs_write_tail_end is called at the last end of erofs_mkfs_build_tree, which is of course after traversing all sub-tree inodes. Therefore, erofs_bh_balloon could fail if corresponding block is allocated, fix it. Signed-off-by: Gao Xiang --- Will be wrapped in the original