f2fs: add ioctl to expose current features
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 21 Jul 2017 19:58:59 +0000 (12:58 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 31 Jul 2017 23:48:28 +0000 (16:48 -0700)
commite65ef20781cbfcbfe2d62ce37e028964bc34b313
tree7b5d53d5faac82afecd0f924d4578a0c26e26514
parentdc6febb6bcec7ff1b4a4d306411013b5f648f27e
f2fs: add ioctl to expose current features

This patch adds an ioctl to provide feature information to user.
For exapmle, SQLite can use this ioctl to detect whether f2fs support atomic
write or not.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/file.c