|
@@ -582,9 +582,13 @@ xfs_getbmap(
|
|
|
}
|
|
}
|
|
|
break;
|
|
break;
|
|
|
default:
|
|
default:
|
|
|
|
|
+ /* Local format data forks report no extents. */
|
|
|
|
|
+ if (ip->i_d.di_format == XFS_DINODE_FMT_LOCAL) {
|
|
|
|
|
+ bmv->bmv_entries = 0;
|
|
|
|
|
+ return 0;
|
|
|
|
|
+ }
|
|
|
if (ip->i_d.di_format != XFS_DINODE_FMT_EXTENTS &&
|
|
if (ip->i_d.di_format != XFS_DINODE_FMT_EXTENTS &&
|
|
|
- ip->i_d.di_format != XFS_DINODE_FMT_BTREE &&
|
|
|
|
|
- ip->i_d.di_format != XFS_DINODE_FMT_LOCAL)
|
|
|
|
|
|
|
+ ip->i_d.di_format != XFS_DINODE_FMT_BTREE)
|
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
|
|
if (xfs_get_extsz_hint(ip) ||
|
|
if (xfs_get_extsz_hint(ip) ||
|