Skip to content

Commit

Permalink
Permit Btrfs defrag to return -ENOSPC
Browse files Browse the repository at this point in the history
  • Loading branch information
atrosinenko committed May 26, 2024
1 parent b0d752d commit 9261e9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/userspace/btrfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static void btrfs_invoke_defrag(
int res = ioctl.invoke_unchecked(BTRFS_IOC_DEFRAG_RANGE, &args);
if (res < 0) {
TRACE(state, "Error: %s", LKL_STRERROR(res));
CHECK_THAT(res == -EPERM || res == -ENOTSUP || res == -EINVAL);
CHECK_THAT(res == -EPERM || res == -ENOTSUP || res == -EINVAL || res == -ENOSPC);
}
INVOKE_SYSCALL(state, close, fd);
}
Expand Down

0 comments on commit 9261e9d

Please sign in to comment.