]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fdisk: move DOS new/add partition code
authorDavidlohr Bueso <dave@gnu.org>
Sun, 6 May 2012 12:10:18 +0000 (14:10 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 10 May 2012 09:34:43 +0000 (11:34 +0200)
commit9dea2923c861a74c28864c083b2b5b785ac18ac0
tree43c4c155722aa2297913d547aabdb717ed3f62b9
parenta2a7d18e62d3011279c939147921b1639300c990
fdisk: move DOS new/add partition code

Since this is DOS specific logic, it belongs in its own label file.
Additionally, a dos_new_partition() function is created that asks the user for
partition type and then calls the actual dos_add_partition().

This patch passed fdisk regression tests, builds without problems and it was
locally tested against adding and removing DOS partitions.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
fdisk/fdisk.c
fdisk/fdisk.h
fdisk/fdiskdoslabel.c
fdisk/fdiskdoslabel.h