mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-23 22:53:35 +00:00
Btrfs-progs utils Informative errors
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
16261f09c4
commit
eb5418933f
5
utils.c
5
utils.c
@ -867,7 +867,7 @@ again:
|
||||
}
|
||||
dirp = opendir(dirname);
|
||||
if (!dirp) {
|
||||
fprintf(stderr, "Unable to open /sys/block for scanning\n");
|
||||
fprintf(stderr, "Unable to open %s for scanning\n", dirname);
|
||||
return -ENOENT;
|
||||
}
|
||||
while(1) {
|
||||
@ -902,7 +902,8 @@ again:
|
||||
}
|
||||
fd = open(fullpath, O_RDONLY);
|
||||
if (fd < 0) {
|
||||
fprintf(stderr, "failed to read %s\n", fullpath);
|
||||
fprintf(stderr, "failed to read %s: %s\n", fullpath,
|
||||
strerror(errno));
|
||||
continue;
|
||||
}
|
||||
ret = btrfs_scan_one_device(fd, fullpath, &tmp_devices,
|
||||
|
Loading…
Reference in New Issue
Block a user