Skip to contentSkip to conversation

docs: add qemu-block-drivers(7) man page

PATCH Applied Stefan Hajnoczi 4 participants 8 messages Jul 26, 2017 – Sep 4, 2017 Kbuild

v3 of 6 Applied Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 docs: add qemu-block-drivers(7) man page

Block driver documentation is available in qemu-doc.html. It would be convenient to have documentation for formats, protocols, and filter drivers in a man page.

Extract the relevant part of qemu-doc.html into a new file called docs/qemu-block-drivers.texi. This file can also be built as a stand-alone document (man, html, etc).

---
v3:
* Rebased due to LUKS documentation conflict [Kevin]

 Makefile                     |  23 +-
 docs/qemu-block-drivers.texi | 799 +++++++++++++++++++++++++++++++++++++++++++
 qemu-doc.texi                | 780 +-----------------------------------------
 3 files changed, 818 insertions(+), 784 deletions(-)
 create mode 100644 docs/qemu-block-drivers.texi
Makefile +18 -5
index ef721480eb..67edeffbfe 100644
@@ -209,6 +209,9 @@ ifdef BUILD_DOCS
 DOCS=qemu-doc.html qemu-doc.txt qemu.1 qemu-img.1 qemu-nbd.8 qemu-ga.8
 DOCS+=docs/interop/qemu-qmp-ref.html docs/interop/qemu-qmp-ref.txt docs/interop/qemu-qmp-ref.7
 DOCS+=docs/interop/qemu-ga-ref.html docs/interop/qemu-ga-ref.txt docs/interop/qemu-ga-ref.7
+DOCS+=docs/qemu-block-drivers.html
+DOCS+=docs/qemu-block-drivers.txt
+DOCS+=docs/qemu-block-drivers.7
 ifdef CONFIG_VIRTFS
 DOCS+=fsdev/virtfs-proxy-helper.1
 endif
@@ -530,6 +533,8 @@ distclean: clean
 	rm -f docs/interop/qemu-qmp-ref.txt docs/interop/qemu-ga-ref.txt
 	rm -f docs/interop/qemu-qmp-ref.pdf docs/interop/qemu-ga-ref.pdf
 	rm -f docs/interop/qemu-qmp-ref.html docs/interop/qemu-ga-ref.html
+	rm -f docs/qemu-block-drivers.7 docs/qemu-block-drivers.txt
+	rm -f docs/qemu-block-drivers.pdf docs/qemu-block-drivers.html
 	for d in $(TARGET_DIRS); do \
 	rm -rf $$d || exit 1 ; \
         done
@@ -570,11 +575,14 @@ install-doc: $(DOCS)
 	$(INSTALL_DATA) qemu-doc.txt "$(DESTDIR)$(qemu_docdir)"
 	$(INSTALL_DATA) docs/interop/qemu-qmp-ref.html "$(DESTDIR)$(qemu_docdir)"
 	$(INSTALL_DATA) docs/interop/qemu-qmp-ref.txt "$(DESTDIR)$(qemu_docdir)"
+	$(INSTALL_DATA) docs/qemu-block-drivers.html "$(DESTDIR)$(qemu_docdir)"
+	$(INSTALL_DATA) docs/qemu-block-drivers.txt "$(DESTDIR)$(qemu_docdir)"
 ifdef CONFIG_POSIX
 	$(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1"
 	$(INSTALL_DATA) qemu.1 "$(DESTDIR)$(mandir)/man1"
 	$(INSTALL_DIR) "$(DESTDIR)$(mandir)/man7"
 	$(INSTALL_DATA) docs/interop/qemu-qmp-ref.7 "$(DESTDIR)$(mandir)/man7"
+	$(INSTALL_DATA) docs/qemu-block-drivers.7 "$(DESTDIR)$(mandir)/man7"
 ifneq ($(TOOLS),)
 	$(INSTALL_DATA) qemu-img.1 "$(DESTDIR)$(mandir)/man1"
 	$(INSTALL_DIR) "$(DESTDIR)$(mandir)/man8"
@@ -721,15 +729,15 @@ fsdev/virtfs-proxy-helper.1: fsdev/virtfs-proxy-helper.texi
 qemu-nbd.8: qemu-nbd.texi qemu-option-trace.texi
 qemu-ga.8: qemu-ga.texi
 
-html: qemu-doc.html docs/interop/qemu-qmp-ref.html docs/interop/qemu-ga-ref.html
-info: qemu-doc.info docs/interop/qemu-qmp-ref.info docs/interop/qemu-ga-ref.info
-pdf: qemu-doc.pdf docs/interop/qemu-qmp-ref.pdf docs/interop/qemu-ga-ref.pdf
-txt: qemu-doc.txt docs/interop/qemu-qmp-ref.txt docs/interop/qemu-ga-ref.txt
+html: qemu-doc.html docs/interop/qemu-qmp-ref.html docs/interop/qemu-ga-ref.html docs/qemu-block-drivers.html
+info: qemu-doc.info docs/interop/qemu-qmp-ref.info docs/interop/qemu-ga-ref.info docs/qemu-block-drivers.info
+pdf: qemu-doc.pdf docs/interop/qemu-qmp-ref.pdf docs/interop/qemu-ga-ref.pdf docs/qemu-block-drivers.pdf
+txt: qemu-doc.txt docs/interop/qemu-qmp-ref.txt docs/interop/qemu-ga-ref.txt docs/qemu-block-drivers.txt
 
 qemu-doc.html qemu-doc.info qemu-doc.pdf qemu-doc.txt: \
 	qemu-img.texi qemu-nbd.texi qemu-options.texi qemu-option-trace.texi \
 	qemu-monitor.texi qemu-img-cmds.texi qemu-ga.texi \
-	qemu-monitor-info.texi
+	qemu-monitor-info.texi docs/qemu-block-drivers.texi
 
 docs/interop/qemu-ga-ref.dvi docs/interop/qemu-ga-ref.html \
     docs/interop/qemu-ga-ref.info docs/interop/qemu-ga-ref.pdf \
@@ -741,6 +749,11 @@ docs/interop/qemu-qmp-ref.dvi docs/interop/qemu-qmp-ref.html \
     docs/interop/qemu-qmp-ref.txt docs/interop/qemu-qmp-ref.7: \
 	docs/interop/qemu-qmp-ref.texi docs/interop/qemu-qmp-qapi.texi
 
+docs/qemu-block-drivers.dvi docs/qemu-block-drivers.html \
+    docs/qemu-block-drivers.info docs/qemu-block-drivers.pdf \
+    docs/qemu-block-drivers.txt docs/qemu-block-drivers.7: \
+	docs/qemu-block-drivers.texi
+
 
 ifdef CONFIG_WIN32
 
docs/qemu-block-drivers.texi new file +799 -0

799 lines not on this page · raw message

qemu-doc.texi +1 -779

786 lines not on this page · raw message

Signature · 1 line
2.13.3
#1 lore raw
Quoted 7 lines · Stefan Hajnoczi

Block driver documentation is available in qemu-doc.html. It would be convenient to have documentation for formats, protocols, and filter drivers in a man page.

Extract the relevant part of qemu-doc.html into a new file called docs/qemu-block-drivers.texi. This file can also be built as a stand-alone document (man, html, etc).

Is there perhaps benefit it taking it further and creating one man page per block driver. Many of the block drivers are optional and can be turned off, so this would let us leave out the docs for disabled block drivers too.

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#2 lore raw
Quoted 5 lines · Daniel P. Berrange
Quoted 4 lines · Stefan Hajnoczi

Block driver documentation is available in qemu-doc.html. It would be convenient to have documentation for formats, protocols, and filter drivers in a man page.

Quoted 8 lines
Quoted 3 lines

Extract the relevant part of qemu-doc.html into a new file called docs/qemu-block-drivers.texi. This file can also be built as a stand-alone document (man, html, etc).

Is there perhaps benefit it taking it further and creating one man page per block driver. Many of the block drivers are optional and can be turned off, so this would let us leave out the docs for disabled block drivers too.

That's a great idea - especially in the world of modular block drivers (they can be installed after the core QEMU package).

Can we leave that for later when also documenting the open parameters? We can still make use of a qemu-block-drivers(7) index for discoverability - a introductory man page with references to all possible block drivers (some of which may not be installed). This is a common man page idiom for programs with subcommands, like git(1).

Stefan

#3 lore raw
Quoted 15 lines · Stefan Hajnoczi
Quoted 5 lines · Daniel P. Berrange
Quoted 4 lines · Stefan Hajnoczi

Block driver documentation is available in qemu-doc.html. It would be convenient to have documentation for formats, protocols, and filter drivers in a man page.

Quoted 8 lines
Quoted 3 lines

Extract the relevant part of qemu-doc.html into a new file called docs/qemu-block-drivers.texi. This file can also be built as a stand-alone document (man, html, etc).

Is there perhaps benefit it taking it further and creating one man page per block driver. Many of the block drivers are optional and can be turned off, so this would let us leave out the docs for disabled block drivers too.

Quoted 8 lines

That's a great idea - especially in the world of modular block drivers (they can be installed after the core QEMU package).

Can we leave that for later when also documenting the open parameters? We can still make use of a qemu-block-drivers(7) index for discoverability - a introductory man page with references to all possible block drivers (some of which may not be installed). This is a common man page idiom for programs with subcommands, like git(1).

Sure, fine with me.

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
Applied
#4 lore raw
In reply to Stefan Hajnoczi

Am 26.07.2017 um 15:03 hat Stefan Hajnoczi geschrieben:

Quoted 9 lines

Block driver documentation is available in qemu-doc.html. It would be convenient to have documentation for formats, protocols, and filter drivers in a man page.

Extract the relevant part of qemu-doc.html into a new file called docs/qemu-block-drivers.texi. This file can also be built as a stand-alone document (man, html, etc).

Thanks, applied to the block branch.

Kevin

#5 lore raw
In reply to Stefan Hajnoczi
Quoted 4 lines · Stefan Hajnoczi

Block driver documentation is available in qemu-doc.html. It would be convenient to have documentation for formats, protocols, and filter drivers in a man page.

Quoted 8 lines

Extract the relevant part of qemu-doc.html into a new file called docs/qemu-block-drivers.texi. This file can also be built as a stand-alone document (man, html, etc).

---
v3:
* Rebased due to LUKS documentation conflict [Kevin]

Building in-tree on Kevin's block branch now sees this in git status:

Untracked files:
(use "git add <file>..." to include in what will be committed)

docs/qemu-block-drivers.html
docs/qemu-block-drivers.txt

Can we get those added to .gitignore (either squashed in here, or as a followup)?

Signature · 3 lines
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org
#6 lore raw

Am 31.07.2017 um 17:56 hat Eric Blake geschrieben:

Quoted 16 lines · Stefan Hajnoczi
Quoted 4 lines

Block driver documentation is available in qemu-doc.html. It would be convenient to have documentation for formats, protocols, and filter drivers in a man page.

Quoted 8 lines

Extract the relevant part of qemu-doc.html into a new file called docs/qemu-block-drivers.texi. This file can also be built as a stand-alone document (man, html, etc).

---
v3:
* Rebased due to LUKS documentation conflict [Kevin]

Building in-tree on Kevin's block branch now sees this in git status:

Quoted 8 lines

Untracked files:
(use "git add <file>..." to include in what will be committed)

docs/qemu-block-drivers.html
docs/qemu-block-drivers.txt

Can we get those added to .gitignore (either squashed in here, or as a followup)?

I also noticed this warning today:

docs/qemu-block-drivers.texi: warning: must specify a title with a title command or @top

Kevin

#7 lore raw
In reply to Stefan Hajnoczi

Am 26.07.2017 um 15:03 hat Stefan Hajnoczi geschrieben:

Quoted 9 lines

Block driver documentation is available in qemu-doc.html. It would be convenient to have documentation for formats, protocols, and filter drivers in a man page.

Extract the relevant part of qemu-doc.html into a new file called docs/qemu-block-drivers.texi. This file can also be built as a stand-alone document (man, html, etc).

This was still in my block-next branch even though I had to drop it from a pull request for 2.10. I'm now dropping it from block-next, too, because it conflicts with other recent changes (I never thought that we had that much churn in the documentation, I take it as a good sign).

Please rebase and resend.

Kevin