Whamcloud - gitweb
libext2fs: retry reading superblock on open when checksum is bad
authorTheodore Ts'o <tytso@mit.edu>
Mon, 18 May 2020 03:05:11 +0000 (23:05 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 18 May 2020 03:05:11 +0000 (23:05 -0400)
commit6338a8467564c3a0a12e9fcb08bdd748d736ac2f
treecd2511da350e0e1ef27c8d8c29fabdf8c15dc947
parent86d6153417ddaccbe3d1f4466a374716006581f4
libext2fs: retry reading superblock on open when checksum is bad

When opening a file system which is mounted, it's possible that when
ext2fs_open2() is racing with the kernel modifying the orphaned inode
list, the superblock's checksum could be incorrect.  So retry reading
the superblock in the hopes that the problem will self-correct.

Google-Bug-Id: 151453112
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/openfs.c