Re: [PATCH v2] loop: block changing lo_offset/lo_sizelimit on mounted device
From: Theodore Tso
Date: Tue Mar 31 2026 - 08:25:30 EST
On Tue, Mar 31, 2026 at 12:22:18AM -0700, Christoph Hellwig wrote:
>
> And I would not be surprised if this breaks something in blktests or
> xfstests as they heavily rely on resizing block devices. Did you
> do full runs of those? Especially with xfs and btrfs for xfstests
> as they do a lot more loop based tests?
Do we expect people to seriously be running with
!CONFIG_BLK_DEV_WRITE_MOUNTED? I view this as a syzkaller noise
suppression only. As I mentioned earlier this option will very likely
break grub.
I do think that we need to have a way of disabling write access on a
per-super or per-file system type basis, eventually. Perhaps we need
to get there sooner rather than later? Would that make you happier?
- Ted