if (id == NULL)
return -EINVAL;
+ /* run only once into a timeout for unreadable devices */
+ if (volume_id_get_buffer(id, 0x00, 0x200) == NULL)
+ return -1;
+
info("probing at offset 0x%llx, size 0x%llx",
(unsigned long long) off, (unsigned long long) size);
if (id == NULL)
return -EINVAL;
+ /* run only once into a timeout for unreadable devices */
+ if (volume_id_get_buffer(id, 0x00, 0x200) == NULL)
+ return -1;
+
info("probing at offset 0x%llx, size 0x%llx",
(unsigned long long) off, (unsigned long long) size);