From: Teruaki Ishizaki <[email protected]> After iSCSI initiator logins to the iSCSI target of the VDI, getting snapshot for that volume causes segault. This patch fixes false loop.
Signed-off-by: Teruaki Ishizaki <[email protected]> Signed-off-by: Hitoshi Mitake <[email protected]> --- dog/vdi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dog/vdi.c b/dog/vdi.c index c541706..1adf4bd 100644 --- a/dog/vdi.c +++ b/dog/vdi.c @@ -631,7 +631,7 @@ static int vdi_snapshot(int argc, char **argv) nr_owners = 1; } else { /* tgt is using it */ - for (int j = 0; j < s->nr_participants; i++) { + for (int j = 0; j < s->nr_participants; j++) { memset(&owners[nr_owners], 0, sizeof(owners[nr_owners])); memcpy(&owners[nr_owners], -- 1.9.1 -- sheepdog mailing list [email protected] https://lists.wpkg.org/mailman/listinfo/sheepdog
