[PATCH 06/11] md: implement ->set_read_only to hook into BLKROSET processing

James Troup james.troup at canonical.com
Mon Nov 2 19:19:34 EST 2020


Christoph Hellwig <hch at lst.de> writes:

> @@ -7809,6 +7778,36 @@ static int md_compat_ioctl(struct block_device *bdev, fmode_t mode,

[...]

> +	 * Transitioning to readauto need only happen for arrays that call
> +	 * md_write_start and which are not ready for writes yet.

I realise you're just moving the comment around but perhaps you could
s/readauto/readonly/ while you're doing so?

-- 
James



More information about the linux-mtd mailing list