kpartx: support disk with non-512B sectors
authorPetr Uzel <petr.uzel@suse.cz>
Tue, 16 Jul 2013 07:13:01 +0000 (09:13 +0200)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Tue, 16 Jul 2013 19:50:42 +0000 (21:50 +0200)
commitb9fb5c7d09f07f5bc6ae02f23079385724dff411
tree528994405dc638708d5807e0c8bdb67b6dc6b183
parent95e76e3fa6b4b058bba60a5eb76760afd46f21f8
kpartx: support disk with non-512B sectors

libdevmapper expects sector size to be recalculated to 512B, so we need
to teach kpartx to do so if the underlying DM device has different
sector size (for GPT and msods partition tables).

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
kpartx/dos.c
kpartx/gpt.c
kpartx/kpartx.c
kpartx/kpartx.h