File tree Expand file tree Collapse file tree 3 files changed +17
-7
lines changed Expand file tree Collapse file tree 3 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -69,8 +69,12 @@ void qmp_x_blockdev_amend(const char *job_id,
69
69
BlockdevAmendJob * s ;
70
70
const char * fmt = BlockdevDriver_str (options -> driver );
71
71
BlockDriver * drv = bdrv_find_format (fmt );
72
- BlockDriverState * bs = bdrv_find_node ( node_name ) ;
72
+ BlockDriverState * bs ;
73
73
74
+ bs = bdrv_lookup_bs (NULL , node_name , errp );
75
+ if (!bs ) {
76
+ return ;
77
+ }
74
78
75
79
if (!drv ) {
76
80
error_setg (errp , "Block driver '%s' not found or not supported" , fmt );
Original file line number Diff line number Diff line change 112
112
echo ' === Partial final cluster ==='
113
113
echo
114
114
115
- _make_test_img 1024
115
+ # Force compat=1.1, because writing zeroes on a v2 image without a
116
+ # backing file would just result in an unallocated cluster
117
+ _make_test_img -o compat=1.1 1024
116
118
$QEMU_IO -f $IMGFMT -C -c ' read 0 1024' " $TEST_IMG " | _filter_qemu_io
117
119
$QEMU_IO -f $IMGFMT -c map " $TEST_IMG "
118
120
_check_test_img
Original file line number Diff line number Diff line change @@ -595,15 +595,19 @@ then
595
595
fi
596
596
export QEMU_PROG=" $( type -p " $QEMU_PROG " ) "
597
597
598
+ export QEMU_OPTIONS=" -nodefaults -display none -accel qtest"
598
599
case " $QEMU_PROG " in
599
600
* qemu-system-arm|* qemu-system-aarch64)
600
- export QEMU_OPTIONS=" -nodefaults -display none - machine virt -accel qtest "
601
+ export QEMU_OPTIONS=" $QEMU_OPTIONS - machine virt"
601
602
;;
602
- * qemu-system-tricore)
603
- export QEMU_OPTIONS=" -nodefaults -display none -machine tricore_testboard -accel qtest"
603
+ * qemu-system-avr)
604
+ export QEMU_OPTIONS=" $QEMU_OPTIONS -machine mega2560"
605
+ ;;
606
+ * qemu-system-rx)
607
+ export QEMU_OPTIONS=" $QEMU_OPTIONS -machine gdbsim-r5f562n8"
604
608
;;
605
- * )
606
- export QEMU_OPTIONS=" -nodefaults -display none -accel qtest "
609
+ * qemu-system-tricore )
610
+ export QEMU_OPTIONS=" -$QEMU_OPTIONS -machine tricore_testboard "
607
611
;;
608
612
esac
609
613
You can’t perform that action at this time.
0 commit comments