aboutsummaryrefslogtreecommitdiff
path: root/util-linux/fdisk_osf.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* big endian warning fixesDenys Vlasenko2009-11-071-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fdisk: add a warning and truncate disks with >= 2^32 sectorsDenys Vlasenko2009-09-161-28/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As a result, for sectors we can use uint32_t instead of long long, and on 32 bits it has drastic effects: function old new delta get_geometry 619 646 +27 set_sun_partition 148 150 +2 get_partition 134 135 +1 xbsd_write_bootstrap 382 381 -1 xbsd_readlabel 247 246 -1 bsd_select 1674 1672 -2 sun_other_endian 4 1 -3 scsi_disk 4 1 -3 floppy 4 1 -3 fdisk_main 3735 3732 -3 read_maybe_empty 43 37 -6 create_doslabel 111 104 -7 read_line 97 88 -9 add_logical 117 107 -10 write_table 599 588 -11 new_partition 1684 1670 -14 list_disk_geometry 229 215 -14 wrong_p_order 130 110 -20 xselect 3142 3114 -28 seek_sector 71 40 -31 get_boot 1576 1533 -43 fill_bounds 174 128 -46 delete_partition 603 551 -52 list_table 1401 1232 -169 set_partition 459 286 -173 verify 1840 1495 -345 add_partition 2486 1270 -1216 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/24 up/down: 30/-2210) Total: -2180 bytes text data bss dec hex filename 848812 460 7116 856388 d1144 busybox_old 846620 460 7108 854188 d08ac busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fdisk: add handling of avr32. closes bug 555Denys Vlasenko2009-08-101-9/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Fix forgotten license commentsDenis Vlasenko2008-12-071-1/+1
|
* fdisk: move more data to struct globals; shrink code Denis Vlasenko2008-06-291-19/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta nowarn 1 - -1 listing 1 - -1 dos_compatible_flag 1 - -1 warn_cylinders 44 42 -2 open_list_and_close 364 362 -2 fdisk_fatal 41 38 -3 verify 1053 1049 -4 user_sectors 4 - -4 user_heads 4 - -4 user_cylinders 4 - -4 pt_sectors 4 - -4 pt_heads 4 - -4 kern_sectors 4 - -4 kern_heads 4 - -4 ext_index 4 - -4 total_number_of_sectors 8 - -8 extended_offset 8 - -8 create_doslabel 129 120 -9 write_table 225 211 -14 delete_partition 445 431 -14 set_partition 476 459 -17 list_disk_geometry 247 229 -18 unable_to_write 19 - -19 add_partition 2515 2486 -29 get_boot 1709 1636 -73 fdisk_main 2812 2679 -133 ------------------------------------------------------------------------------ (add/remove: 0/14 grow/shrink: 0/12 up/down: 0/-388) Total: -388 bytes text data bss dec hex filename 804634 611 6852 812097 c6441 busybox_old 804298 610 6804 811712 c62c0 busybox_unstripped
* whitespace and comment fixes, no code changesDenis Vlasenko2008-06-161-1/+1
|
* libbb: introduce and use print_flags().Denis Vlasenko2008-06-071-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | Mostly by Natanael Copa <natanael.copa AT gmail.com> function old new delta print_e2flags - 189 +189 print_flags_separated - 86 +86 static.flag_labels - 60 +60 static.dma_wmode_masks - 32 +32 static.flag_masks - 28 +28 static.arp_labels - 16 +16 static.arp_masks - 12 +12 ls_main 836 843 +7 ... popstring 140 134 -6 arp_show 740 708 -32 print_flags 189 25 -164 ipaddr_list_or_flush 2396 2170 -226 process_dev 5306 4706 -600 ------------------------------------------------------------------------------ (add/remove: 10/0 grow/shrink: 5/10 up/down: 458/-1043) Total: -585 bytes text data bss dec hex filename 810564 624 7060 818248 c7c48 busybox_old 810002 624 7060 817686 c7a16 busybox_unstripped
* fdisk: fix a case where we can inadvertently close /proc/partitions fd earlyDenis Vlasenko2008-04-171-1/+1
|
* fdisk: do not open device twice. Complain on fdisk -l /dev/bogus.Denis Vlasenko2008-04-171-13/+15
| | | | | | | | | | Made enums UPPERCASE. Removed one global variable. Added some FIXMEs. text data bss dec hex filename 804708 645 7112 812465 c65b1 busybox_old 804685 641 7112 812438 c6596 busybox_unstripped
* fdisk: reduce global data/bss usage. 8k data+bss build is achievable soon ;)Denis Vlasenko2007-12-161-7/+5
| | | | | | | | (add/remove: 0/13 grow/shrink: 6/19 up/down: 74/-492) Total: -418 bytes text data bss dec hex filename 778330 860 7408 786598 c00a6 busybox_old 777970 840 7376 786186 bff0a busybox_unstripped
* introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).Denis Vlasenko2007-09-271-3/+3
|
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-1/+1
| | | | | | | | | trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
* Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms ↵Denis Vlasenko2007-06-251-4/+3
| | | | <wharms@bfs.de>)
* fix accumulated whitespace and indentation damageDenis Vlasenko2007-03-201-1/+1
|
* fdisk: get rid of _() macro.Denis Vlasenko2007-03-191-114/+131
| | | | | | | | | Shorten some messages. Stop using stderr - anyone who tries to use fdisk no-interactively is "strange" anyway. Improve storage handling in bsd module. text data bss dec hex filename 728112 1488 33788 763388 ba5fc busybox.t0/busybox 727248 1488 33372 762108 ba0fc busybox.t1/busybox
* preparatory patch for -Wwrite-strings #3Denis Vlasenko2007-01-291-4/+4
|
* Convert cmdedit into more generic line input facilityDenis Vlasenko2007-01-221-23/+23
| | | | | | (make history and completion optional at runtime). Use it for fdisk, as an example. Some unrelated fixes in fdisk are also here.
* fdisk: remove 8k buffer from bss - OSF labelsDenis Vlasenko2007-01-031-8/+8
| | | | are not THAT common anyway
* silly style fixesDenis Vlasenko2007-01-021-62/+61
|
* next bunch of fixes for bugs found by randconfigDenis Vlasenko2006-12-301-1/+1
|
* u_short, ulong exterminatedDenis Vlasenko2006-12-191-26/+27
| | | | fdiskXXX: add a bit of sanity (not enough by far)
* "make bigdata" biggest offender dealt with:Denis Vlasenko2006-11-301-2/+2
| | | | xmalloc 16Kb buffer instead of keeping it in bss
* silly size savings and capitalization fixesDenis Vlasenko2006-10-261-2/+2
|
* fdisk: compilation fixDenis Vlasenko2006-10-141-1/+1
|
* fdisk: separate sun/aix/etc code into #included filesDenis Vlasenko2006-10-121-0/+1046