stream.c (3da71a2111de9f0bc475f8292d009265ab34365f) | stream.c (fb2575f95411644abe7f0606594035b63a5132ad) |
---|---|
1/* 2 * Image streaming 3 * 4 * Copyright IBM, Corp. 2011 5 * 6 * Authors: 7 * Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> 8 * --- 278 unchanged lines hidden (view full) --- 287 above_base = bdrv_filter_bs(above_base); 288 } 289 } 290 } 291 292 /* Make sure that the image is opened in read-write mode */ 293 bs_read_only = bdrv_is_read_only(bs); 294 if (bs_read_only) { | 1/* 2 * Image streaming 3 * 4 * Copyright IBM, Corp. 2011 5 * 6 * Authors: 7 * Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> 8 * --- 278 unchanged lines hidden (view full) --- 287 above_base = bdrv_filter_bs(above_base); 288 } 289 } 290 } 291 292 /* Make sure that the image is opened in read-write mode */ 293 bs_read_only = bdrv_is_read_only(bs); 294 if (bs_read_only) { |
295 int ret; | |
296 /* Hold the chain during reopen */ 297 if (bdrv_freeze_backing_chain(bs, above_base, errp) < 0) { 298 return; 299 } 300 301 ret = bdrv_reopen_set_read_only(bs, false, errp); 302 303 /* failure, or cor-filter will hold the chain */ --- 98 unchanged lines hidden --- | 295 /* Hold the chain during reopen */ 296 if (bdrv_freeze_backing_chain(bs, above_base, errp) < 0) { 297 return; 298 } 299 300 ret = bdrv_reopen_set_read_only(bs, false, errp); 301 302 /* failure, or cor-filter will hold the chain */ --- 98 unchanged lines hidden --- |