aboutsummaryrefslogtreecommitdiff
path: root/util-linux (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* mkfs_ext2_test: disable incomtatible behavior in standard mke2fsDenys Vlasenko2009-10-211-8/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: e2fsck 1.14.4 compatDenys Vlasenko2009-10-212-5/+81
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: explain 256-byte inodes. no code changesDenys Vlasenko2009-10-211-19/+39
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: explain why 0.5G+ images are a bit differentDenys Vlasenko2009-10-211-4/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: another update by VladimirDenys Vlasenko2009-10-202-89/+126
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* clarify in commentDenys Vlasenko2009-10-201-3/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: further work on small imagesDenys Vlasenko2009-10-202-35/+37
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: fixes for small image generation. images up to ~8M are ok nowDenys Vlasenko2009-10-202-13/+39
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: fix 60k image creationDenys Vlasenko2009-10-202-16/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: further work by VladimirDenys Vlasenko2009-10-202-45/+69
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: small tweakDenys Vlasenko2009-10-201-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: compat fixesDenys Vlasenko2009-10-202-221/+245
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: more work. added test scriptDenys Vlasenko2009-10-182-75/+153
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: fixes for huge filesystemsDenys Vlasenko2009-10-181-23/+43
| | | | | | | | | function old new delta mkfs_ext2_main 2145 2617 +472 div_roundup 15 35 +20 packed_usage 26792 26776 -16 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: make it able to create images larger than 4GDenys Vlasenko2009-10-181-55/+95
| | | | | | | | | | | | function old new delta mkfs_ext2_main 1904 2145 +241 has_super 29 23 -6 PUT 52 40 -12 packed_usage 26807 26792 -15 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/3 up/down: 241/-33) Total: 208 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: shrinkDenys Vlasenko2009-10-181-2/+0
| | | | | | | function old new delta mkfs_ext2_main 1924 1904 -20 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: code shrinkDenys Vlasenko2009-10-171-3/+1
| | | | | | | function old new delta mkfs_ext2_main 1933 1924 -9 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: code shrinkDenys Vlasenko2009-10-171-3/+3
| | | | | | | | function old new delta div_roundup - 15 +15 mkfs_ext2_main 1980 1933 -47 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: fix a buglet introduced in last commitDenys Vlasenko2009-10-171-4/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: shrinkDenys Vlasenko2009-10-171-8/+11
| | | | | | | | function old new delta has_super 28 25 -3 mkfs_ext2_main 2011 1980 -31 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: new applet by VladimirVladimir Dronnikov2009-10-173-0/+486
| | | | | | | | | | | | | | | | | | | function old new delta mkfs_ext2_main - 2011 +2011 static.supers - 184 +184 allocate - 118 +118 packed_usage 26692 26791 +99 PUT - 52 +52 has_super - 28 +28 applet_names 2143 2160 +17 applet_main 1264 1272 +8 applet_nameofs 632 636 +4 applet_install_loc 158 159 +1 ------------------------------------------------------------------------------ (add/remove: 5/0 grow/shrink: 5/0 up/down: 2522/0) Total: 2522 bytes Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* util-linux/mkswap.c: fix warningDenys Vlasenko2009-10-151-13/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move generate_uuid from mkswap to libbbVladimir Dronnikov2009-10-151-79/+13
| | | | | Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* rtcwake: remove a static variableDenys Vlasenko2009-10-081-4/+4
| | | | | | | | | | function old new delta rtc_time 4 - -4 rtcwake_main 479 474 -5 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-9) Total: -9 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: three more NOINLINEsDenys Vlasenko2009-10-081-1/+1
| | | | | | | | | | | | | | function old new delta lzo_decompress - 525 +525 lzo_compress - 470 +470 showmode - 330 +330 fbset_main 1698 1273 -425 do_lzo_compress 799 323 -476 do_lzo_decompress 1167 526 -641 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 0/3 up/down: 1325/-1542) Total: -217 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: a few more NOINLINEsDenys Vlasenko2009-10-082-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta print_linkinfo - 815 +815 do_msg - 783 +783 INET_setroute - 757 +757 varvalue - 746 +746 do_sem - 637 +637 inflate_codes - 617 +617 INET6_setroute - 491 +491 edir - 370 +370 sync_cursor - 298 +298 update_utmp - 246 +246 searchLines - 165 +165 setup_alarm - 144 +144 may_wakeup - 101 +101 getNum 566 371 -195 refresh 1166 848 -318 rtcwake_main 809 479 -330 getty_main 2396 1921 -475 chpst_main 1373 746 -627 inflate_unzip_internal 1335 567 -768 evalvar 1384 612 -772 ipaddr_list_or_flush 2160 1246 -914 route_main 1585 245 -1340 ipcs_main 2523 1049 -1474 ------------------------------------------------------------------------------ (add/remove: 13/0 grow/shrink: 0/10 up/down: 6170/-7213) Total: -1043 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: code shrink via NOINLINEDenys Vlasenko2009-10-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta expand_vars_to_list - 2118 +2118 lzo1x_optimize - 1429 +1429 run_pipe 358 1775 +1417 arith_apply - 1335 +1335 mainQSort3 - 1198 +1198 logdir_open - 1163 +1163 rewrite - 1039 +1039 dump_identity - 987 +987 do_shm - 884 +884 cpio_o - 863 +863 cpio_main 1450 560 -890 ipcs_main 3442 2523 -919 bb_dump_dump 2611 1488 -1123 process_dev 4572 3405 -1167 logdirs_reopen 1308 86 -1222 arith 2084 707 -1377 mainSort 2622 1202 -1420 do_lzo_compress 2276 799 -1477 run_list 2491 943 -1548 expand_variables 2280 135 -2145 ------------------------------------------------------------------------------ (add/remove: 9/0 grow/shrink: 1/10 up/down: 12433/-13288) Total: -855 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: fix for code 302; mount: support -o unionVladimir Dronnikov2009-10-051-0/+5
| | | | | Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: more portability fixes by Dan FandrichDenys Vlasenko2009-09-232-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hdparm,fdisk: reinstate BLKGETSIZE64 #defines. No code changesDenys Vlasenko2009-09-221-1/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* swaponoff: add uuid/label support. By Natanael CopaNatanael Copa2009-09-205-33/+44
| | | | | | | | | | | | | function old new delta swap_enable_disable 130 150 +20 resolve_mount_spec 76 96 +20 mount_main 1152 1154 +2 findfs_main 125 80 -45 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/1 up/down: 42/-45) Total: -3 bytes Signed-off-by: Natanael Copa <natanael.copa@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fdisk: add a warning and truncate disks with >= 2^32 sectorsDenys Vlasenko2009-09-165-211/+246
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* use PACKED macro insted of open-coding GCC-ismDenys Vlasenko2009-09-1629-68/+68
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: do not execute "mount.(null)" :)Denys Vlasenko2009-09-151-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* more C standard compat fixes from Dan FandrichDenys Vlasenko2009-09-062-3/+7
| | | | | | | function old new delta docolon 207 204 -3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove some GNUisms. by Dan Fandrich (dan AT coneharvesters.com)Denys Vlasenko2009-09-061-2/+2
| | | | | | | | | | function old new delta logdirs_reopen 1310 1308 -2 read_line_input 4757 4753 -4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-6) Total: -6 bytes 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>
* scriptreplay: show help text if run with no argumentsDenys Vlasenko2009-07-191-0/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix mountpoint test to not prevemt mkfs_xxx from making image in any fileDenys Vlasenko2009-07-183-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* date: factor out date parsing (in preparation for touch -d)Denys Vlasenko2009-07-181-1/+4
| | | | | | | | | | | | | | | | | | | | | | | function old new delta parse_datestr - 391 +391 sha512_process_block128 1283 1310 +27 buffer_fill_and_print 179 196 +17 nexpr 826 840 +14 unzip_main 1931 1939 +8 popstring 134 140 +6 qrealloc 33 36 +3 builtin_umask 121 123 +2 evalvar 1365 1363 -2 changepath 194 192 -2 do_compress 1698 1688 -10 hwclock_main 340 329 -11 cmdputs 414 402 -12 identify 4343 4329 -14 date_main 1186 687 -499 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 7/7 up/down: 468/-550) Total: -82 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix fallout from BSD patchesDenys Vlasenko2009-07-101-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dmesg: try to detect buffer sizeDenys Vlasenko2009-07-101-12/+18
| | | | | | | | function old new delta dmesg_main 214 246 +32 Signed-off-by: Randy Robertson <rmrobert@vmware.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move libc related stuff out of platform.hDenys Vlasenko2009-07-087-14/+76
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* df: fix "df /"Denys Vlasenko2009-07-053-39/+25
| | | | | | | | | | | | | | | | | | | also, clean up mount checks in mkfs/fsck. function old new delta find_mount_point 243 261 +18 sha1_process_block64 497 510 +13 find_main 436 444 +8 display_speed 85 90 +5 df_main 795 793 -2 parse_command 1463 1460 -3 static.ignored_mounts 8 - -8 mkfs_minix_main 2962 2937 -25 fsck_minix_main 3065 2970 -95 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 4/4 up/down: 44/-133) Total: -89 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix dependencies of FEATURE_GETOPT_LONGDenys Vlasenko2009-07-041-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: be more permissive on errors (dont die): mdev -s users want thatDenys Vlasenko2009-07-021-3/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: set $MDEV correctly for renamed nodesDenys Vlasenko2009-07-021-37/+39
| | | | | | | | function old new delta make_device 1467 1502 +35 build_alias 78 - -78 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Update a comment, no code changesDenys Vlasenko2009-06-271-1/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* device matching against UUIDs: do not try floppiesDenys Vlasenko2009-06-271-0/+7
| | | | | | | function old new delta uuidcache_check_device 255 292 +37 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: fix the case when move rule deletes node with name == device_nameDenys Vlasenko2009-06-221-19/+17
| | | | | Signed-off-by: Jean Wolter <jw5@os.inf.tu-dresden.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>