Fiemap: validate the input arguments
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Sat, 24 Nov 2012 15:34:18 +0000 (17:34 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Sat, 24 Nov 2012 16:33:12 +0000 (18:33 +0200)
commit0048bbecda0018ec6a595e303fd62b6cadb15427
treeb2fba8a157ed0279384ba0e2bbc3185aed9fac48
parent7a4c3e5aa56df8c4ed11bc3f6d2aa768bd7ce49e
Fiemap: validate the input arguments

Validate the input arguments for 'get_mapped_ranges()' and
'get_unmapped_ranges()' - they should be positive and should not go beyond file
size.

Change-Id: Ib992e03c6d651bd4e00025bc1a75b69a90d95a31
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
bmaptools/Fiemap.py