*
* See guestfs(3) for the algorithm.
*
- * We have to open the device and test for ENODEV, because
+ * We have to open the device and test for ENXIO, because
* the device nodes themselves will exist in the appliance.
*/
int
return 0;
}
- if (errno != ENODEV) {
+ if (errno != ENXIO) {
error:
reply_with_perror ("%s: %s", func, device);
return -1;