<div dir="ltr"><div>hi,</div><div><br></div><div>the <span style="font-family:monospace">bio_check_ro</span> function of the <span style="font-family:monospace">blk-core.c</span> source file of the Linux kernel refers to LVM :</div><div><a href="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/block/blk-core.c?h=v6.2.7#n500">https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/block/blk-core.c?h=v6.2.7#n500</a></div><div><br></div><div>how does LVM currently behave when faced with a device marked as readonly ?</div><div>does it automatically switch <span class="gmail-Lm gmail-ng">itself </span>in readonly mode?</div><div><br></div><div>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 (<span style="font-family:monospace">chmod 444</span> && <span style="font-family:monospace">blockdev --setro</span>).<br></div><div><br></div><div>regards, lacsaP.<br></div></div>