Whamcloud - gitweb
LU-9347 ioctl: Add BLKSSZGET ioctl support 61/28861/2
authorEmoly Liu <emoly.liu@intel.com>
Thu, 17 Aug 2017 07:36:49 +0000 (15:36 +0800)
committerJohn L. Hammond <john.hammond@intel.com>
Thu, 14 Sep 2017 20:39:32 +0000 (20:39 +0000)
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 <emoly.liu@intel.com>
Change-Id: Id8a77e77cd7e1807aa90474ca6d3d1fea4d7c269
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/28861
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/llite/file.c

index 250a3aa..adc628b 100644 (file)
@@ -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));