summaryrefslogtreecommitdiff
path: root/libfdisk/src/sun.c
AgeCommit message (Collapse)AuthorFilesLines
2014-02-12undef sun in libfdisk/src/sun.cIgor Pashev1-0/+5
2013-11-01libfdisk: (sun) fix end sectors with +1 errorKarel Zak1-1/+1
partx (or parted, etc.): NR START END SECTORS SIZE NAME UUID 1 0 410047 410048 200.2M 2 410048 82329055 81919008 39.1G 4 82329056 102807615 20478560 9.8G 5 102807616 110999039 8191424 3.9G 6 110999040 312580543 201581504 96.1G and the same with fdisk: Device Flag Start End Blocks Id System /dev/loop0p1 0 410048 205024 1 Boot /dev/loop0p2 410048 82329056 40959504 83 Linux native /dev/loop0p3 0 312580544 156290272 5 Whole disk /dev/loop0p4 82329056 102807616 10239280 83 Linux native /dev/loop0p5 102807616 110999040 4095712 83 Linux native /dev/loop0p6 110999040 312580544 100790752 8e Linux LVM Reported-by: Phillip Susi <psusi@ubuntu.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-23libfdisk: fix printf stuffKarel Zak1-13/+12
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-15fdisk: fix printf stuffKarel Zak1-2/+2
Unfortunately, fdisk_warn/info/.. function was not marked by printf __attribute__. We don't want to break gettext stuff now, so all compiler warnings have been fixed by casts. This is temporary solution, after release it will be necessary to fix all the strings. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-25libfdisk: (sun) make it more obvious why the first sector movedKarel Zak1-1/+5
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-25libfdisk: use context geometry in SGI and SUNKarel Zak1-15/+7
* don't call HDIO_GETGEO ioctls in the drivers * use context geometry (so user can overwrite it by -C/H/S options) * use default geometry is ioctl does not return anything Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-25libfdisk: fix possible floating point exceptionKarel Zak1-1/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-18libfdisk: fix cylinders and sector buffer usageKarel Zak1-0/+3
- sector buffer has to be correctly deallocated - round to cylinders when use cylinder units in dos driver Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: use fdisk_colon() and fdisk_sinfo()Karel Zak1-25/+25
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: add FDISK_LABEL_FL_REQUIRE_GEOMETRYKarel Zak1-0/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: (sun) remove duplicate codeKarel Zak1-5/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: move sun commands to sun menu callbackKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: clean up sun geometry stuffKarel Zak1-22/+34
- move fdisk_sun_set_* functions to public API file - remove extra function to set ncyl -- this has to follow regular geo.cylinders - set alternative cylinders to zero (to be compatible with parted) - it seems that the previous code completely ignored relation between geo.cylinders, sunlabel->acyl and sunlabel->ncyl. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: (sun) move driver from fdisk to libraryKarel Zak1-0/+1008
... and also add fdisk_info_new_partition() Signed-off-by: Karel Zak <kzak@redhat.com>