At 10/13/2016 10:29 PM, David Sterba wrote:
On Fri, Oct 07, 2016 at 03:23:00PM +0800, Qu Wenruo wrote:
+for img in $(find . \( -iname '*.img' -o       \
+                       -iname '*.img.xz' -o    \
+                       -iname '*.raw' -o       \
+                       -iname '*.raw.xz' \) | sort)
+do
+       image=$(extract_image $img)
+       run_check $TOP/btrfs check "$image"
+       rm -f "$image"
+done

There's a helper that enumerates images and calls 'check_image' on each,
so you should redefine 'check_image' if you don't want to do the default
actions (check, repair and check). Fixed in devel.


Oh, thanks for this hint! I checked the commit in devel branch, and found that we could just override check_image() function.

Brilliant idea!

Thanks,
Qu


--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to