mirror of
https://github.com/versity/scoutfs.git
synced 2026-09-20 15:04:42 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user