mirror of
https://github.com/kdave/btrfs-progs
synced 2025-03-06 02:37:37 +00:00
Btrfs-progs: record errno for ioctl DEFRAG_RANGE
In order to sparse exact error message, we need to record errno here. Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
This commit is contained in:
parent
f1637bd8eb
commit
617769147f
@ -431,6 +431,7 @@ static int cmd_defrag(int argc, char **argv)
|
||||
close(fd);
|
||||
break;
|
||||
}
|
||||
e = errno;
|
||||
}
|
||||
if (ret) {
|
||||
fprintf(stderr, "ERROR: defrag failed on %s - %s\n",
|
||||
|
Loading…
Reference in New Issue
Block a user