From: Emoly Liu Date: Thu, 17 Aug 2017 07:36:49 +0000 (+0800) Subject: LU-9347 ioctl: Add BLKSSZGET ioctl support X-Git-Tag: 2.10.53~31 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=dcc32cd7d0d89a49f0c73ecf99130a2678442e55;p=fs%2Flustre-release.git 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. Signed-off-by: Emoly Liu Change-Id: Id8a77e77cd7e1807aa90474ca6d3d1fea4d7c269 Reviewed-on: https://review.whamcloud.com/28578 Reviewed-by: Andreas Dilger Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Bobi Jam --- diff --git a/lustre/llite/file.c b/lustre/llite/file.c index ade596f..cf71134 100644 --- a/lustre/llite/file.c +++ b/lustre/llite/file.c @@ -2938,6 +2938,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));