volume_id: abort early on read failures.
should help with probing missing fdd's
This commit is contained in:
@@ -31,8 +31,9 @@ struct swap_header_v1_2 {
|
||||
|
||||
#define LARGEST_PAGESIZE 0x4000
|
||||
|
||||
int volume_id_probe_linux_swap(struct volume_id *id, uint64_t off)
|
||||
int volume_id_probe_linux_swap(struct volume_id *id /*,uint64_t off*/)
|
||||
{
|
||||
#define off ((uint64_t)0)
|
||||
struct swap_header_v1_2 *sw;
|
||||
const uint8_t *buf;
|
||||
unsigned page;
|
||||
|
||||
Reference in New Issue
Block a user