summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmds-scrub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-scrub.c b/cmds-scrub.c
index b864b2b9..b188996f 100644
--- a/cmds-scrub.c
+++ b/cmds-scrub.c
@@ -1002,7 +1002,7 @@ static int scrub_fs_info(char *path,
}
ret = ioctl(fd, BTRFS_IOC_FS_INFO, fi_args);
- if (ret && errno == EINVAL) {
+ if (ret && (errno == EINVAL || errno == ENOTTY)) {
/* path is no mounted btrfs. try if it's a device */
ret = check_mounted_where(fd, path, mp, sizeof(mp),
&fs_devices_mnt);