qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH V2] virtio-9p: Add Read only support for 9p expo


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH V2] virtio-9p: Add Read only support for 9p export.
Date: Tue, 24 May 2011 09:51:17 +0100

On Tue, May 24, 2011 at 8:16 AM, M. Mohan Kumar <address@hidden> wrote:
> @@ -192,6 +196,9 @@ QemuOptsList qemu_virtfs_opts = {
>         }, {
>             .name = "security_model",
>             .type = QEMU_OPT_STRING,
> +        }, {
> +            .name = "readonly",
> +            .type = QEMU_OPT_STRING,

Sorry to bug about bool again but there is a type QEMU_OPT_BOOL and it
is worth using.  You can get the value using qemu_opt_get_bool().  It
handles the parse error case when not on|off so you don't need to
duplicate that code.

Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]