diff --git a/monitor.c b/monitor.c index aac88781cc6680aac3f11e71c72b1d6a73557fb2..4b270d98f67e95cb235346dd54e86398f331fe3c 100644 --- a/monitor.c +++ b/monitor.c @@ -259,7 +259,7 @@ static void do_commit(Monitor *mon, const char *device) all_devices = !strcmp(device, "all"); TAILQ_FOREACH(dinfo, &drives, next) { if (!all_devices) - if (!strcmp(bdrv_get_device_name(dinfo->bdrv), device)) + if (strcmp(bdrv_get_device_name(dinfo->bdrv), device)) continue; bdrv_commit(dinfo->bdrv); }