提交 0d14824c 编写于 作者: N Nathan Scott

[XFS] Ensure max diosize reported is aligned with minimum diosize.

SGI-PV: 910890
SGI-Modid: xfs-linux-melb:xfs-kern:24689a
Signed-off-by: NNathan Scott <nathans@sgi.com>
上级 ee2a4f7c
...@@ -751,7 +751,7 @@ xfs_ioctl( ...@@ -751,7 +751,7 @@ xfs_ioctl(
mp->m_rtdev_targp : mp->m_ddev_targp; mp->m_rtdev_targp : mp->m_ddev_targp;
da.d_mem = da.d_miniosz = 1 << target->pbr_sshift; da.d_mem = da.d_miniosz = 1 << target->pbr_sshift;
da.d_maxiosz = INT_MAX; da.d_maxiosz = INT_MAX & ~(da.d_miniosz - 1);
if (copy_to_user(arg, &da, sizeof(da))) if (copy_to_user(arg, &da, sizeof(da)))
return -XFS_ERROR(EFAULT); return -XFS_ERROR(EFAULT);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册