From: Colin Ian King
Variable ret is assigned to zero and is always zero throughout the
function. Thus the check for ret being less than zero is always
false and so mapping_set_error always has an -EIO error passed to
it. Hence we can remove the redundant assignment
okay, but I'm not sure whether it can be useful here other than the
sample cli usage. The reason, this tool relies heavily on Python/C
layer[1]. The framework works like this:
C-api(fs-progs) <--> Python/C api <--> Python program.
C-api is typical fs library (like libext2fs/libbtrfs) and
Below (and also attached because of formatting) is an example of `btrfs
scrub` incorrectly reporting that errors have been corrected.
In this example, /dev/md127 is the device created by running:
mdadm --build /dev/md0 --level=faulty --raid-devices=1 /dev/loop0
The filesystem is RAID1.
# mdadm