}
if (fstat(fd, &stb) < 0) {
- pr_err("failed to determine bitmap file/device type: %s\n",
- strerror(errno));
+ pr_err("fstat failed for %s: %s\n", filename, strerror(errno));
close(fd);
return -1;
}
-
if ((stb.st_mode & S_IFMT) == S_IFBLK) {
/* block device, so we are probably after an internal bitmap */
if (!st)
fd = -1;
}
}
-
*stp = st;
}