diff options
author | Denis Vlasenko | 2009-02-15 05:51:19 +0000 |
---|---|---|
committer | Denis Vlasenko | 2009-02-15 05:51:19 +0000 |
commit | 28ea4298e380d73203890c0f42de68e9798396d8 (patch) | |
tree | 55c832fd42d8838f9d5f40d2b97bae93263e19e1 /util-linux/volume_id/linux_swap.c | |
parent | 93b38208d1e7d759b3c8ed8e7eb91c10442033ff (diff) | |
download | busybox-28ea4298e380d73203890c0f42de68e9798396d8.zip busybox-28ea4298e380d73203890c0f42de68e9798396d8.tar.gz |
volume_id: abort early on read failures.
should help with probing missing fdd's
Diffstat (limited to 'util-linux/volume_id/linux_swap.c')
-rw-r--r-- | util-linux/volume_id/linux_swap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util-linux/volume_id/linux_swap.c b/util-linux/volume_id/linux_swap.c index e608454..c9b62e9 100644 --- a/util-linux/volume_id/linux_swap.c +++ b/util-linux/volume_id/linux_swap.c @@ -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; |