Re: [PATCH] xfs: allow ro mounts if rtdev or logdev are read-only

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

 



On 28/04/2025 15:05, hch wrote:
> On Mon, Apr 28, 2025 at 02:54:59PM +0200, Carlos Maiolino wrote:
>>> BLK_OPEN_RESTRICT_WRITES disallows other writers to mounted devs, and I
>>> presume we want this for read-only mounts as well?
>>
>> Thanks, it wasn't really clear to me what the purpose of RESTRICT_WRITES was,
>> thanks for the clarification, this looks good to me:
> 
> It also mastches what most other file systems are doing by using the
> sb_open_mode helper.  Thinking about tht we should probably use it as
> well as the superblock is available in mp->m_super here.
> 
> 

Yeah, sb_open_mode does what we want so i'll use that in a V2,




[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux