[kpartx] Don't add 'p' delimiter when you shouldn't
authorPhillip Susi <psusi@ubuntu.com>
Thu, 9 Feb 2012 20:16:21 +0000 (21:16 +0100)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Thu, 9 Feb 2012 20:16:21 +0000 (21:16 +0100)
commit02ce0e8f40f10c0d0c6ad15b3abd02cb43653879
tree49bafa5e18c1ba84d0d9fdd773150f7be59b6421
parent695fc9998b6bb17eeec2709f6c1036401531b0e7
[kpartx] Don't add 'p' delimiter when you shouldn't

The 'p' delimiter is supposed to be added when the base disk name
ends in a digit.  This decision was based on the name given on the
command line, not the canonical device name, so giving /dev/dm-0
instead of /dev/mapper/foo triggered the digit test and added the
'p'.  Changed test to use the canonical name rather than the given
name.
kpartx/kpartx.c