Denys Vlasenko
638dbc34b3
mdev: add a comment. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2012-02-06 01:00:00 +01:00
Denys Vlasenko
bbf1e3c144
acpid: do not install handlers for fatal signals
...
For acpid, it's ok to die at once.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2012-02-05 15:08:08 +01:00
Javier Viguera
e8758eaf4f
mdev: fix wrong sizeof
...
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2012-01-30 02:15:13 +01:00
Denys Vlasenko
6e8861b5f1
*: better comments on termios manipulations. No code changes.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2012-01-15 23:00:13 +01:00
Denys Vlasenko
7550201e9a
mke2fs: do not zero out first kilobyte. Closes 3247
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2012-01-11 01:02:31 +01:00
Denys Vlasenko
499597d6ef
mdev: do not treat non-leading '#' chars as start of comment. Closes 4676
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2012-01-11 00:37:17 +01:00
Denys Vlasenko
982fdaf4b2
acpid: close fds which are reported as dead (POLLERR/POLLHUP/POLLNVAL) by poll.
...
function old new delta
acpid_main 1159 1229 +70
packed_usage 28977 28980 +3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2012-01-09 05:01:25 +01:00
Denys Vlasenko
d6f5000c13
*: style fixes. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-12-15 12:39:25 +01:00
Denys Vlasenko
2f8ccc14f7
blkid: make help text show [BLOCKDEV]...
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-12-06 15:09:27 +01:00
Denys Vlasenko
c3375f0389
volume_id/get_devname: trivial code shrink
...
function old new delta
uuidcache_init 36 41 +5
get_devname_from_uuid 55 51 -4
get_devname_from_label 61 57 -4
display_uuid_cache 109 105 -4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 5/-12) Total: -7 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-12-06 15:06:59 +01:00
Denys Vlasenko
39b233182c
mount: resolve hosts to IPs in nfs mounts
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-11-10 17:01:39 +01:00
Denys Vlasenko
a86e02492d
mount: make FEATURE_MOUNT_NFS not needed for Linux 2.6.23+
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-11-10 16:53:35 +01:00
Dave Love
fae473c81b
mount: support -o noacl
...
Signed-off-by: Dave Love <fx@gnu.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-11-10 15:19:25 +01:00
Karol Lewandowski
b5ebe5fdb3
mount: handle list of comma-separated fs types in -t option
...
Allows one to specify list of filesystem types to be
tried when mounting particular device. E.g.
mount -t vfat,ext2 ...
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-11-03 10:02:31 +01:00
Denys Vlasenko
f85554c265
mount: free commented /etc/filesystems lines when we read it
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-11-03 09:54:53 +01:00
Denys Vlasenko
a241069004
remove duplicate include <sys/swap.h>
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-10-22 06:39:00 +02:00
Denys Vlasenko
45f0a1156d
mdev: trim overlong comments. No code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-09-22 04:55:47 +02:00
Denys Vlasenko
3eccd7ecbe
mdev: don't reparse rules on -s
...
function old new delta
make_device 1648 1843 +195
clean_up_cur_rule - 61 +61
make_default_cur_rule - 41 +41
mdev_main 690 712 +22
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 2/0 up/down: 319/0) Total: 319 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-09-22 03:46:30 +02:00
Denys Vlasenko
16714245f9
add INIT_G()'s. No code changes.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-09-21 01:59:15 +02:00
Denys Vlasenko
5c6ba6c56f
mdev: expand --help so that it's actually useful.
...
function old new delta
packed_usage 28634 28822 +188
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-09-19 12:18:11 +02:00
Denys Vlasenko
13e709c53f
losetup: implement -r option. Closes 4033.
...
function old new delta
packed_usage 28595 28633 +38
losetup_main 285 290 +5
singlemount 906 908 +2
set_loop 674 672 -2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-09-12 08:30:16 +02:00
Denys Vlasenko
c21c310e46
swapoff: dont pass "p" in opt_complementary
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-08-13 23:36:36 +02:00
Denys Vlasenko
b347df9131
randomconfig fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-08-09 22:49:15 +02:00
Denys Vlasenko
80856b37e8
fdisk: reinstate a short sleep between sync() and ioctl(BLKRRPART)
...
While at it, simplify code a bit.
function old new delta
write_table 201 198 -3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-07-13 09:06:32 +02:00
Denys Vlasenko
14bd16ac56
more tweak for bionic
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-07-08 08:49:40 +02:00
Denys Vlasenko
319b8bb355
hwclock: use locale-specific date output format
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-07-08 06:40:25 +02:00
Dan Fandrich
b5de0c12d6
typo fixes
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-07-08 05:47:49 +02:00
Denys Vlasenko
46465ecf72
hwclock: better help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-07-04 04:34:57 +02:00
Denys Vlasenko
972e046070
fbset: apply modelines. Closes 3823
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-06-06 04:21:39 +02:00
Denys Vlasenko
66426760be
*: remove "Options:" string from help texts
...
function old new delta
packed_usage 28706 28623 -83
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-06-05 03:58:28 +02:00
Dan Fandrich
f3854f789c
replace nonstandard unsigned typedefs
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-06-03 20:25:17 +02:00
Denys Vlasenko
488dd70869
fix !ENABLE_FEATURE_GETOPT_LONG build. Closes 3775
...
When compiling with !ENABLE_FEATURE_GETOPT_LONG, busybox still tries
to include getopt.h which is not available; for example with uClibc
when !UCLIBC_HAS_GETOPT_LONG. getopt.h is only required
for the _long set of functions.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-05-29 04:24:52 +02:00
Denys Vlasenko
4566e172eb
simplify parsing of /etc/busybox.conf
...
function old new delta
parse_config_file 799 667 -132
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-05-16 00:01:08 +02:00
Denys Vlasenko
12bc152b31
fbset: abort on unknown options. closes 3121
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-05-09 03:57:27 +02:00
Denys Vlasenko
80c5b6893d
libbb: nonblock_safe_read->nonblock_immune_read, remove unused param of xmalloc_reads
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-05-08 21:21:10 +02:00
Bernhard Reutner-Fischer
882062915d
mount: for NFS use tcp per default rather than udp
...
nfs-utils's mount.nfs uses TCP per default unless explicitly asked for
otherwise. This is also the expected behaviour for NFSv4, so ok there,
too.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-05-04 19:03:30 +02:00
Lauri Kasanen
9cfcc4d7a2
fdisk: backport disk check from util-linux
...
With the digit check devices like mmcblk0 were skipped,
but now with 0 allowed we're seeing a ton of loop devices listed
(loop0, loop10, loop20...) as well as ramzswap0,
all which should not be shown in fdisk -l.
function old new delta
list_devs_in_proc_partititons 157 238 +81
Signed-off-by: Lauri Kasanen <curaga@operamail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-04-30 21:31:05 +02:00
Denys Vlasenko
8c498b6c6e
make FDISK_SUPPORT_LARGE_DISKS redundant when LFS=y
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-04-16 18:07:35 +02:00
Pere Orga
5bc8c005a8
move remaining help text from include/usage.src.h
...
Signed-off-by: Pere Orga <gotrunks@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-04-11 03:29:49 +02:00
Roman Borisov
19311bfa7b
mount: add --rbind option support
...
Signed-off-by: Roman Borisov <ext-roman.borisov@nokia.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-03-26 23:12:12 +01:00
Roman Borisov
d3679d2491
mount: rprivate option fix
...
fixed the mistake in writing for -make-rprivate option
Signed-off-by: Roman Borisov <ext-roman.borisov@nokia.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-03-26 23:02:05 +01:00
Denys Vlasenko
681efe20d3
use user's shell instead of hardwired "/bin/sh" (android needs this)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-03-08 21:00:36 +01:00
Denys Vlasenko
82e785cf8c
more: fix tabs handling
...
function old new delta
more_main 837 829 -8
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-03-07 02:01:52 +01:00
Denys Vlasenko
c6450c974f
mount: strip multiple trailing slashes, not just one
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-28 11:09:49 +01:00
Roman Borisov
c8dc01dc80
mount: update /etc/mtab properly on mount --move
...
Signed-off-by: Roman Borisov <ext-roman.borisov@nokia.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-28 05:06:01 +01:00
Denys Vlasenko
e3b1a1fd28
Replace "depends on PLATFORM_LINUX" with "select PLATFORM_LINUX"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-26 22:24:08 +01:00
Peter Korsgaard
301fe50ca2
mount: ignore unknown mount options when remounting NFS mounts
...
Don't fail on unknown nfs mount options. The kernel automatically
adds a few mount options that we don't currently handle, like:
sec=null|sys|krb5..
mountaddr=<ip>
mountproto=tcp|udp
local_lock=none|all|flock|posix
Which causes a simple mount -o remount,rw <mountpoint> to fail.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-26 19:02:36 +01:00
Roman Borisov
945fd173e9
mount: fix wrong long option namess
...
Fixed the --make-shared, --make-rshared, ... etc. (--make-*) options
in the mount command. Now parse_mount_options() may reasonably process such
options.
Fixed: http://lists.busybox.net/pipermail/busybox/2011-January/074511.html
Signed-off-by: Roman Borisov <ext-roman.borisov@nokia.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-26 18:50:55 +01:00
Dan Fandrich
f303bdd918
blockdev: add --getsz to replace --getsize
...
function old new delta
blockdev_main 255 273 +18
bdcommands 160 176 +16
packed_usage 28142 28107 -35
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 34/-35) Total: -1 bytes
Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-20 04:15:43 +01:00
Denys Vlasenko
48a5219f39
reverted LINHIB0001 swap signature addition
...
see:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/683605
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-14 03:52:16 +01:00
Denys Vlasenko
66c5b12dbf
ash: fix TMOUT not restoring tty attributes
...
function old new delta
pgetc 420 500 +80
readtoken1 3202 3239 +37
read_line_input 3316 3337 +21
udhcpc_main 2610 2630 +20
file_get 266 272 +6
expandarg 958 963 +5
localcmd 257 259 +2
addLines 85 87 +2
read_line 94 95 +1
ed_main 2540 2541 +1
timed_out 1 - -1
lineedit_read_key 256 255 -1
alrm_sighandler 44 - -44
cmdloop 539 434 -105
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 10/2 up/down: 175/-151) Total: 24 bytes
text data bss dec hex filename
887379 936 17200 905515 dd12b busybox_old
887411 936 17192 905539 dd143 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-08 05:07:02 +01:00
Denys Vlasenko
b7c9fb27cb
whitespace fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-03 00:05:48 +01:00
Denys Vlasenko
625cfd87d9
fdisk_osf: simplify ifdef (incidentally, adds support for Microblaze)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-01-31 05:55:52 +01:00
Davide Cavalca
658a437d4b
hwclock: implement --systz
...
function old new delta
hwclock_main 324 434 +110
packed_usage 28220 28259 +39
static.hwclock_longopts 53 60 +7
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 156/0) Total: 156 bytes
Signed-off-by: Davide Cavalca <davide@geexbox.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-01-22 18:55:32 +01:00
Denys Vlasenko
b9f2d9f7d9
mass removal of underscores from _BB_DIR_foo and _BB_SUID_foo
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-01-18 13:58:01 +01:00
Denys Vlasenko
3b5acaa432
disable automatic selection of FEATURE_SUID; improve its help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-01-18 13:52:48 +01:00
Denys Vlasenko
e66a212081
mkswap: selinux build fix
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2011-01-05 11:45:44 +01:00
Denys Vlasenko
90615a0c5c
blkid: optional support for TYPE="fstype"
...
Adapted from patch created by T4ndeta <t4ndeta@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-12-30 00:40:11 +01:00
James Hunt
86ffe5c15a
volume_id: recognize compressed hibernate swap signature
...
util-linux/volume_id/linux_swap.c: Added the new magic LINHIB0001
signature.
See:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/683605
Signed-off-by: James Hunt <james.hunt@ubuntu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-12-19 17:18:45 +01:00
Denys Vlasenko
0d1d0f6e54
more: smaller version of previous fix
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-12-13 14:31:59 +01:00
Denys Vlasenko
0b90de1537
more: exit if write to stdout errors out
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-12-13 14:28:38 +01:00
Denys Vlasenko
b271ad46dc
blkid: add TODO
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-11-25 07:59:17 +01:00
Denys Vlasenko
26777aa1c6
fixes for bugs discovered by randomconfig builds and tests
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-11-22 23:49:10 +01:00
Rob Landley
2658888c78
umount: cleanup and code shrink
...
Signed-off-by: Rob Landley <rob@landley.net>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-11-01 00:43:34 +01:00
Denys Vlasenko
d7559c2741
fdisk: fix trivial build failure
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-30 02:40:08 +02:00
Denys Vlasenko
fb132e4737
whitespace cleanup
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-10-29 11:46:52 +02:00
Marek Polacek
7b18107384
*: use _exit() in sighandlers; showkey: do not use exit-thru-sighandler
...
While at it, make ESC sequences more readable; and removed check for
isatty(stdin) in reset. Code shrink:
text data bss dec hex filename
884771 936 17216 902923 dc70b busybox_old
884723 936 17216 902875 dc6db busybox_unstripped
Signed-off-by: Marek Polacek <mmpolacek@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-28 21:34:56 +02:00
Denys Vlasenko
756e95e782
ipcrm: small code shrink
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-28 19:10:46 +02:00
Denys Vlasenko
e4dcba1c10
*: whitespace fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-28 18:57:19 +02:00
Alexander Shishkin
7765095441
mount: pass NULL, not "", as "data" to mount syscall if we have no opts
...
When mounting a filesystem without any additional options (data parameter
to the mount(2) syscall), pass NULL instead of an empty string like GNU
mount does. This fixes, for example mounting cgroup fs with bbox mount.
Signed-off-by: Alexander Shishkin <virtuoso@slind.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-28 06:10:03 +02:00
Denys Vlasenko
16cc80e989
crc32: cleanups, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-28 05:38:11 +02:00
Denys Vlasenko
9ce642f974
libbb: introduce and use common crc32 routine
...
function old new delta
crc32_block_endian1 - 37 +37
crc32_block_endian0 - 34 +34
global_crc32_table - 8 +8
file_read 82 87 +5
gzip_main 211 214 +3
xz_crc32 40 35 -5
crc32_table 8 - -8
calculate_gunzip_crc 54 34 -20
lzo_crc32 54 25 -29
cksum_main 298 211 -87
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 2/4 up/down: 87/-149) Total: -62 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-10-27 15:26:45 +02:00
Marek Polacek
b507cc3ace
powertop: new applet
...
Signed-off-by: Marek Polacek <mmpolacek@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-25 03:44:34 +02:00
Kevin Cernekee
ccb070450e
fdisk: initial stab at GPT partition support
...
Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-25 02:00:24 +02:00
Denys Vlasenko
ba04337e1f
umount: I forgot to change another PATH_MAX to 4096
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-24 13:28:45 +02:00
Denys Vlasenko
07b1c6ecc0
umount: do not (ab)use PATH_MAX as mntent buffer size
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-24 03:00:57 +02:00
Alexander Shishkin
54779a47e9
mount: code shrink (-81 bytes)
...
Signed-off-by: Alexander Shishkin <virtuoso@slind.org>
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-10-22 13:35:47 +02:00
Denys Vlasenko
f04ca74ab5
dmesg: more correct skipping of <N>; use faster putchar for most output
...
function old new delta
dmesg_main 246 291 +45
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-19 23:08:33 +02:00
Souf Oued
ccb7a43900
acpid: add config file and map file
...
function old new delta
acpid_main 434 1137 +703
find_action - 204 +204
f_evt_tab - 48 +48
packed_usage 27724 27755 +31
f_act_tab - 16 +16
process_event 126 - -126
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 2/0 up/down: 1002/-126) Total: 876 bytes
Signed-off-by: Souf Oued <souf_oued@yahoo.fr>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-09-26 12:40:05 +02:00
Denys Vlasenko
f38b912fcf
Again fix license line format
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-09-06 17:41:46 +02:00
Denys Vlasenko
571c5ab768
blockdev: code shrink
...
function old new delta
blockdev_main 292 255 -37
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-09-06 17:37:52 +02:00
Denys Vlasenko
a35dfe6200
blockdev: make "blockdev --rereadpt /dev/sda EXTRA_ARG" complain. +6 bytes.
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-09-06 16:31:18 +02:00
Denys Vlasenko
3d4a8f8646
made 3 license strings to follow the usual form ("or later" bit is not changed!)
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-09-06 16:22:25 +02:00
Denys Vlasenko
264bdadb2c
blockdev: -2 bytes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-09-06 15:34:15 +02:00
Denys Vlasenko
b4e6b41934
tweak blockdev's help text
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-09-06 14:15:46 +02:00
Sergey Naumov
289aff8623
blockdev: new applet
...
function old new delta
blockdev_main - 287 +287
bdcommands - 160 +160
packed_usage 27203 27298 +95
applet_names 2297 2306 +9
applet_main 1352 1356 +4
applet_nameofs 676 678 +2
applet_install_loc 169 170 +1
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 5/0 up/down: 558/0) Total: 558 bytes
Signed-off-by: Sergey Naumov <sknaumov@gmail.com>
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-09-06 13:35:58 +02:00
Denys Vlasenko
8d3e225a2d
libbb: add xfstat function
...
function old new delta
xfstat - 25 +25
mkfs_ext2_main 2421 2423 +2
mkfs_reiser_main 1197 1194 -3
next 312 307 -5
ar_main 533 522 -11
mkfs_minix_main 2938 2924 -14
mkfs_vfat_main 1511 1495 -16
writeTarFile 272 255 -17
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/6 up/down: 27/-66) Total: -39 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-08-31 12:42:06 +02:00
Denys Vlasenko
4e7dd3c363
mkswap: clear 1st kilobyte. Closes bug 1831
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-08-31 01:50:03 +02:00
Denys Vlasenko
0ef64bdb40
*: make GNU licensing statement forms more regular
...
This change retains "or later" state! No licensing _changes_ here,
only form is adjusted (article, space between "GPL" and "v2" and so on).
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-08-16 20:14:46 +02:00
Denys Vlasenko
f2860bf6d3
mdev: fix non-working device deletion, add a test for that
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-08-16 14:26:15 +02:00
Denys Vlasenko
9768a82eb0
*: fix "see file License ..." - the file is named LICENSE (in uppercase)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-08-16 03:04:14 +02:00
Denys Vlasenko
7783248eaa
*: s/xatoi_u/xatoi_positive/g - I got bored of mistyping xatoi_u as xatou_i
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-08-12 14:14:45 +02:00
Macpaul Lin
1fbaf3a2d1
fdisk: Add support for NDS32 architecture.
...
NDS32 is a new architecture invented by Andestech.com.
This patch add the support to fdisk utility.
Signed-off-by: Macpaul Lin <macpaul@andestech.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-08-11 14:12:00 +02:00
Denys Vlasenko
81d9e60a88
Set HWCLOCK_ADJTIME_FHS to off by default
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-08-10 15:14:36 +02:00
Denys Vlasenko
f3ea792bad
*: mass cosmetic removal of extra empty lines. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-07-26 01:06:14 +02:00
Jeremie Koenig
1d7266d3b5
mark Linux-specific configuration options
...
PLATFORM_LINUX is used as a dependency for applets or features
which require Linux-specific interfaces.
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-07-19 00:44:56 +02:00
Denys Vlasenko
0e450669d4
util-linux: move VOLUMEID to a submenu
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-07-14 07:10:47 +02:00
Denys Vlasenko
6af732b9ae
acpid: old kernel headers compat
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-07-12 06:20:11 +02:00
Denys Vlasenko
d8b989f22d
more: style fix. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-07-12 03:14:17 +02:00
Denys Vlasenko
8f65b0cf31
whitespace fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-07-06 18:46:02 +02:00
Pascal Bellard
926031b764
*: introduce and use xfork() and xvfork()
...
function old new delta
launch_helper 170 169 -1
setup_heredoc 312 302 -10
handle_dir_common 367 354 -13
expand_vars_to_list 2456 2443 -13
open_transformer 89 74 -15
data_extract_to_command 439 423 -16
do_ipaddr 1406 1389 -17
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/7 up/down: 0/-85) Total: -85 bytes
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-07-04 15:32:38 +02:00
Lauri Kasanen
7c1b2b5420
losetup: use LOOP_foo defines
...
Signed-off-by: Lauri Kasanen <curaga@operamail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-07-04 00:04:03 +02:00
Denys Vlasenko
fa1b3705a3
mount: fix a case when sometimes error message is not printed
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-06-27 16:47:40 +02:00
Denys Vlasenko
dd8adde386
*: introduce and use bb_unsetenv_and_free
...
function old new delta
bb_unsetenv_and_free - 17 +17
tcpudpsvd_main 1819 1810 -9
safe_setenv 58 47 -11
udhcp_run_script 630 616 -14
make_device 1683 1663 -20
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/4 up/down: 17/-54) Total: -37 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-06-24 05:00:50 +02:00
Marek Polacek
fc6f6e933c
rev: new applet
...
text data bss dec hexfilename
377 0 0 377 179rev.o
Signed-off-by: Marek Polacek <mmpolacek@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-06-22 12:53:35 +02:00
Denys Vlasenko
b87c17cd16
*: stop defining _GNU_SOURCE in source files, it's in CFLAGS anyway
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-06-18 15:15:24 +02:00
Dan Fandrich
eafc6956f6
Allow CONFIG_VOLUMEID to be turned off
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-06-18 13:28:46 +02:00
Denys Vlasenko
8f599f9a31
mkfs_ext2: improve comments a bit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-06-18 12:40:57 +02:00
Bernhard Reutner-Fischer
5070124763
mkfs_ext2: reuse string
...
function old new delta
mkfs_ext2_main 2376 2378 +2
.rodata 135872 135848 -24
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 2/-24) Total: -22 bytes
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-06-18 11:49:44 +02:00
Bernhard Reutner-Fischer
cd5aa5c5da
mkfs_ext2: fix handling of -I argument
...
-I <unsigned int> but was treated as a character
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-06-18 11:47:45 +02:00
Denys Vlasenko
d70e0e995e
*: add INSERTs to *.src files where appropriate
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-06-08 12:15:11 +02:00
Pascal Bellard
b82b34e06d
modprobe: add support for -l and -s. Remove some unsupported options
...
Fixed some goofs in help text
function old new delta
modprobe_main 494 653 +159
packed_usage 27129 27145 +16
insmod_main 98 95 -3
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-06-07 01:18:53 +02:00
Denys Vlasenko
161bb8fa12
fix a few goofs uncovered by "make allnoconfig" testing
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-06-06 05:07:11 +02:00
Denys Vlasenko
2f32bf8be6
remove defconfig. Now "make defconfig" simply uses defaults from Config.in
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-06-06 04:14:28 +02:00
Denys Vlasenko
da929a95aa
mass renaming Kbuild -> Kbuild.src, Config.in -> Config.src
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-06-04 20:10:51 +02:00
Denys Vlasenko
8878c24c7d
mkfs_vfat: fix gcc-4.4 warning
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-06-04 15:55:17 +02:00
Denys Vlasenko
ea8b252cb3
*: better string sharing
...
text data bss dec hex filename
849427 441 7556 857424 d1550 busybox_old
849355 441 7556 857352 d1508 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-06-02 12:57:26 +02:00
Denys Vlasenko
dc1fd2e52a
mount: handle EDQUOT > 255 properly. closes bug 1579
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-05-19 17:01:29 +02:00
Denys Vlasenko
92510141e2
losetup: support /dev/loop10 and higher. closes bug 1627
...
function old new delta
query_loop 91 95 +4
losetup_main 288 285 -3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-05-19 00:39:17 +02:00
Denys Vlasenko
6774386d95
tune2fs: move to e2fsprogs
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-05-09 00:13:40 +02:00
Lauri Kasanen
d2844fcb68
swapon: skip noauto entries
...
Signed-off-by: Lauri Kasanen <curaga@operamail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-04-29 22:20:57 +02:00
Lauri Kasanen
375a8ef5ea
mount: add an optional capability to create new /dev/loopN as needed
...
Signed-off-by: Lauri Kasanen <curaga@operamail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-04-14 12:31:26 -07:00
Denys Vlasenko
60f659f9d9
hwclock: improve, and then disable clever sync code: it's bloat
...
...and hardware is too stupid to benefit from it anyway
function old new delta
hwclock_main 439 319 -120
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-04-14 09:19:20 -07:00
Denys Vlasenko
1854bc1aa2
hexdump: make -s 0xNNNNN work
...
function old new delta
hexdump_main 603 605 +2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-04-06 23:33:28 +02:00
Denys Vlasenko
f8d8aa1cea
libbb: add skip_dev_pfx()
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-04-06 18:50:05 +02:00
Denys Vlasenko
fcad7681f8
fdisk: make comment more clear
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-04-06 16:56:33 +02:00
Denys Vlasenko
d958e909cd
fdisk: make 'b' command optionally adjust C/H/S; "fdisk IMAGE_FILE" sets cylinders
...
function old new delta
set_hsc_start_end - 189 +189
get_boot 1644 1713 +69
fdisk_main 2620 2652 +32
get_partition_start_from_dev_start - 15 +15
get_partition_start 15 - -15
set_partition 286 120 -166
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 2/1 up/down: 305/-181) Total: 124 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-04-06 02:32:26 +02:00
Denys Vlasenko
5ea1de2235
fdisk: code shrink without logic changes
...
function old new delta
create_doslabel 113 110 -3
set_start_sect 8 4 -4
set_nr_sects 8 4 -4
get_start_sect 8 4 -4
get_nr_sects 8 4 -4
store4_little_endian 21 - -21
read4_little_endian 33 - -33
is_cleared_partition 84 21 -63
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 0/6 up/down: 0/-136) Total: -136 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-04-06 02:31:43 +02:00
Denys Vlasenko
ccd1efc3c1
cosmetic fixes, no code changed
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-04-03 15:39:47 +02:00
Denys Vlasenko
b38af7bd31
mdev: add "!" syntax support
...
Based on the patch by Steve Bennett <steveb@workware.net.au>
function old new delta
make_device 1640 1673 +33
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-04-02 06:47:14 +02:00
Denys Vlasenko
345e093c29
fix Config.in tab usage
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-03-31 16:03:56 +02:00
Jérémie Koenig
fbedacfc8c
Hurd compat fixes. Mostly dealing with absent PATH_MAX
...
Signed-off-by: Jérémie Koenig <jk@jk.fr.eu.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-03-26 19:08:53 +01:00
Denys Vlasenko
651a2697f7
*: merge some common strings
...
text data bss dec hexfilename
838650 8009 0 846659 ceb43busybox_old
838519 8009 0 846528 ceac0busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-03-23 16:25:17 +01:00
Souf Oued
1c3f117ca4
lsusb: 2.6.32 compat
...
Signed-off-by: Souf Oued <souf_oued@yahoo.fr>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-03-23 05:11:40 +01:00
Denys Vlasenko
4f0408b5bc
flock: should not be selected by default
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-03-21 19:12:03 +01:00
Timo Teras
892d4b6b3d
flock: new applet
...
function old new delta
flock_main - 253 +253
packed_usage 26466 26498 +32
applet_names 2170 2176 +6
applet_main 1280 1284 +4
applet_nameofs 640 642 +2
applet_install_loc 160 161 +1
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 5/0 up/down: 298/0) Total: 298 bytes
Signed-off-by: Timo Teras <timo.teras@iki.fi>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-03-18 22:45:35 +01:00
Denys Vlasenko
8531d76a15
*: code shrink and better "died from signal" reporting from wait4pid
...
function old new delta
parse 964 967 +3
udhcp_run_script 670 665 -5
singlemount 911 906 -5
mount_it_now 360 355 -5
inotifyd_main 521 516 -5
xspawn 21 - -21
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/4 up/down: 3/-41) Total: -38 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-03-18 22:44:00 +01:00
Denys Vlasenko
8d4a8d195d
mdev: fix a trivial SEGV
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-03-16 18:37:19 +01:00
Denys Vlasenko
88aa558e5c
*: do not check for POLLIN/POLLOUT only, just in case it's POLHUP/POLERR
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-03-02 15:02:45 +01:00
Denys Vlasenko
99069330a1
*: gethostname-related fixes
...
function old new delta
hostname_main 218 231 +13
nfsmount 3541 3474 -67
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-27 19:38:19 +01:00
Denys Vlasenko
64bb95a361
mdev: fix subsystem passing (new kernels broke it again) - bugs 639, 721.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-24 10:39:47 +01:00
Denys Vlasenko
bf1d347964
fdisk: do not treat names ending in '0' as partitions
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-24 08:13:30 +01:00
Vladimir Dronnikov
73ccd0ca87
volume_id/linux_swap: detect suspended image signatures too
...
Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-08 03:08:05 +01:00
Denys Vlasenko
b741cd28d1
whitespace fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-06 13:25:12 +01:00
Denys Vlasenko
36659fda1f
*: fix 1/4 remaining aliasing warnings
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-05 14:40:23 +01:00
Denys Vlasenko
12ca080a1c
*: eliminate more aliasing warnings
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-04 18:41:18 +01:00
Denys Vlasenko
98a4c7cf3d
*: suppress ~60% of "aliased warnings" on gcc-4.4.1
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-04 15:00:15 +01:00
Denys Vlasenko
baad6d889d
mkfs_ext2: fix bad comment. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-02 12:54:19 +01:00
Denys Vlasenko
40e7d25aca
mkXXXX: unify [KBYTES] parameter handling (added it to mkswap)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-02-01 23:48:27 +01:00
Denys Vlasenko
083e172641
style fixes, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-28 12:30:24 +01:00
Denys Vlasenko
6b9f163353
*: style fixes. no code changes (verified with objdump)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-28 02:24:24 +01:00
Denys Vlasenko
3581c62515
whitespace fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-25 13:39:24 +01:00
Denys Vlasenko
6b01b71e83
randomconfig fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-24 22:52:21 +01:00
Michael Grzeschik
24dc9ab2f4
fbset: add possibility to set timing and sync polarity
...
function old new delta
copy_changed_values - 48 +48
copy_if_gt0 - 27 +27
fbset_main 1268 1235 -33
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 0/1 up/down: 75/-33) Total: 42 bytes
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-23 03:40:28 +01:00
Denys Vlasenko
cb23d93c68
*: add/remove safe_, it seems we had a few incorrect uses
...
function old new delta
chat_main 1359 1361 +2
microcom_main 712 713 +1
ifplugd_main 1109 1110 +1
arpping 465 466 +1
acpid_main 440 441 +1
script_main 1069 1067 -2
cgi_io_loop_and_exit 594 591 -3
telnet_main 1475 1469 -6
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/3 up/down: 6/-11) Total: -5 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-12 12:29:55 +01:00
Denys Vlasenko
dc698bb038
*: make it easier to distinquish "struct tm", pointer to one, etc
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-09 19:10:49 +01:00
Denys Vlasenko
053ffeeeda
hwclock: tiny tweak in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-07 10:52:20 +01:00
Denys Vlasenko
0c58cc706f
hwclock: make commented-out code compilable
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-07 10:36:41 +01:00
Denys Vlasenko
6959f6bc23
hwclock: disable time diff code; ntpd -S script: do not wait for completion
...
function old new delta
rtcname 4 - -4
run_script 278 273 -5
hwclock_main 466 439 -27
read_rtc 86 38 -48
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/3 up/down: 0/-84) Total: -84 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-07 08:31:46 +01:00
Denys Vlasenko
5e3b14069e
hwclock: make it report system/rtc clock difference
...
function old new delta
rtc_tm2time - 89 +89
read_rtc 23 86 +63
rtc_read_tm - 49 +49
hwclock_main 428 466 +38
rtcwake_main 453 477 +24
rtc_read_time 142 - -142
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 3/0 up/down: 263/-142) Total: 121 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-06 22:43:39 +01:00
Denys Vlasenko
695fa51c80
hwclock: fix sizeof bug (used it on pointer, not array); make --systohc exact
...
function old new delta
hwclock_main 329 428 +99
rtc_adjtime_is_utc 138 134 -4
edir 365 354 -11
read_rtc 39 23 -16
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 99/-31) Total: 68 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-06 18:16:39 +01:00
Denys Vlasenko
2ec91aead5
*: remove some uses of argc
...
function old new delta
whoami_main 34 37 +3
logname_main 60 63 +3
hostid_main 35 38 +3
ttysize_main 136 135 -1
nmeter_main 673 672 -1
logger_main 387 386 -1
uuencode_main 330 328 -2
ifupdown_main 2125 2123 -2
mesg_main 158 155 -3
free_main 333 330 -3
cal_main 902 899 -3
acpid_main 443 440 -3
ar_main 196 189 -7
find_main 476 467 -9
ifconfig_main 1235 1221 -14
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/12 up/down: 9/-49) Total: -40 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-01-04 14:15:38 +01:00
Denys Vlasenko
cc428147c1
mount: dont include NFS headers if not needed; drop support for Linux <2.2.0
...
function old new delta
nfs_err_stat - 18 +18
nfs_err_errnum - 18 +18
nfs_strerror 56 50 -6
nfsmount 3567 3541 -26
nfs_errtbl 80 - -80
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 0/2 up/down: 36/-112) Total: -76 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-12-16 02:06:56 +01:00
Denys Vlasenko
b7a0e13d1c
mount: fix goof in last commit; clear errno since we use perror_msg later
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-12-15 16:36:14 +01:00
Denys Vlasenko
cb37637b47
switch_root: more clear error messages
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-12-15 01:55:55 +01:00
Denys Vlasenko
4e60f304d4
mount: if we mount //host/xxx, add ip=IPADDR to options
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-12-15 01:28:59 +01:00
Denys Vlasenko
a3aa3e3095
wget: check for close success; fix chunked; do not bother to send QUIT to ftp
...
Also, random fixes to use %u for unsigned quantities. -14 bytes in wget.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-12-11 12:36:10 +01:00
Denys Vlasenko
8656676a21
mount: "already mounted" msg appears only if -v
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-12-10 21:32:28 +01:00
Souf Oued
11a802a0fa
lsusb: new applet. +400 bytes
...
Signed-off-by: Souf Oued <souf_oued@yahoo.fr>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-12-07 01:37:34 +01:00
Souf Oued
982bc7176d
lspci: new applet. +573 bytes
...
Signed-off-by: Souf Oued <souf_oued@yahoo.fr>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-12-05 17:56:25 +01:00
Denys Vlasenko
a7329667b4
mount: prevent second mount -a from mounting everything again
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-12-05 04:25:19 +01:00
Michael Abbott
6b5accbfc1
mount: add support for -O list. +44 bytes
...
Signed-off-by: Michael Abbott <michael@araneidae.co.uk>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-12-04 03:33:07 +01:00
Denys Vlasenko
e992bae6f9
*: remove a few more cases of argc usage. -89 bytes.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-11-28 15:18:53 +01:00
Denys Vlasenko
b2e5fc35eb
ntpd: and real handling for -N, show usage w/o options; trim text
...
function old new delta
ntp_init 317 348 +31
bb_msg_you_must_be_root - 17 +17
xsocket 66 76 +10
changepath 195 194 -1
bb_msg_perm_denied_are_you_root 35 34 -1
send_tree 355 353 -2
count_lines 74 72 -2
must_be_root 17 - -17
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 2/4 up/down: 58/-23) Total: 35 bytes
text data bss dec hexfilename
832873 441 7548 840862 cd49ebusybox_old
832839 441 7548 840828 cd47cbusybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-11-25 14:52:47 +01:00
Denys Vlasenko
102ff76c84
mount: clean up #defines. No code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-11-21 17:14:08 +01:00
Denys Vlasenko
6331cf059c
*: use "can't" instead of "cannot"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-11-13 09:08:27 +01:00
Denys Vlasenko
1612c757d0
mdev: print line# in error messages
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-11-07 03:33:05 +01:00
Denys Vlasenko
245a4f84be
big endian warning fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-11-07 01:31:14 +01:00
Denys Vlasenko
692bcff577
mkfs_vfat: fixes for large image cases
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-11-03 14:12:04 +01:00
Denys Vlasenko
68c67469aa
mkswap: add -L LABEL option. closes bug 689.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-11-03 05:51:20 +01:00
Denys Vlasenko
8131eea3dc
*: introduce and use ffulsh_all()
...
function old new delta
buffer_fill_and_print 179 196 +17
fflush_all - 9 +9
spawn 87 92 +5
rtcwake_main 455 453 -2
...
alarm_intr 93 84 -9
readcmd 1072 1062 -10
bb_ask 345 333 -12
more_main 845 832 -13
flush_stdout_stderr 42 23 -19
xfflush_stdout 27 - -27
flush_stderr 30 - -30
------------------------------------------------------------------------------
(add/remove: 1/2 grow/shrink: 2/50 up/down: 31/-397) Total: -366 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-11-02 14:19:51 +01:00
Vladimir Dronnikov
0d8ea64af6
mkfs.reiser: new applet. needs much polishing
...
Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-11-02 10:49:02 +01:00
Denys Vlasenko
d784b65be7
btrfs.c: check first two superblocks, for additional robustness
...
function old new delta
volume_id_probe_btrfs 94 142 +48
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-11-02 00:12:35 +01:00
Denys Vlasenko
893009644f
volume_id: add FAST_FUNC where appropriate
...
function old new delta
volume_id_probe_iso9660 324 327 +3
volume_id_probe_vfat 902 903 +1
volume_id_probe_udf 576 577 +1
volume_id_probe_ntfs 314 315 +1
uuidcache_check_device 292 291 -1
volume_id_probe_xfs 87 85 -2
volume_id_probe_sysv 165 163 -2
volume_id_probe_romfs 89 87 -2
volume_id_probe_reiserfs 236 234 -2
volume_id_probe_ocfs2 96 94 -2
volume_id_probe_luks 78 76 -2
volume_id_probe_linux_swap 165 163 -2
volume_id_probe_jfs 96 94 -2
volume_id_probe_hfs_hfsplus 795 793 -2
volume_id_probe_ext 82 80 -2
volume_id_probe_cramfs 59 57 -2
volume_id_probe_btrfs 96 94 -2
free_volume_id 36 31 -5
volume_id_probe_linux_raid 127 119 -8
volume_id_probe_all 152 138 -14
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/16 up/down: 6/-52) Total: -46 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-11-01 23:07:18 +01:00
Vladimir Dronnikov
662e8b79d0
volume_id: add support for btrfs
...
function old new delta
volume_id_probe_btrfs - 96 +96
fs2 48 52 +4
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/0 up/down: 100/0) Total: 100 bytes
Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-11-01 23:05:09 +01:00
Denys Vlasenko
e62a2463ec
mdev: do not die on mknod errors
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-11-01 21:51:31 +01:00
Denys Vlasenko
85ca327529
*: random code shrink
...
function old new delta
alarm_handler 50 46 -4
ask 228 211 -17
rtcwake_main 474 455 -19
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-29 13:27:31 +01:00
Bernhard Reutner-Fischer
b04f058e76
mdev: adjust error message
...
function old new delta
.rodata 126715 126706 -9
(reusing common error string)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-27 17:13:45 +01:00
Bernhard Reutner-Fischer
933993a461
mdev: handle string modes
...
parse ugoa=rwxXst via bb_parse_mode (+5b)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-27 17:13:12 +01:00
Bernhard Reutner-Fischer
6531f0923b
mdev: tiny shrinkage by index_in_strings
...
text data bss dec hex filename
2633 0 0 2633 a49 util-linux/mdev.o.old
2624 0 0 2624 a40 util-linux/mdev.o
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-27 17:12:26 +01:00
Denys Vlasenko
4b8b37f981
mkfs_ext2: fix compile error
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-24 17:20:29 +02:00
Denys Vlasenko
f2cbb03a37
*: optimize most of isXXXXX() macros
...
text data bss dec hex filename
824164 453 6812 831429 cafc5 busybox_old
823730 453 6812 830995 cae13 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-23 03:16:08 +02:00
Denys Vlasenko
46e364dbfe
mkfs_ext2: code shrink
...
function old new delta
mkfs_ext2_main 2505 2492 -13
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-22 12:41:44 +02:00
Denys Vlasenko
09bbb2892d
mkfs_ext2: fix a bug where we don't fully respect -n on files
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-22 12:27:10 +02:00
Denys Vlasenko
149a32a19b
mkfs_ext2: use compatible inode sizes; add -I <inodesize>. (by Vladimir)
...
function old new delta
mkfs_ext2_main 2385 2495 +110
packed_usage 26400 26447 +47
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 157/0) Total: 157 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-22 12:12:17 +02:00
Denys Vlasenko
3945bc1534
tune2fs: new applet by Vladimir. Only supports -L LABEL
...
function old new delta
tune2fs_main - 165 +165
packed_usage 26692 26702 +10
applet_names 2148 2156 +8
applet_main 1264 1268 +4
applet_nameofs 632 634 +2
applet_install_loc 158 159 +1
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 5/0 up/down: 190/0) Total: 190 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-22 00:55:55 +02:00
Denys Vlasenko
481ca9604d
mkfs_ext2: 1.41.9 compat
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-22 00:38:52 +02:00
Denys Vlasenko
010fb00708
mkfs_ext2: make sure we extend the image to requested size
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-21 23:23:55 +02:00
Denys Vlasenko
eaba48467c
cosmetics in mkfs_ext2.txt
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-21 14:25:21 +02:00
Denys Vlasenko
1d6e4473fa
mkfs_ext2_test: disable incomtatible behavior in standard mke2fs
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-21 14:14:51 +02:00