diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-02-15 05:51:19 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-02-15 05:51:19 +0000 |
commit | 28ea4298e380d73203890c0f42de68e9798396d8 (patch) | |
tree | 55c832fd42d8838f9d5f40d2b97bae93263e19e1 /util-linux/volume_id/ext.c | |
parent | 93b38208d1e7d759b3c8ed8e7eb91c10442033ff (diff) | |
download | busybox-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/ext.c')
-rw-r--r-- | util-linux/volume_id/ext.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util-linux/volume_id/ext.c b/util-linux/volume_id/ext.c index db29dae70..b052e04ce 100644 --- a/util-linux/volume_id/ext.c +++ b/util-linux/volume_id/ext.c | |||
@@ -43,8 +43,9 @@ struct ext2_super_block { | |||
43 | #define EXT3_FEATURE_INCOMPAT_JOURNAL_DEV 0x00000008 | 43 | #define EXT3_FEATURE_INCOMPAT_JOURNAL_DEV 0x00000008 |
44 | #define EXT_SUPERBLOCK_OFFSET 0x400 | 44 | #define EXT_SUPERBLOCK_OFFSET 0x400 |
45 | 45 | ||
46 | int volume_id_probe_ext(struct volume_id *id, uint64_t off) | 46 | int volume_id_probe_ext(struct volume_id *id /*,uint64_t off*/) |
47 | { | 47 | { |
48 | #define off ((uint64_t)0) | ||
48 | struct ext2_super_block *es; | 49 | struct ext2_super_block *es; |
49 | 50 | ||
50 | dbg("ext: probing at offset 0x%llx", (unsigned long long) off); | 51 | dbg("ext: probing at offset 0x%llx", (unsigned long long) off); |