erofs: add multiple device support
authorGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 14 Oct 2021 08:10:10 +0000 (16:10 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Sun, 17 Oct 2021 16:13:30 +0000 (00:13 +0800)
commitdfeab2e95a75a424adf39992ac62dcb9e9517d4a
tree8fd87b9290cd1446cdbea7b2f0a0e24f4f311da6
parente62424651f43cb37e17ca26a7ee9ee42675f24bd
erofs: add multiple device support

In order to support multi-layer container images, add multiple
device feature to EROFS. Two ways are available to use for now:

 - Devices can be mapped into 32-bit global block address space;
 - Device ID can be specified with the chunk indexes format.

Note that it assumes no extent would cross device boundary and mkfs
should take care of it seriously.

In the future, a dedicated device manager could be introduced then
thus extra devices can be automatically scanned by UUID as well.

Link: https://lore.kernel.org/r/20211014081010.43485-1-hsiangkao@linux.alibaba.com
Reviewed-by: Chao Yu <chao@kernel.org>
Reviewed-by: Liu Bo <bo.liu@linux.alibaba.com>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Documentation/filesystems/erofs.rst
fs/erofs/Kconfig
fs/erofs/data.c
fs/erofs/erofs_fs.h
fs/erofs/internal.h
fs/erofs/super.c
fs/erofs/zdata.c