Is it possible to block any writer inside a fs?

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

 



Hi,

Is it possible to block any new writer from a fs?
Just like what we do in remounting fs to readonly, although it's done in VFS.

The case is, for example, we have an ioctl to control how buffered write works.(inband dedupe)

And when changing/disabling such behavior, we need to ensure that all current writer has finished and no new incoming writer until we finished the work, just like remount to RO.

In VFS, it's done by sb_prepare_mount_readonly(), while it's an internally used function, and shouldn't be directly called by a fs.

So, is there any method for fs to block incomming write inside a fs?

Thanks,
Qu


--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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