Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 340e01248478ba8b78a6d4d1809b1eff > files > 746

kvm-83-270.el5_11.src.rpm

From f22e32307c3373edf5418f97ab59be8315e14336 Mon Sep 17 00:00:00 2001
From: Naphtali Sprei <nsprei@redhat.com>
Date: Thu, 15 Apr 2010 11:56:38 -0300
Subject: [PATCH 02/12] read-only: add RO feature macro

RH-Author: Naphtali Sprei <nsprei@redhat.com>
Message-id: <1271332608-5243-2-git-send-email-nsprei@redhat.com>
Patchwork-id: 8649
O-Subject: [RHEL 5.6 kvm PATCH v4 01/11] read-only: add RO feature macro
Bugzilla: 510630
RH-Acked-by: Christoph Hellwig <chellwig@redhat.com>
RH-Acked-by: Juan Quintela <quintela@redhat.com>
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>

This is part of the upstream commit: 1063b8b15fb49fcf88ffa282b19aaaf7ca9c678c

Signed-off-by: Naphtali Sprei <nsprei@redhat.com>
---
 qemu/hw/virtio-blk.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 qemu/hw/virtio-blk.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/qemu/hw/virtio-blk.h b/qemu/hw/virtio-blk.h
index 315e842..d348549 100644
--- a/qemu/hw/virtio-blk.h
+++ b/qemu/hw/virtio-blk.h
@@ -28,6 +28,7 @@
 #define VIRTIO_BLK_F_SIZE_MAX   1       /* Indicates maximum segment size */
 #define VIRTIO_BLK_F_SEG_MAX    2       /* Indicates maximum # of segments */
 #define VIRTIO_BLK_F_GEOMETRY   4       /* Indicates support of legacy geometry */
+#define VIRTIO_BLK_F_RO         5       /* Disk is read-only */
 #define VIRTIO_BLK_F_WCACHE     9       /* write cache enabled */
 
 struct virtio_blk_config
-- 
1.7.0.3