linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] block: add info messages when opening a block device O_WRITE and O_EXCL concurrently
@ 2019-05-14 14:45 zhangyi (F)
  2019-05-14 14:45 ` [PATCH 1/2] block: add info when opening an exclusive opened block device for write zhangyi (F)
  2019-05-14 14:45 ` [PATCH 2/2] block: add info when opening a write opend block device exclusively zhangyi (F)
  0 siblings, 2 replies; 3+ messages in thread
From: zhangyi (F) @ 2019-05-14 14:45 UTC (permalink / raw)
  To: viro; +Cc: linux-fsdevel, yi.zhang, miaoxie

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(-)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-14 14:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-14 14:45 [PATCH 0/2] block: add info messages when opening a block device O_WRITE and O_EXCL concurrently zhangyi (F)
2019-05-14 14:45 ` [PATCH 1/2] block: add info when opening an exclusive opened block device for write zhangyi (F)
2019-05-14 14:45 ` [PATCH 2/2] block: add info when opening a write opend block device exclusively zhangyi (F)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).