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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux