]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fdisk: api: propagate partition deletion to users
authorDavidlohr Bueso <dave@gnu.org>
Sun, 7 Oct 2012 14:33:37 +0000 (16:33 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 18 Oct 2012 10:15:33 +0000 (12:15 +0200)
commit1f5eb51b79275e32d045fd6718753bf04cde8374
tree208809ee5e82cd2440c0c8b77ee59470dbc2ce43
parent2831866ed6e452a2255373a2499e3647f06bbfb5
fdisk: api: propagate partition deletion to users

The generic fdisk_delete_partition() function returns 0 when a partition
is correctly deleted, otherwise it's corresponding error (negative values).
This, however, does not include problems that can occur in actual label
specific contexts, so we need to propagate the corresponding return code,
back to the user visible api.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
fdisks/fdisk.c
fdisks/fdisk.h
fdisks/fdiskbsdlabel.c
fdisks/fdiskdoslabel.c
fdisks/fdisksgilabel.c
fdisks/fdisksunlabel.c
fdisks/gpt.c
fdisks/utils.c