Skip to contentSkip to conversation

qemu-img: Document --force-share / -U

PATCH Superseded Fam Zheng 4 participants 6 messages Dec 7, 2017 – Dec 8, 2017

v1 of 7 Superseded Latest is v7 →

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

PATCH 1/1 qemu-img: Document --force-share / -U

---
 qemu-img.texi | 8 ++++++++
 1 file changed, 8 insertions(+)
qemu-img.texi +8 -0
index fdcf120f36..3aa63aad55 100644
@@ -57,6 +57,14 @@ exclusive with the @var{-O} parameters. It is currently required to also use
 the @var{-n} parameter to skip image creation. This restriction may be relaxed
 in a future release.
 
+@item --force-share (-U)
+
+If specified, qemu-img will open the image with shared permissions, which makes
+it less likely to conflict with a running guest's permissions due to image
+locking. For example, this can be used to get the image information (with
+'info' subcommand) when the image is used by a running guest. Note that this
+could produce inconsistent result because of concurrent metadata changes, etc..
+
 @item fmt
 is the disk image format. It is guessed automatically in most cases. See below
 for a description of the supported disk formats.
Signature · 1 line
2.14.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Fam Zheng
---
 qemu-img.texi | 8 ++++++++
 1 file changed, 8 insertions(+)
qemu-img.texi +0 -0
index fdcf120f36..3aa63aad55 100644

qemu-img.texi exclusive with the @var{-O} parameters. It is currently required to also use · line 62

Quoted 6 lines
qemu-img.texi +3 -0
@@ -57,6 +57,14 @@ exclusive with the @var{-O} parameters. It is currently required to also use
 the @var{-n} parameter to skip image creation. This restriction may be relaxed
 in a future release.
 
+@item --force-share (-U)
+
+If specified, qemu-img will open the image with shared permissions, which makes

Does 'texi' requires to quote tools like qemu-img (or single quotes), to highlight them in documentation?

qemu-img.texi exclusive with the @var{-O} parameters. It is currently required to also use · line 66

Quoted 4 lines
qemu-img.texi +4 -0
+it less likely to conflict with a running guest's permissions due to image
+locking. For example, this can be used to get the image information (with
+'info' subcommand) when the image is used by a running guest. Note that this
+could produce inconsistent result because of concurrent metadata changes, etc..

Super nit-pick: an ellipsis[*] is three dots :-), so, when applying you might want to: s/../.../

[*] https://dictionary.cambridge.org/dictionary/english/ellipsis

Regardless:

[...]

Signature · 1 line
/kashyap
#2 lore raw
Quoted 14 lines · Kashyap Chamarthy
Quoted 13 lines · Fam Zheng
---
 qemu-img.texi | 8 ++++++++
 1 file changed, 8 insertions(+)
qemu-img.texi +0 -0
index fdcf120f36..3aa63aad55 100644
@@ -57,6 +57,14 @@ exclusive with the @var{-O} parameters. It is currently required to also use
 the @var{-n} parameter to skip image creation. This restriction may be relaxed
 in a future release.
 
Quoted 6 lines

qemu-img.texi exclusive with the @var{-O} parameters. It is currently required to also use · line 62

Quoted 3 lines
qemu-img.texi +3 -0
+@item --force-share (-U)
+
+If specified, qemu-img will open the image with shared permissions, which makes

Does 'texi' requires to quote tools like qemu-img (or single quotes), to highlight them in documentation?

Our usual markup appears to be:

@code{qemu-img}

Quoted 10 lines

qemu-img.texi exclusive with the @var{-O} parameters. It is currently required to also use · line 66

Quoted 5 lines
qemu-img.texi +4 -0
+it less likely to conflict with a running guest's permissions due to image
+locking. For example, this can be used to get the image information (with
+'info' subcommand) when the image is used by a running guest. Note that this
+could produce inconsistent result because of concurrent metadata changes, etc..

Super nit-pick: an ellipsis[*] is three dots :-), so, when applying you might want to: s/../.../

[*] https://dictionary.cambridge.org/dictionary/english/ellipsis

Except that both "etc." and "..." independently convey a sense of continuation, which means that using both at once is both redundant (just one will do) and difficult to argue how to typeset (since 'etc.' is often written with an explicit '.' to emphasize that is an abbreviation, does that mean you have to write 'etc.''...' for a total of 4 dots?).

Signature · 3 lines
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org
author
#3 lore raw
Quoted 22 lines · Eric Blake
Quoted 14 lines · Kashyap Chamarthy
Quoted 13 lines · Fam Zheng
---
 qemu-img.texi | 8 ++++++++
 1 file changed, 8 insertions(+)
qemu-img.texi +0 -0
index fdcf120f36..3aa63aad55 100644
@@ -57,6 +57,14 @@ exclusive with the @var{-O} parameters. It is currently required to also use
 the @var{-n} parameter to skip image creation. This restriction may be relaxed
 in a future release.
 
Quoted 6 lines

qemu-img.texi exclusive with the @var{-O} parameters. It is currently required to also use · line 62

Quoted 3 lines
qemu-img.texi +3 -0
+@item --force-share (-U)
+
+If specified, qemu-img will open the image with shared permissions, which makes

Does 'texi' requires to quote tools like qemu-img (or single quotes), to highlight them in documentation?

Quoted 3 lines

Our usual markup appears to be:

@code{qemu-img}

Sounds good.

Quoted 10 lines
Quoted 10 lines

qemu-img.texi exclusive with the @var{-O} parameters. It is currently required to also use · line 66

Quoted 6 lines
qemu-img.texi +4 -0
+it less likely to conflict with a running guest's permissions due to image
+locking. For example, this can be used to get the image information (with
+'info' subcommand) when the image is used by a running guest. Note that this
+could produce inconsistent result because of concurrent metadata changes, etc..

Super nit-pick: an ellipsis[*] is three dots :-), so, when applying you might want to: s/../.../

Quoted 8 lines
Quoted 1 line

[*] https://dictionary.cambridge.org/dictionary/english/ellipsis

Except that both "etc." and "..." independently convey a sense of continuation, which means that using both at once is both redundant (just one will do) and difficult to argue how to typeset (since 'etc.' is often written with an explicit '.' to emphasize that is an abbreviation, does that mean you have to write 'etc.''...' for a total of 4 dots?).

I have the impression that "etc." is more correct than "etc" so I used even at the end of the sensence where there is another period '.', making it "etc..".

If ending the paragraph with "etc." is enough, we can drop one ".".

Fam

#4 lore raw
Quoted 3 lines · Fam Zheng
Quoted 2 lines · Eric Blake
Quoted 1 line · Kashyap Chamarthy

On Thu, Dec 07, 2017 at 04:44:53PM +0800, Fam Zheng wrote:

[...]

Quoted 10 lines
Quoted 10 lines
Quoted 9 lines

qemu-img.texi exclusive with the @var{-O} parameters. It is currently required to also use · line 66

Quoted 4 lines
qemu-img.texi +4 -0
+it less likely to conflict with a running guest's permissions due to image
+locking. For example, this can be used to get the image information (with
+'info' subcommand) when the image is used by a running guest. Note that this
+could produce inconsistent result because of concurrent metadata changes, etc..

Super nit-pick: an ellipsis[*] is three dots :-), so, when applying you might want to: s/../.../

[*] https://dictionary.cambridge.org/dictionary/english/ellipsis

Quoted 8 lines
Quoted 6 lines

Except that both "etc." and "..." independently convey a sense of continuation, which means that using both at once is both redundant (just one will do) and difficult to argue how to typeset (since 'etc.' is often written with an explicit '.' to emphasize that is an abbreviation, does that mean you have to write 'etc.''...' for a total of 4 dots?).

I have the impression that "etc." is more correct than "etc"

It is.

Quoted 2 lines

so I used even at
the end of the sensence where there is another period '.', making it "etc..".

That's wrong all the same :)

https://en.wikipedia.org/wiki/Period_(punctuation)#Abbreviations

Quoted 1 line

If ending the paragraph with "etc." is enough, we can drop one ".".

Please do.

author
#5 lore raw
Quoted 30 lines · Markus Armbruster
Quoted 3 lines · Fam Zheng
Quoted 2 lines · Eric Blake
Quoted 1 line · Kashyap Chamarthy

On Thu, Dec 07, 2017 at 04:44:53PM +0800, Fam Zheng wrote:

[...]

Quoted 10 lines
Quoted 10 lines
Quoted 9 lines

qemu-img.texi exclusive with the @var{-O} parameters. It is currently required to also use · line 66

Quoted 4 lines
qemu-img.texi +4 -0
+it less likely to conflict with a running guest's permissions due to image
+locking. For example, this can be used to get the image information (with
+'info' subcommand) when the image is used by a running guest. Note that this
+could produce inconsistent result because of concurrent metadata changes, etc..

Super nit-pick: an ellipsis[*] is three dots :-), so, when applying you might want to: s/../.../

[*] https://dictionary.cambridge.org/dictionary/english/ellipsis

Quoted 8 lines
Quoted 6 lines

Except that both "etc." and "..." independently convey a sense of continuation, which means that using both at once is both redundant (just one will do) and difficult to argue how to typeset (since 'etc.' is often written with an explicit '.' to emphasize that is an abbreviation, does that mean you have to write 'etc.''...' for a total of 4 dots?).

I have the impression that "etc." is more correct than "etc"

It is.

Quoted 2 lines

so I used even at
the end of the sensence where there is another period '.', making it "etc..".

Quoted 7 lines

That's wrong all the same :)

https://en.wikipedia.org/wiki/Period_(punctuation)#Abbreviations

Quoted 1 line

If ending the paragraph with "etc." is enough, we can drop one ".".

Please do.

Yes, thanks, v2 sent.

Fam