]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fdisk: isolate dos label logic
authorDavidlohr Bueso <dave@gnu.org>
Sat, 28 Apr 2012 22:02:45 +0000 (00:02 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 2 May 2012 08:35:57 +0000 (10:35 +0200)
commite2ee917804734333ae955778358cd4063de900f9
treec7495d7f5f3fe8d53e2229cab79d00bb6bc739c2
parent1f13d6fcd0a5b6d957645dd42480435288dabb1a
fdisk: isolate dos label logic

DOS specific logic is currently embedded in the heart of fdisk code. This patch
separates DOS label specific code into its own file, just like the rest of the
labels, leaving a more generic fdisk.c file. Most changes are just moving code
from fdisk.c to fdisk.h and fdiskdoslabel.[c/h].

The only logical modification is calling dos_delete_partition() from
read_extended(), instead of the generic delete_partition.  This is ok since
read extended is only called from a DOS context.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
fdisk/Makefile.am
fdisk/fdisk.c
fdisk/fdisk.h
fdisk/fdiskdoslabel.c [new file with mode: 0644]
fdisk/fdiskdoslabel.h [new file with mode: 0644]