Commit cd795af4 authored by Charles Fumuso's avatar Charles Fumuso Committed by Stephen Lord

[XFS] Close window to prevent a file with delayed write extents from being

converted to a realtime file.

SGI Modid: 2.5.x-xfs:slinx:150953a
parent 352c676f
......@@ -578,7 +578,8 @@ xfs_setattr(
/*
* Can't change extent size if any extents are allocated.
*/
if (ip->i_d.di_nextents && (mask & XFS_AT_EXTSIZE) &&
if ((ip->i_d.di_nextents || ip->i_delayed_blks) &&
(mask & XFS_AT_EXTSIZE) &&
((ip->i_d.di_extsize << mp->m_sb.sb_blocklog) !=
vap->va_extsize) ) {
code = XFS_ERROR(EINVAL); /* EFBIG? */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment