erofs-utils: lib: add erofs_get_configure()
authorHongzhen Luo <hongzhen@linux.alibaba.com>
Thu, 27 Jun 2024 02:27:41 +0000 (10:27 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 27 Jun 2024 02:45:36 +0000 (10:45 +0800)
commitad6c80dc168df58bea7f2b5cbee24d158a5a1c92
tree89795c662c3112481eeb88ebbe8471b3c5c4cc97
parentfba16465651101f7d9cda111a928f65e88dbb11b
erofs-utils: lib: add erofs_get_configure()

This adds `erofs_get_configure()` to get the global configuration
`cfg`.  It allows external entities to change the global configuration
through this helper, thereby controlling the EROFS mkfs process.

It is just a temporary helper for liberofs and it will be deprecated
in the future.  Don't rely on it too much.

Signed-off-by: Hongzhen Luo <hongzhen@linux.alibaba.com>
Link: https://lore.kernel.org/r/20240627022741.3912785-1-hongzhen@linux.alibaba.com
[ Gao Xiang: minor commit message update. ]
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
include/erofs/config.h
lib/config.c