From 28ea4298e380d73203890c0f42de68e9798396d8 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 15 Feb 2009 05:51:19 +0000 Subject: volume_id: abort early on read failures. should help with probing missing fdd's --- util-linux/volume_id/udf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util-linux/volume_id/udf.c') diff --git a/util-linux/volume_id/udf.c b/util-linux/volume_id/udf.c index 55e97a7e5..e272e1923 100644 --- a/util-linux/volume_id/udf.c +++ b/util-linux/volume_id/udf.c @@ -55,8 +55,9 @@ struct volume_structure_descriptor { #define UDF_VSD_OFFSET 0x8000 -int volume_id_probe_udf(struct volume_id *id, uint64_t off) +int volume_id_probe_udf(struct volume_id *id /*,uint64_t off*/) { +#define off ((uint64_t)0) struct volume_descriptor *vd; struct volume_structure_descriptor *vsd; unsigned bs; -- cgit v1.2.3