raw-posix: don't assign bs->read_only

bdrv_open already takes care of this for us.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
master
Christoph Hellwig 2010-04-07 13:58:06 +02:00 committed by Aurelien Jarno
parent 4e9e9d6e0a
commit 6e0a47aae0
1 changed files with 0 additions and 1 deletions

View File

@ -142,7 +142,6 @@ static int raw_open_common(BlockDriverState *bs, const char *filename,
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,