aboutsummaryrefslogtreecommitdiff
path: root/util-linux/volume_id/hfs.c
diff options
context:
space:
mode:
authorGravatar Denis Vlasenko <vda.linux@googlemail.com>2009-02-15 05:51:19 +0000
committerGravatar Denis Vlasenko <vda.linux@googlemail.com>2009-02-15 05:51:19 +0000
commit28ea4298e380d73203890c0f42de68e9798396d8 (patch)
tree55c832fd42d8838f9d5f40d2b97bae93263e19e1 /util-linux/volume_id/hfs.c
parent93b38208d1e7d759b3c8ed8e7eb91c10442033ff (diff)
downloadbusybox-28ea4298e380d73203890c0f42de68e9798396d8.tar.gz
busybox-28ea4298e380d73203890c0f42de68e9798396d8.tar.bz2
volume_id: abort early on read failures.
should help with probing missing fdd's
Diffstat (limited to 'util-linux/volume_id/hfs.c')
-rw-r--r--util-linux/volume_id/hfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util-linux/volume_id/hfs.c b/util-linux/volume_id/hfs.c
index 79658e4fa..f99b895c4 100644
--- a/util-linux/volume_id/hfs.c
+++ b/util-linux/volume_id/hfs.c
@@ -131,8 +131,9 @@ struct hfsplus_vol_header {
#define HFS_NODE_LEAF 0xff
#define HFSPLUS_POR_CNID 1
-int volume_id_probe_hfs_hfsplus(struct volume_id *id, uint64_t off)
+int volume_id_probe_hfs_hfsplus(struct volume_id *id /*,uint64_t off*/)
{
+ uint64_t off = 0;
unsigned blocksize;
unsigned cat_block;
unsigned ext_block_start;