Message ID | 1292797781-3877-1-git-send-email-bgamari.foss@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/btrfs_cmds.c b/btrfs_cmds.c index 8031c58..45da2bd 100644 --- a/btrfs_cmds.c +++ b/btrfs_cmds.c @@ -857,6 +857,7 @@ int do_df_filesystem(int nargs, char **argv) ret = ioctl(fd, BTRFS_IOC_SPACE_INFO, sargs); if (ret) { + fprintf(stderr, "ERROR: can't query '%s' for free space (%s)\n", path, strerror(-ret)); free(sargs); return ret; } @@ -875,6 +876,7 @@ int do_df_filesystem(int nargs, char **argv) ret = ioctl(fd, BTRFS_IOC_SPACE_INFO, sargs); if (ret) { + fprintf(stderr, "ERROR: can't query '%s' for free space (%s)\n", path, strerror(-ret)); free(sargs); return ret; }