[linux-lvm] LVM and RO device/partition(s)

Pascal patatetom at gmail.com
Sun Mar 19 10:27:32 UTC 2023


hi,

the bio_check_ro function of the blk-core.c source file of the Linux kernel
refers to LVM :
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/block/blk-core.c?h=v6.2.7#n500

how does LVM currently behave when faced with a device marked as readonly ?
does it automatically switch itself in readonly mode?

according to some tests carried out in a virtual machine, it seems that it
doesn't and that LVM modifies the disk/partition(s) even though they are
all readonly (chmod 444 && blockdev --setro).

regards, lacsaP.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20230319/d437bb59/attachment.htm>


More information about the linux-lvm mailing list