]> git.ipfire.org Git - thirdparty/util-linux.git/commit
partx: don't print error when partition already doesn't exist
authorPhillip Susi <psusi@cfl.rr.com>
Mon, 5 Dec 2011 20:02:51 +0000 (15:02 -0500)
committerKarel Zak <kzak@redhat.com>
Thu, 8 Dec 2011 12:41:39 +0000 (13:41 +0100)
commitab025087f91b66ee8e23a16bc49eb0d9bd421d65
treef90e254072cec011982336e8eaad8f9a0c17f28f
parent1593b134ebf596ae7a2b1e73f2dcc8c4e7febddd
partx: don't print error when partition already doesn't exist

If you run partx -d to delete partitions, and there are gaps
in the sequence ( partition 2 exists, but 1 doesn't ), then it
would complain that it had errors trying to remove the partitions
that already don't exist. Changed to ignore the error when
errno == ENXIO.

Signed-off-by: Phillip Susi <psusi@cfl.rr.com>
partx/partx.c