]> git.ipfire.org Git - thirdparty/util-linux.git/commit - fdisks/utils.c
fdisk: api: move disklabel type to cxt
authorDavidlohr Bueso <dave@gnu.org>
Mon, 26 Nov 2012 04:25:49 +0000 (20:25 -0800)
committerKarel Zak <kzak@redhat.com>
Fri, 30 Nov 2012 12:48:19 +0000 (13:48 +0100)
commitff5775bd4f391facbfecc864a394b5be55179a85
treeab1a1b812dc1368e5ff2f2524703a0f5b930ef46
parent1258b5f55e3b974472e6771349fd16de7ade56d7
fdisk: api: move disklabel type to cxt

Get rid of it as a global variable as it belongs in the context.
To compare a disklabel on the device, the fdisk_dev_is_disklabel()
function is introduced. Also, to avoid naming issues, the fdisk_labeltype
members where renamed to FDISK_DISKLABEL_<type>.

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