[PATCH v1 0/3] set ro attribute of block device according to write-protection status

From: light.hsieh
Date: Tue Mar 03 2020 - 21:57:44 EST


From: Light Hsieh <light.hsieh@xxxxxxxxxxxx>

*** BLURB HERE ***

Light Hsieh (3):
mmc: record wp_grp_size and boot_wp_status
mmc: check write-protection status during BLKROSET ioctl
block: set partition read/write policy according to write-protection
status

block/ioctl.c | 2 +-
block/partition-generic.c | 10 +++
drivers/mmc/core/block.c | 217 ++++++++++++++++++++++++++++++++++++++++++++++
drivers/mmc/core/mmc.c | 16 ++++
include/linux/blkdev.h | 1 +
include/linux/mmc/card.h | 3 +
include/linux/mmc/mmc.h | 2 +
7 files changed, 250 insertions(+), 1 deletion(-)

--
1.8.1.1.dirty