From 7d89cc84b7f82fe847d481aa70ea38bb345968ed Mon Sep 17 00:00:00 2001 From: Emoly Liu Date: Thu, 17 Aug 2017 15:36:49 +0800 Subject: [PATCH] LU-9347 ioctl: Add BLKSSZGET ioctl support Add BLKSSZGET ioctl and return PAGE_SIZE for the minimun alignment from ll_file_ioctl() for this call. Lustre-change: https://review.whamcloud.com/28578 Lustre-commit: dcc32cd7d0d89a49f0c73ecf99130a2678442e55 Signed-off-by: Emoly Liu Change-Id: Id8a77e77cd7e1807aa90474ca6d3d1fea4d7c269 Reviewed-by: Andreas Dilger Reviewed-by: Bobi Jam Signed-off-by: Minh Diep Reviewed-on: https://review.whamcloud.com/28861 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: John L. Hammond --- lustre/llite/file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lustre/llite/file.c b/lustre/llite/file.c index 250a3aa..adc628b 100644 --- a/lustre/llite/file.c +++ b/lustre/llite/file.c @@ -2950,6 +2950,8 @@ out_ladvise: RETURN(ll_ioctl_fsgetxattr(inode, cmd, arg)); case LL_IOC_FSSETXATTR: RETURN(ll_ioctl_fssetxattr(inode, cmd, arg)); + case BLKSSZGET: + RETURN(put_user(PAGE_SIZE, (int __user *)arg)); default: RETURN(obd_iocontrol(cmd, ll_i2dtexp(inode), 0, NULL, (void __user *)arg)); -- 1.8.3.1