[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] raw-posix: don't assign bs->read_only
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-devel] [PATCH] raw-posix: don't assign bs->read_only |
Date: |
Wed, 07 Apr 2010 14:38:02 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Thunderbird/3.0.4 |
Am 07.04.2010 13:58, schrieb Christoph Hellwig:
> bdrv_open already takes care of this for us.
>
> Signed-off-by: Christoph Hellwig <address@hidden>
>
> Index: qemu/block/raw-posix.c
> ===================================================================
> --- qemu.orig/block/raw-posix.c 2010-04-07 13:50:16.573261199 +0200
> +++ qemu/block/raw-posix.c 2010-04-07 13:50:25.180005926 +0200
> @@ -142,7 +142,6 @@ static int raw_open_common(BlockDriverSt
> s->open_flags |= O_RDWR;
> } else {
> s->open_flags |= O_RDONLY;
> - bs->read_only = 1;
> }
>
> /* Use O_DSYNC for write-through caching, no flags for write-back
> caching,
Acked-by: Kevin Wolf <address@hidden>