mbox series

[0/2] block: add info messages when opening a block device O_WRITE and O_EXCL concurrently

Message ID 1557845106-60163-1-git-send-email-yi.zhang@huawei.com (mailing list archive)
Headers show
Series block: add info messages when opening a block device O_WRITE and O_EXCL concurrently | expand

Message

Zhang Yi May 14, 2019, 2:45 p.m. UTC
Open an exclusive-opened block device for write or open a write-opened
block deviece exclusively cannot make sure it is exclusive enough. So
it may corrupt the block device when some one writing data through the
counterpart raw block device, such as corrupt a mounted file system.
And it is hard to find the bad process who corrupt the device after
something bad happens.

Although we can watch the block device in the user space, we still want
the kernel can give us some messages if that happens for some special
cases. So this patch set want to add some info messages to hint the
potential data corruption.

zhangyi (F) (2):
  block: add info when opening an exclusive opened block device for
    write
  block: add info when opening a write opend block device exclusively

 fs/block_dev.c     | 38 +++++++++++++++++++++++++++++++++++---
 include/linux/fs.h |  1 +
 2 files changed, 36 insertions(+), 3 deletions(-)