echo " partition tables"
}
-map_partition()
+do_partition()
{
# Step 1: Find partition to which this sector belongs
local partstart
local partsector
+ echo "# $device: partition table detected" 1>&2
+
partdev="`fdisk -ul $device | awk -v sector="$sector" -F '[ *]+' '/^\// && !/Extended$/ && $2<=sector && $3>=sector {print $1,$2}'`" #`"
if [ -z "$partdev" ]; then
device="$partdev"
sector="$partsector"
+
+ return 1
}
register_mapper "partition"