Whamcloud - gitweb
LU-8465 ext2fs: RO open for bitmap loading 29/43129/3
authorWang Shilong <wshilong@ddn.com>
Fri, 19 Mar 2021 07:31:55 +0000 (15:31 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 26 Mar 2021 20:49:10 +0000 (20:49 +0000)
commitc0f60f896182d26711c7d8d064dc95471b0d9829
tree4b8fbdf71afa68fc2c614ea73857af4bba00090c
parent8f9a0f45501af4036becae31f3d054bfaf48149c
LU-8465 ext2fs: RO open for bitmap loading

See following errors:
 e2fsck -fnm 12 /dev/loop0

Multiple threads triggered to read bitmaps
e2fsck: Operation not permitted while retrying to
read bitmaps for 35df4c2c-MDT0000

snapshot device is Readonly, open it with RW will return
EPERM, since parallel bitmap loading is Readonly operation,
use readonly open is ok.

Fixes: 0e888c3cca ("LU-8465 ext2fs: parallel bitmap loading")
DDN-bug-id: EX-2665
Change-Id: I3e5fc1f9360d714f8223b5628aab871b0ac25298
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/43129
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lib/ext2fs/rw_bitmaps.c