* [PATCH] virtio-blk: add back VIRTIO_BLK_F_FLUSH
@ 2012-07-05 10:08 Paolo Bonzini
2012-07-09 0:11 ` Rusty Russell
0 siblings, 1 reply; 2+ messages in thread
From: Paolo Bonzini @ 2012-07-05 10:08 UTC (permalink / raw)
To: linux-kernel, virtualization, kvm
Cc: levinsasha928, Rusty Russell, Michael S. Tsirkin
The old name is part of the userspace API, add it back for compatibility.
Reported-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
include/linux/virtio_blk.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/include/linux/virtio_blk.h b/include/linux/virtio_blk.h
index 18a1027..83a3116 100644
--- a/include/linux/virtio_blk.h
+++ b/include/linux/virtio_blk.h
@@ -41,6 +41,9 @@
#define VIRTIO_BLK_F_TOPOLOGY 10 /* Topology information is available */
#define VIRTIO_BLK_F_CONFIG_WCE 11 /* Writeback mode available in config */
+/* Backwards-compatibility #defines for renamed features. */
+#define VIRTIO_BLK_F_FLUSH VIRTIO_BLK_F_WCE
+
#define VIRTIO_BLK_ID_BYTES 20 /* ID string length */
struct virtio_blk_config {
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] virtio-blk: add back VIRTIO_BLK_F_FLUSH
2012-07-05 10:08 [PATCH] virtio-blk: add back VIRTIO_BLK_F_FLUSH Paolo Bonzini
@ 2012-07-09 0:11 ` Rusty Russell
0 siblings, 0 replies; 2+ messages in thread
From: Rusty Russell @ 2012-07-09 0:11 UTC (permalink / raw)
To: Paolo Bonzini, linux-kernel, virtualization, kvm
Cc: levinsasha928, Michael S. Tsirkin
On Thu, 5 Jul 2012 12:08:22 +0200, Paolo Bonzini <pbonzini@redhat.com> wrote:
> The old name is part of the userspace API, add it back for compatibility.
>
> Reported-by: Sasha Levin <levinsasha928@gmail.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> include/linux/virtio_blk.h | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/include/linux/virtio_blk.h b/include/linux/virtio_blk.h
> index 18a1027..83a3116 100644
> --- a/include/linux/virtio_blk.h
> +++ b/include/linux/virtio_blk.h
> @@ -41,6 +41,9 @@
> #define VIRTIO_BLK_F_TOPOLOGY 10 /* Topology information is available */
> #define VIRTIO_BLK_F_CONFIG_WCE 11 /* Writeback mode available in config */
>
> +/* Backwards-compatibility #defines for renamed features. */
> +#define VIRTIO_BLK_F_FLUSH VIRTIO_BLK_F_WCE
Please #ifndef __KERNEL__?
Thanks,
Rusty.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-09 0:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-05 10:08 [PATCH] virtio-blk: add back VIRTIO_BLK_F_FLUSH Paolo Bonzini
2012-07-09 0:11 ` Rusty Russell
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).