Whamcloud - gitweb
libext2fs: fix ext2fs_compare_generic_bmap logic
authorRitesh Harjani (IBM) <ritesh.list@gmail.com>
Mon, 7 Nov 2022 12:20:50 +0000 (17:50 +0530)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 24 Jan 2023 20:19:39 +0000 (15:19 -0500)
commitb795c06d8a44f42cdffdf5aa9561ff8de20d78cc
treef3b82cc50fb0e43e661d90af36b585f30fe91884
parent5c22148e2c60638c63b7ad74b8eb65de0d121425
libext2fs: fix ext2fs_compare_generic_bmap logic

Currently this function was not correctly comparing against the right
length of the bitmap. Also when we compare bitarray v/s rbtree bitmap
the value returned by ext2fs_test_generic_bmap() could be different in
these two implementations.  Hence only check against boolean value.

Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/gen_bitmap64.c