do_snapshot_blkdev() error on missing snapshot_file argument
PATCH 1/1 do_snapshot_blkdev() error on missing snapshot_file argument
From: Jes Sorensen <[email protected]>
Current code does not support snapshot internally to the running image. Error in case no snapshot_file is specified.
Signed-off-by Jes Sorensen <[email protected]>
--- blockdev.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
blockdev.c +6 -0
@@ -526,6 +526,12 @@ int do_snapshot_blkdev(Monitor *mon, const QDict *qdict, QObject **ret_data)int ret =0 ;int flags; +if (!filename) { +qerror_report (QERR_MISSING_PARAMETER ,"snapshot_file" ); + ret =-1 ; + goto out; + } + bs =bdrv_find (device);if (!bs) {qerror_report (QERR_DEVICE_NOT_FOUND , device);
Signature · 1 line
1.7.3.4
Kevin Wolf
AppliedAm 06.01.2011 17:02, schrieb [email protected]:
Quoted 6 lines
From: Jes Sorensen <[email protected]>
Current code does not support snapshot internally to the running image. Error in case no
snapshot_fileis specified.Signed-off-by Jes Sorensen <[email protected]>
Thanks, applied to the block branch.
Kevin