Re: [PATCH 2/2] btrfs-progs: fsck-test: Add image for quota verify stack overflow

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux