blkverify.c (244b26d259bc56097b2d82690847cb7657e22830) | blkverify.c (79a558664840adf502fe94907b0a680836e3e98e) |
---|---|
1/* 2 * Block protocol for block driver correctness testing 3 * 4 * Copyright (C) 2010 IBM, Corp. 5 * 6 * This work is licensed under the terms of the GNU GPL, version 2 or later. 7 * See the COPYING file in the top-level directory. 8 */ --- 274 unchanged lines hidden (view full) --- 283 * blkverify quits the whole qemu process if there is a mismatch 284 * between bs->file->bs and s->test_file->bs. Therefore, we know 285 * know that both must match bs and we can recurse down to either. 286 */ 287 return bdrv_recurse_can_replace(bs->file->bs, to_replace) || 288 bdrv_recurse_can_replace(s->test_file->bs, to_replace); 289} 290 | 1/* 2 * Block protocol for block driver correctness testing 3 * 4 * Copyright (C) 2010 IBM, Corp. 5 * 6 * This work is licensed under the terms of the GNU GPL, version 2 or later. 7 * See the COPYING file in the top-level directory. 8 */ --- 274 unchanged lines hidden (view full) --- 283 * blkverify quits the whole qemu process if there is a mismatch 284 * between bs->file->bs and s->test_file->bs. Therefore, we know 285 * know that both must match bs and we can recurse down to either. 286 */ 287 return bdrv_recurse_can_replace(bs->file->bs, to_replace) || 288 bdrv_recurse_can_replace(s->test_file->bs, to_replace); 289} 290 |
291static void blkverify_refresh_filename(BlockDriverState *bs) | 291static void GRAPH_RDLOCK blkverify_refresh_filename(BlockDriverState *bs) |
292{ 293 BDRVBlkverifyState *s = bs->opaque; 294 295 if (bs->file->bs->exact_filename[0] 296 && s->test_file->bs->exact_filename[0]) 297 { 298 int ret = snprintf(bs->exact_filename, sizeof(bs->exact_filename), 299 "blkverify:%s:%s", --- 45 unchanged lines hidden --- | 292{ 293 BDRVBlkverifyState *s = bs->opaque; 294 295 if (bs->file->bs->exact_filename[0] 296 && s->test_file->bs->exact_filename[0]) 297 { 298 int ret = snprintf(bs->exact_filename, sizeof(bs->exact_filename), 299 "blkverify:%s:%s", --- 45 unchanged lines hidden --- |