Skip to content
Commit d4dd19ec authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

f2fs: do not expose unwritten blocks to user by DIO



DIO preallocates physical blocks before writing data, but if an error occurrs
or power-cut happens, we can see block contents from the disk. This patch tries
to fix it by 1) turning to buffered writes for DIO into holes, 2) truncating
unwritten blocks from error or power-cut.

Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent b31bf0f9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment