scoutfs: fiemap with no extents returns 0

Don't return -ENOENT from fiemap on a file with no extents.  The
operation is supposed to succeed with no extents.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2020-03-16 15:48:19 -07:00
committed by Zach Brown
parent ef1dc677d0
commit 88422c6405
+2
View File
@@ -1674,6 +1674,8 @@ int scoutfs_data_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
ret = load_unpacked_extents(sb, ino, iblock, last, false,
&unpe, lock);
if (ret < 0) {
if (ret == -ENOENT)
ret = 0;
last_flags = FIEMAP_EXTENT_LAST;
break;
}