djwong block: selectively deny writes to blkdev under a mounted fs
b63c1f7 Apr 2, 2018
block: selectively deny writes to blkdev under a mounted fs
Implement a new superblock operation (check_bdev_write) so that all
writes to a block device underneath a filesystem will be mediated by the
filesystem.  This enables us to seal off write access for all XFS
filesystems while allowing ext4 the flexibility to use tune2fs.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
b63c1f7