Alasdair: patch for LVM2 attached - this makes functions that only read from a block device open with O_RDONLY instead of writable-if-they-can. If another function comes along and needs it writable, dev_open_flags() already does the right thing and reopens it anyway.
Alasdair: patch for LVM2 attached - this makes functions that only read from a block device open with O_RDONLY instead of writable- if-they- can. If another function comes along and needs it writable, dev_open_flags() already does the right thing and reopens it anyway.