!3286 block: Add config option to not allow writing to mounted devices
Merge Pull Request from: @ci-robot PR sync from: Li Lingfeng <lilingfeng3@huawei.com> https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/QZAWPOFQC64IDKTWQW5AXRSXCMSZBZYJ/ This feature is controlled by both CONFIG_BLK_DEV_WRITE_MOUNTED and cmdline parameters bdev_allow_write_mounted, and bdev_allow_write_mounted has a higher priority. Jan Kara (5): block: Add config option to not allow writing to mounted devices btrfs: Do not restrict writes to btrfs devices fs: Block writes to mounted block devices xfs: Block writes to log device ext4: Block writes to journal device -- 2.31.1 https://gitee.com/openeuler/kernel/issues/I8MPXP Link:https://gitee.com/openeuler/kernel/pulls/3286 Reviewed-by:zhangyi (F) <yi.zhang@huawei.com> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment