On Wed, Mar 14, 2018 at 05:46:29AM +0000, Kazuya Mio wrote: > dumpe2fs/debugfs can examine the image file by using the -i option. > However, if meta_bg feature is enabled, dumpe2fs/debugfs cannot open > the image file. > > $ dumpe2fs -i test.img > dumpe2fs: Attempt to read block from filesystem resulted in short read while trying to open test.img > Couldn't find valid filesystem superblock. > > In case of specifying an image file, the location of block group descriptors > is the same as the case of default filesystem regardless of meta_bg feature. > So if EXT2_FLAG_IMAGE_FILE flag is set in ext2fs_open2(), > don't use the meta_bg handling. > > Signed-off-by: Kazuya Mio <k-mio@xxxxxxxxxxxxx> Applied, thanks!! - Ted