erofs-utils: mkfs: fragment: gracefully exit if temporary storage is low
authorGao Xiang <hsiangkao@linux.alibaba.com>
Wed, 12 Feb 2025 12:36:33 +0000 (20:36 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Wed, 12 Feb 2025 12:50:54 +0000 (20:50 +0800)
commitbc8ec19a4ed741c9b457387dcba2b647e819b16d
tree32653f1d479baf13757d55b6249062262b259285
parent7bc147fafd53a2a9ff7c22399491079e5bfffafc
erofs-utils: mkfs: fragment: gracefully exit if temporary storage is low

Currently, EROFS keeps all fragments into a temporary file for later
packed inode compression.  However, this could trigger an unexpected
segfault if temporary storage runs low.

Print a proper error message and gracefully exit.

Closes: https://github.com/erofs/erofs-utils/issues/13
Link: https://lore.kernel.org/r/20250212123633.40004-1-hsiangkao@linux.alibaba.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
include/erofs/internal.h
lib/fragments.c
lib/inode.c