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-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to