]> git.ipfire.org Git - thirdparty/util-linux.git/commit
partx: fix --update ranges and out of order tables
authorScott Moser <smoser@ubuntu.com>
Mon, 13 Jan 2014 20:32:49 +0000 (15:32 -0500)
committerKarel Zak <kzak@redhat.com>
Tue, 14 Jan 2014 08:25:49 +0000 (09:25 +0100)
commit84ac311212c06963d616b1b9a40644842f9adabd
tree0aaf0a8dff61581822aeff9762f5a48bfc521171
parentc0cbd9234445cb70e5d3c9168646bce5b54752e4
partx: fix --update ranges and out of order tables

partx --update DEVICE NUMBER
was broken in 2 cases:
 * if NUMBER != 1
 * if the partition table was "out of order".
   Ie, where sda2 came after sda3.

References: https://bugs.launchpad.net/ubuntu/+source/cloud-utils/+bug/1244662
Signed-off-by: Scott Moser <smoser@ubuntu.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/partx.c