Skip to content

Commit 9261e9d

Browse files
committed
Permit Btrfs defrag to return -ENOSPC
1 parent b0d752d commit 9261e9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: runtime/userspace/btrfs.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static void btrfs_invoke_defrag(
4848
int res = ioctl.invoke_unchecked(BTRFS_IOC_DEFRAG_RANGE, &args);
4949
if (res < 0) {
5050
TRACE(state, "Error: %s", LKL_STRERROR(res));
51-
CHECK_THAT(res == -EPERM || res == -ENOTSUP || res == -EINVAL);
51+
CHECK_THAT(res == -EPERM || res == -ENOTSUP || res == -EINVAL || res == -ENOSPC);
5252
}
5353
INVOKE_SYSCALL(state, close, fd);
5454
}

0 commit comments

Comments
 (0)