[PATCH nbdinfo proposal] info: Add a --map option for displaying allocation metadata.

2020-09-26 Thread Richard W.M. Jones
--- info/nbdinfo.c | 132 --- info/nbdinfo.pod | 39 +- 2 files changed, 164 insertions(+), 7 deletions(-) diff --git a/info/nbdinfo.c b/info/nbdinfo.c index 647a24c..d1648b8 100644 --- a/info/nbdinfo.c +++ b/info/nbdinfo.c @@ -34,6 +34,7

[PATCH nbdinfo proposal] info: Add a --map option for displaying allocation metadata

2020-09-26 Thread Richard W.M. Jones
This is a rough-and-ready implementation of nbdinfo --map option, to display the allocation and other metadata of NBD exports. I only tested it lightly against nbdkit. It needs at least some tests. Command like these should work: nbdinfo --map nbd://localhost nbdinfo --map=qemu:dirty-bitmap nbd