summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 381c5d9..2dcf396 100644
--- a/util.c
+++ b/util.c
@@ -387,7 +387,7 @@ err_out:
free(fiemap);
/* If failure is due to no filesystem support, return a single extent */
- if (ret == -EOPNOTSUPP)
+ if (ret == -EOPNOTSUPP || ret == -ENOTTY)
return whole_file_exent(size, extents, extent_count);
image_error(image, "fiemap %s: %d %s\n", filename, errno, strerror(errno));