]> git.ipfire.org Git - thirdparty/mdadm.git/commit
intel: Don't try to read from tiny devices.
authorNeilBrown <neilb@suse.de>
Wed, 1 Sep 2010 06:14:26 +0000 (16:14 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 6 Sep 2010 01:26:28 +0000 (11:26 +1000)
commit64436f0628a14f4e979b93bea57aba4b4c6143e8
tree1e0afd86a607241af680eda711c30d6b746a6463
parentf08605b3adb27aa19ce09e25497c930a4f849f66
intel: Don't try to read from tiny devices.

If a device is less than 1K, avoid even trying to seek to 1K before
the end.
The seek will fail anyway so this is a fairly cosmetic fix.

Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c