aboutsummaryrefslogtreecommitdiff
path: root/util-linux/volume_id/fat.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-02-15 05:51:19 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-02-15 05:51:19 +0000
commit28ea4298e380d73203890c0f42de68e9798396d8 (patch)
tree55c832fd42d8838f9d5f40d2b97bae93263e19e1 /util-linux/volume_id/fat.c
parent93b38208d1e7d759b3c8ed8e7eb91c10442033ff (diff)
downloadbusybox-w32-28ea4298e380d73203890c0f42de68e9798396d8.tar.gz
busybox-w32-28ea4298e380d73203890c0f42de68e9798396d8.tar.bz2
busybox-w32-28ea4298e380d73203890c0f42de68e9798396d8.zip
volume_id: abort early on read failures.
should help with probing missing fdd's
Diffstat (limited to 'util-linux/volume_id/fat.c')
-rw-r--r--util-linux/volume_id/fat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util-linux/volume_id/fat.c b/util-linux/volume_id/fat.c
index 0e0a57d62..352040f57 100644
--- a/util-linux/volume_id/fat.c
+++ b/util-linux/volume_id/fat.c
@@ -119,8 +119,9 @@ static uint8_t *get_attr_volume_id(struct vfat_dir_entry *dir, int count)
119 return NULL; 119 return NULL;
120} 120}
121 121
122int volume_id_probe_vfat(struct volume_id *id, uint64_t fat_partition_off) 122int volume_id_probe_vfat(struct volume_id *id /*,uint64_t fat_partition_off*/)
123{ 123{
124#define fat_partition_off ((uint64_t)0)
124 struct vfat_super_block *vs; 125 struct vfat_super_block *vs;
125 struct vfat_dir_entry *dir; 126 struct vfat_dir_entry *dir;
126 uint16_t sector_size_bytes; 127 uint16_t sector_size_bytes;