qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] block/raw-posix: detect readonly LVM volumes us


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH] block/raw-posix: detect readonly LVM volumes using BLKROGET
Date: Tue, 5 Feb 2013 12:21:00 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon, Feb 04, 2013 at 03:49:10PM +0100, Markus Armbruster wrote:
> Stefan Hajnoczi <address@hidden> writes:
> 
> > LVM volumes can be set read-only with "lvchange --permission r
> > <volume>".  The device node permissions remain unchanged so the volume
> > can still be opened O_RDWR.  Actual writes will fail.
> 
> Are you sure it's just LVM?  blockdev(8) suggests it's a more general
> issue.  Check out --setro there.

You are right.  I tested "blockdev --setro" and got the same behavior.
I'll resend with comments indicating Linux block devices in general,
instead of just LVM.

Stefan



reply via email to

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