]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2fe794278a23af73ae0f6dab9b738ec6f926abd5
tree8fd87b9290cd1446cdbea7b2f0a0e24f4f311da6
parent87aede54d690570d23d2219213afdc3daef156a2
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