From: Max Reitz <mreitz@redhat.com>
To: Eric Blake <eblake@redhat.com>, qemu-block@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [PATCH] qsd: Document FUSE exports
Date: Thu, 18 Feb 2021 09:49:03 +0100 [thread overview]
Message-ID: <61fc58b4-3773-7f1f-dc61-925e66febaa9@redhat.com> (raw)
In-Reply-To: <dfe78693-0ce5-c7a2-369c-ce47598a6651@redhat.com>
On 17.02.21 17:26, Eric Blake wrote:
> On 2/17/21 5:58 AM, Max Reitz wrote:
>> Implementing FUSE exports required no changes to the storage daemon, so
>> we forgot to document them there. Considering that both NBD and
>> vhost-user-blk exports are documented in its man page (and NBD exports
>> in its --help text), we should probably do the same for FUSE.
>>
>> Signed-off-by: Max Reitz <mreitz@redhat.com>
>> ---
>> docs/tools/qemu-storage-daemon.rst | 19 +++++++++++++++++++
>> storage-daemon/qemu-storage-daemon.c | 4 ++++
>> 2 files changed, 23 insertions(+)
>
>> @@ -142,6 +153,14 @@ domain socket ``vhost-user-blk.sock``::
>> --blockdev driver=qcow2,node-name=qcow2,file=file \
>> --export type=vhost-user-blk,id=export,addr.type=unix,addr.path=vhost-user-blk.sock,node-name=qcow2
>>
>> +Export a qcow2 image file ``disk.qcow2`` via FUSE on itself, so the disk image
>> +file will then appear as a raw image::
>> +
>> + $ qemu-storage-daemon \
>> + --blockdev driver=file,node-name=file,filename=disk.qcow2 \
>> + --blockdev driver=qcow2,node-name=qcow2,file=file \
>> + --export type=fuse,id=export,node-name=qcow2,mountpoint=disk.qcow2,writable=on
>> +
>
> Should the example also mention how to unmount the file when you're done?
Just as with other exports, the export goes away when it is deleted,
which happens e.g. when the QSD exits. I.e., fuse_export_delete() calls
fuse_session_unmount().
> Otherwise looks good to me. Any documentation is better than none, even
> if we can add more, so
>
> Reviewed-by: Eric Blake <eblake@redhat.com>
Thanks!
Max
next prev parent reply other threads:[~2021-02-18 8:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-17 11:58 [PATCH] qsd: Document FUSE exports Max Reitz
2021-02-17 16:26 ` Eric Blake
2021-02-18 8:49 ` Max Reitz [this message]
2021-03-29 16:29 ` Max Reitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=61fc58b4-3773-7f1f-dc61-925e66febaa9@redhat.com \
--to=mreitz@redhat.com \
--cc=eblake@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).