[PATCH] erofs-utils: manpage: add missing -Eztailpacking option

2022-06-11 Thread Gao Xiang
Complete the manpage for ztailpacking feature and clean up the whole subsection. Signed-off-by: Gao Xiang --- man/mkfs.erofs.1 | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/man/mkfs.erofs.1 b/man/mkfs.erofs.1 index 6017760..59cb44d 100644 --- a/man/mkfs.

Re: mainline build failure due to 6c77676645ad ("iov_iter: Fix iter_xarray_get_pages{,_alloc}()")

2022-06-11 Thread Sudip Mukherjee
On Sat, Jun 11, 2022 at 1:56 PM Al Viro wrote: > > On Sat, Jun 11, 2022 at 12:37:44PM +, Al Viro wrote: > > On Sat, Jun 11, 2022 at 12:12:47PM +, Al Viro wrote: > > > > > > > At a guess, should be > > > return min((size_t)nr * PAGE_SIZE - offset, maxsize); > > > > > > in both places.

Re: mainline build failure due to 6c77676645ad ("iov_iter: Fix iter_xarray_get_pages{,_alloc}()")

2022-06-11 Thread Al Viro
On Sat, Jun 11, 2022 at 03:01:16PM +, Al Viro wrote: > On Sat, Jun 11, 2022 at 07:00:52AM -0700, Guenter Roeck wrote: > > On Sat, Jun 11, 2022 at 12:56:27PM +, Al Viro wrote: > > > On Sat, Jun 11, 2022 at 12:37:44PM +, Al Viro wrote: > > > > On Sat, Jun 11, 2022 at 12:12:47PM +, Al

Re: mainline build failure due to 6c77676645ad ("iov_iter: Fix iter_xarray_get_pages{,_alloc}()")

2022-06-11 Thread Al Viro
On Sat, Jun 11, 2022 at 07:00:52AM -0700, Guenter Roeck wrote: > On Sat, Jun 11, 2022 at 12:56:27PM +, Al Viro wrote: > > On Sat, Jun 11, 2022 at 12:37:44PM +, Al Viro wrote: > > > On Sat, Jun 11, 2022 at 12:12:47PM +, Al Viro wrote: > > > > > > > > > > At a guess, should be > > > >

Re: mainline build failure due to 6c77676645ad ("iov_iter: Fix iter_xarray_get_pages{,_alloc}()")

2022-06-11 Thread Guenter Roeck
On Sat, Jun 11, 2022 at 12:56:27PM +, Al Viro wrote: > On Sat, Jun 11, 2022 at 12:37:44PM +, Al Viro wrote: > > On Sat, Jun 11, 2022 at 12:12:47PM +, Al Viro wrote: > > > > > > > At a guess, should be > > > return min((size_t)nr * PAGE_SIZE - offset, maxsize); > > > > > > in both p

Re: [PATCH] iov_iter: Fix iter_xarray_get_pages{,_alloc}()

2022-06-11 Thread Guenter Roeck
On Thu, Jun 09, 2022 at 09:07:01AM +0100, David Howells wrote: > The maths at the end of iter_xarray_get_pages() to calculate the actual > size doesn't work under some circumstances, such as when it's been asked to > extract a partial single page. Various terms of the equation cancel out > and you

Re: mainline build failure due to 6c77676645ad ("iov_iter: Fix iter_xarray_get_pages{,_alloc}()")

2022-06-11 Thread Al Viro
On Sat, Jun 11, 2022 at 12:37:44PM +, Al Viro wrote: > On Sat, Jun 11, 2022 at 12:12:47PM +, Al Viro wrote: > > > > At a guess, should be > > return min((size_t)nr * PAGE_SIZE - offset, maxsize); > > > > in both places. I'm more than half-asleep right now; could you verify that > >

Re: mainline build failure due to 6c77676645ad ("iov_iter: Fix iter_xarray_get_pages{,_alloc}()")

2022-06-11 Thread Al Viro
On Sat, Jun 11, 2022 at 12:12:47PM +, Al Viro wrote: > At a guess, should be > return min((size_t)nr * PAGE_SIZE - offset, maxsize); > > in both places. I'm more than half-asleep right now; could you verify that it > (as the last lines of both iter_xarray_get_pages() and > iter_xarra

Re: mainline build failure due to 6c77676645ad ("iov_iter: Fix iter_xarray_get_pages{,_alloc}()")

2022-06-11 Thread Al Viro
On Sat, Jun 11, 2022 at 11:45:03AM +0100, Sudip Mukherjee wrote: > Hi All, > > The latest mainline kernel branch fails to build for "arm allmodconfig", > "xtensa allmodconfig" and "csky allmodconfig" with the error: > > In file included from ./include/linux/kernel.h:26, > from ./

[PATCH] erofs-utils: use EROFS_BLKSIZ unconditionally

2022-06-11 Thread Gao Xiang
Use EROFS_BLKSIZ only in the codebase and just warn potential incompatible PAGE_SIZE. It fixes, http://autobuild.buildroot.net/results/2daa0f7a7418f7491b8b4c5495904abb86efa809/build-end.log Signed-off-by: Gao Xiang --- include/erofs/internal.h | 2 +- lib/compressor.c | 4 ++-- lib/data

[PATCH] erofs-utils: update README

2022-06-11 Thread Gao Xiang
update README for the upcoming erofs-utils v1.5, such as: - Image extraction with fsck.erofs; - Container image use cases. Signed-off-by: Gao Xiang --- README | 71 -- 1 file changed, 54 insertions(+), 17 deletions(-) diff --git a/READ

Re: mainline build failure due to 6c77676645ad ("iov_iter: Fix iter_xarray_get_pages{,_alloc}()")

2022-06-11 Thread Sudip Mukherjee
On Sat, Jun 11, 2022 at 11:45 AM Sudip Mukherjee wrote: > > Hi All, > > The latest mainline kernel branch fails to build for "arm allmodconfig", > "xtensa allmodconfig" and "csky allmodconfig" with the error: missed adding "mips allmodconfig". -- Regards Sudip

mainline build failure due to 6c77676645ad ("iov_iter: Fix iter_xarray_get_pages{,_alloc}()")

2022-06-11 Thread Sudip Mukherjee
Hi All, The latest mainline kernel branch fails to build for "arm allmodconfig", "xtensa allmodconfig" and "csky allmodconfig" with the error: In file included from ./include/linux/kernel.h:26, from ./include/linux/crypto.h:16, from ./include/crypto/hash.h:11,

[PATCH] erofs-utils: fsck: support extracting special files

2022-06-11 Thread Gao Xiang
Now device special file, named pipe and UNIX domain socket can be extracted too. Signed-off-by: Gao Xiang --- fsck/main.c | 48 +++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/fsck/main.c b/fsck/main.c index 7fc7b6f..5a2f659 100644 -

[PATCH] erofs-utils: mkfs: introduce `--preserve-mtime'

2022-06-11 Thread Gao Xiang
In the past versions, `-Eforce-inode-compact' worked since timestamps were ignored. Currently, since we don't ignore mtime by default any more, `-Eforce-inode-compact' fails and that breaks compatibility. Let's fix `-Eforce-inode-compact' to ignore mtime as the past versions did, also add another

[xiang-erofs:dev] BUILD SUCCESS 94f870f1359565fff3d224c8e6c17e26a4ffde9f

2022-06-11 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git dev branch HEAD: 94f870f1359565fff3d224c8e6c17e26a4ffde9f MAINTAINERS: erofs: add myself as reviewer elapsed time: 3531m configs tested: 100 configs skipped: 3 The following configs have been built successfully. More