summaryrefslogtreecommitdiff
path: root/util-linux/volume_id/linux_raid.c
diff options
context:
space:
mode:
authorDenis Vlasenko2009-02-15 05:51:19 +0000
committerDenis Vlasenko2009-02-15 05:51:19 +0000
commit28ea4298e380d73203890c0f42de68e9798396d8 (patch)
tree55c832fd42d8838f9d5f40d2b97bae93263e19e1 /util-linux/volume_id/linux_raid.c
parent93b38208d1e7d759b3c8ed8e7eb91c10442033ff (diff)
downloadbusybox-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_raid.c')
-rw-r--r--util-linux/volume_id/linux_raid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util-linux/volume_id/linux_raid.c b/util-linux/volume_id/linux_raid.c
index 0877b8a..cc02469 100644
--- a/util-linux/volume_id/linux_raid.c
+++ b/util-linux/volume_id/linux_raid.c
@@ -42,8 +42,9 @@ struct mdp_super_block {
#define MD_RESERVED_BYTES 0x10000
#define MD_MAGIC 0xa92b4efc
-int volume_id_probe_linux_raid(struct volume_id *id, uint64_t off, uint64_t size)
+int volume_id_probe_linux_raid(struct volume_id *id /*,uint64_t off*/, uint64_t size)
{
+#define off ((uint64_t)0)
uint64_t sboff;
uint8_t uuid[16];
struct mdp_super_block *mdp;