erofs: scan devices from device table
authorJeffle Xu <jefflexu@linux.alibaba.com>
Thu, 12 May 2022 05:56:01 +0000 (13:56 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Tue, 17 May 2022 16:11:21 +0000 (00:11 +0800)
commitba73eadd23d1c2dc5c8dc0c0ae2eeca2b9b709a7
tree585ac83e0d9f37541cd2fd70d7170839ede5fce1
parentd435d53228dd039fffecae123b8c138af6f96f99
erofs: scan devices from device table

When "-o device" mount option is not specified, scan the device table
and instantiate the devices if there's any in the device table. In this
case, the tag field of each device slot uniquely specifies a device.

Signed-off-by: Jeffle Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20220512055601.106109-1-jefflexu@linux.alibaba.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/erofs_fs.h
fs/erofs/super.c