From: Benoît Canet
Create bdrv_get_backing_file_depth() in order to be able to show
in QMP and HMP how many ancestors backing an image a block device
have.
Signed-off-by: Benoit Canet
---
block.c | 13 +
block.h |1 +
2 files changed, 14 insertions(+)
diff --git a/block.c b
From: Benoît Canet
Use the dedicated counting function in qmp_query_block in order to
propagate the backing file depth to HMP.
Signed-off-by: Benoit Canet
---
block.c |3 +++
qapi-schema.json |9 ++---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/block.c
From: Benoît Canet
In some setups many backing files and snapshot are chained.
This lead to the formation of huge trees of snapshots all depending
on a common ancestor.
Hence if something bad happen to this common ancestor all the snapshot
of the tree will be broken.
This patch add an easy way
From: Benoît Canet
Signed-off-by: Benoit Canet
---
hmp.c |2 ++
1 file changed, 2 insertions(+)
diff --git a/hmp.c b/hmp.c
index 6b72a64..25688ab 100644
--- a/hmp.c
+++ b/hmp.c
@@ -227,6 +227,8 @@ void hmp_info_block(Monitor *mon)
if (info->value->inserted->has_bac
From: Benoît Canet
Signed-off-by: Benoit Canet
---
qmp-commands.hx |2 ++
1 file changed, 2 insertions(+)
diff --git a/qmp-commands.hx b/qmp-commands.hx
index e3cf3c5..5de3adf 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -1317,6 +1317,7 @@ Each json-object contain the following
From: Benoît Canet
Use the dedicated counting function in qmp_query_block in order to
propagate the backing file depth to HMP.
Signed-off-by: Benoit Canet
---
block.c |3 +++
qapi-schema.json |9 ++---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/block.c
From: Benoît Canet
Signed-off-by: Benoit Canet
---
hmp.c |2 ++
1 file changed, 2 insertions(+)
diff --git a/hmp.c b/hmp.c
index 6b72a64..25688ab 100644
--- a/hmp.c
+++ b/hmp.c
@@ -227,6 +227,8 @@ void hmp_info_block(Monitor *mon)
if (info->value->inserted->has_bac
From: Benoît Canet
Create bdrv_get_backing_file_depth() in order to be able to show
in QMP and HMP how many ancestors backing an image a block device
have.
Signed-off-by: Benoit Canet
---
block.c | 13 +
block.h |1 +
2 files changed, 14 insertions(+)
diff --git a/block.c b
From: Benoît Canet
In some setups many backing files and snapshot are chained.
This lead to the formation of huge trees of snapshots all depending
on a common ancestor.
Hence if something bad happen to this common ancestor all the snapshot
of the tree will be broken.
This patch add an easy way
From: Benoît Canet
Signed-off-by: Benoit Canet
---
hmp.c |2 ++
1 file changed, 2 insertions(+)
diff --git a/hmp.c b/hmp.c
index 6b72a64..19dcb65 100644
--- a/hmp.c
+++ b/hmp.c
@@ -227,6 +227,8 @@ void hmp_info_block(Monitor *mon)
if (info->value->inserted->has_bac
From: Benoît Canet
Create bdrv_get_backing_file_ancestors_count() in order to be
able to show in QMP and HMP how many ancestors backing an image a
block device have.
Signed-off-by: Benoit Canet
---
block.c | 13 +
block.h |1 +
2 files changed, 14 insertions(+)
diff --git a
From: Benoît Canet
Use the dedicated counting function in qmp_query_block in order to
propagate the backing file count to HMP.
Signed-off-by: Benoit Canet
---
block.c |3 +++
qapi-schema.json |9 ++---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/block.c
From: Benoît Canet
In some setups many backing files and snapshot are chained.
This lead to the formation of huge trees of snapshots all depending
on a common ancestor.
Hence if something bad happen to this common ancestor all the snapshot
of the tree will be broken.
This patch add an easy way
From: Benoît Canet
Signed-off-by: Benoit Canet
---
hmp.c |2 ++
1 file changed, 2 insertions(+)
diff --git a/hmp.c b/hmp.c
index 6b72a64..19dcb65 100644
--- a/hmp.c
+++ b/hmp.c
@@ -227,6 +227,8 @@ void hmp_info_block(Monitor *mon)
if (info->value->inserted->has_bac
From: Benoît Canet
Create bdrv_get_backing_file_ancestors_count() in order to be
able to show in QMP and HMP how many ancestors backing an image a
block device have.
Signed-off-by: Benoit Canet
---
block.c | 13 +
block.h |1 +
2 files changed, 14 insertions(+)
diff --git a
From: Benoît Canet
In some setups many backing files and snapshot are chained.
This lead to the formation of huge trees of snapshots all depending
on a common ancestor.
Hence if something bad happen to this common ancestor all the snapshot
of the tree will be broken.
This patch add an easy way
From: Benoît Canet
Use the dedicated counting function in qmp_query_block in order to
propagate the backing file count to HMP.
Signed-off-by: Benoit Canet
---
block.c |2 ++
qapi-schema.json |9 ++---
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/block.c
From: Benoît Canet
Create bdrv_get_file_ancestors_count() in order to be
able to show in QMP and HMP how many ancestors backing an image a
block device have.
Signed-off-by: Benoit Canet
---
block.c | 13 +
block.h |1 +
2 files changed, 14 insertions(+)
diff --git a/block.c
From: Benoît Canet
Signed-off-by: Benoit Canet
---
hmp.c |2 ++
1 file changed, 2 insertions(+)
diff --git a/hmp.c b/hmp.c
index 6b72a64..025c59f 100644
--- a/hmp.c
+++ b/hmp.c
@@ -227,6 +227,8 @@ void hmp_info_block(Monitor *mon)
if (info->value->inserted->has_bac
From: Benoît Canet
In some setups many backing files and snapshot are chained.
This lead to the formation of huge trees of snapshots all depending
on a common ancestor.
Hence if something bad happen to this common ancestor all the snapshot
of the tree will be broken.
This patch add an easy way
From: Benoît Canet
Use the dedicated counting function in qmp_query_block in order to
propagate the backing file count to HMP.
Signed-off-by: Benoit Canet
---
block.c |2 ++
qapi-schema.json |9 ++---
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/block.c
From: Benoît Canet
Signed-off-by: Benoit Canet
---
migration.c |5 +
1 file changed, 5 insertions(+)
diff --git a/migration.c b/migration.c
index 8db1b43..3d68996 100644
--- a/migration.c
+++ b/migration.c
@@ -425,6 +425,11 @@ void qmp_migrate(const char *uri, bool has_blk, bool blk
From: Benoît Canet
This patchset is designed to avoid starting a live migration while any of
the block device is busy.
Tested with the following sequence:
QEMU 1.1.50 monitor - type 'help' for more information
(qemu) block_stream virtio0 1k
(qemu) migrate tcp:localhost:
migrate: Migration i
From: Benoît Canet
Signed-off-by: Benoit Canet
---
qerror.c |4
qerror.h |3 +++
2 files changed, 7 insertions(+)
diff --git a/qerror.c b/qerror.c
index 92c4eff..d2e76ca 100644
--- a/qerror.c
+++ b/qerror.c
@@ -283,6 +283,10 @@ static const QErrorStringTable qerror_table
From: Benoît Canet
bdrv_are_busy will be used to check if any of the bs are in use
or if one of them have a running block job.
The first user will be qmp_migrate().
Signed-off-by: Benoit Canet
---
block.c | 13 +
block.h |2 ++
2 files changed, 15 insertions(+)
diff --git
From: Benoît Canet
This patchset is designed to avoid starting a live migration while one or more
streaming block jobs are running.
Tested with the following sequence:
QEMU 1.1.50 monitor - type 'help' for more information
(qemu) block_stream virtio0 1k
(qemu) migrate tcp:localhost:
migrate
From: Benoît Canet
bdrv_are_busy will be used to check if any of the bs are in use
or if one of them have a running block job.
The first user will be qmp_migrate().
Signed-off-by: Benoit Canet
---
block.c | 13 +
block.h |2 ++
2 files changed, 15 insertions(+)
diff --git
From: Benoît Canet
Signed-off-by: Benoit Canet
---
migration.c |5 +
1 file changed, 5 insertions(+)
diff --git a/migration.c b/migration.c
index 8db1b43..4ffdcf2 100644
--- a/migration.c
+++ b/migration.c
@@ -425,6 +425,11 @@ void qmp_migrate(const char *uri, bool has_blk, bool blk
From: Benoît Canet
Signed-off-by: Benoit Canet
---
qerror.c |4
qerror.h |3 +++
2 files changed, 7 insertions(+)
diff --git a/qerror.c b/qerror.c
index 92c4eff..c7889fe 100644
--- a/qerror.c
+++ b/qerror.c
@@ -283,6 +283,10 @@ static const QErrorStringTable qerror_table
From: Benoît Canet
Signed-off-by: Benoit Canet
---
migration.c |5 +
1 file changed, 5 insertions(+)
diff --git a/migration.c b/migration.c
index 8db1b43..5196d7e 100644
--- a/migration.c
+++ b/migration.c
@@ -425,6 +425,11 @@ void qmp_migrate(const char *uri, bool has_blk, bool blk
From: Benoît Canet
bdrv_are_busy will be used to check if any of the bs are in use
or if one of them have a running block job.
The first user will be qmp_migrate().
Signed-off-by: Benoit Canet
---
block.c | 13 +
block.h |2 ++
2 files changed, 15 insertions(+)
diff --git
From: Benoît Canet
Signed-off-by: Benoit Canet
---
qerror.c |4
qerror.h |3 +++
2 files changed, 7 insertions(+)
diff --git a/qerror.c b/qerror.c
index 92c4eff..bcd74b7 100644
--- a/qerror.c
+++ b/qerror.c
@@ -283,6 +283,10 @@ static const QErrorStringTable qerror_table
From: Benoît Canet
This patchset is designed to avoid starting a live migration while one or more
streaming block jobs are running.
Tested with the following sequence:
QEMU 1.1.50 monitor - type 'help' for more information
(qemu) block_stream virtio0 1k
(qemu) migrate tcp:localhost:
migrate:
From: Benoît Canet
Signed-off-by: Benoit Canet
---
migration.c |5 +
1 file changed, 5 insertions(+)
diff --git a/migration.c b/migration.c
index 8db1b43..dfce680 100644
--- a/migration.c
+++ b/migration.c
@@ -425,6 +425,11 @@ void qmp_migrate(const char *uri, bool has_blk, bool blk
From: Benoît Canet
qmp_migrate() will be able to check if some block jobs are
running using bdrv_have_block_jobs() and abort safely if needed.
Signed-off-by: Benoit Canet
---
block.c | 14 ++
block.h |2 ++
2 files changed, 16 insertions(+)
diff --git a/block.c b/block.c
From: Benoît Canet
Signed-off-by: Benoit Canet
---
qerror.c |4
qerror.h |3 +++
2 files changed, 7 insertions(+)
diff --git a/qerror.c b/qerror.c
index 92c4eff..bcd74b7 100644
--- a/qerror.c
+++ b/qerror.c
@@ -283,6 +283,10 @@ static const QErrorStringTable qerror_table
From: Benoît Canet
This patchset is designed to avoid starting a live migration while one or more
streaming block jobs are running.
Tested with the following sequence:
QEMU 1.1.50 monitor - type 'help' for more information
(qemu) block_stream virtio0 1k
(qemu) migrate tcp:localhost:
migrate:
37 matches
Mail list logo