aboutsummaryrefslogtreecommitdiff
path: root/util-linux (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* blkid: make help text show [BLOCKDEV]...Denys Vlasenko2011-12-061-3/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* volume_id/get_devname: trivial code shrinkDenys Vlasenko2011-12-061-22/+19
| | | | | | | | | | | | 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>
* mount: resolve hosts to IPs in nfs mountsDenys Vlasenko2011-11-101-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: make FEATURE_MOUNT_NFS not needed for Linux 2.6.23+Denys Vlasenko2011-11-102-9/+49
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: support -o noaclDave Love2011-11-101-22/+30
| | | | | Signed-off-by: Dave Love <fx@gnu.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: handle list of comma-separated fs types in -t optionKarol Lewandowski2011-11-031-3/+12
| | | | | | | | | 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>
* mount: free commented /etc/filesystems lines when we read itDenys Vlasenko2011-11-031-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove duplicate include <sys/swap.h>Denys Vlasenko2011-10-221-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: trim overlong comments. No code changesDenys Vlasenko2011-09-221-30/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: don't reparse rules on -sDenys Vlasenko2011-09-221-217/+341
| | | | | | | | | | | | 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>
* add INIT_G()'s. No code changes.Denys Vlasenko2011-09-213-0/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: expand --help so that it's actually useful.Denys Vlasenko2011-09-193-67/+80
| | | | | | | function old new delta packed_usage 28634 28822 +188 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* losetup: implement -r option. Closes 4033.Denys Vlasenko2011-09-122-8/+10
| | | | | | | | | | 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>
* swapoff: dont pass "p" in opt_complementaryDenys Vlasenko2011-08-131-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixesDenys Vlasenko2011-08-091-24/+32
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fdisk: reinstate a short sleep between sync() and ioctl(BLKRRPART)Denys Vlasenko2011-07-131-25/+18
| | | | | | | | | 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>
* more tweak for bionicDenys Vlasenko2011-07-082-0/+26
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hwclock: use locale-specific date output formatDenys Vlasenko2011-07-081-10/+16
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* typo fixesDan Fandrich2011-07-081-1/+1
| | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hwclock: better help textDenys Vlasenko2011-07-041-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fbset: apply modelines. Closes 3823Denys Vlasenko2011-06-061-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: remove "Options:" string from help textsDenys Vlasenko2011-06-0523-30/+6
| | | | | | | function old new delta packed_usage 28706 28623 -83 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* replace nonstandard unsigned typedefsDan Fandrich2011-06-031-7/+7
| | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix !ENABLE_FEATURE_GETOPT_LONG build. Closes 3775Denys Vlasenko2011-05-291-2/+4
| | | | | | | | | 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>
* simplify parsing of /etc/busybox.confDenys Vlasenko2011-05-161-1/+1
| | | | | | | function old new delta parse_config_file 799 667 -132 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fbset: abort on unknown options. closes 3121Denys Vlasenko2011-05-091-5/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: nonblock_safe_read->nonblock_immune_read, remove unused param of ↵Denys Vlasenko2011-05-081-1/+1
| | | | | | xmalloc_reads Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: for NFS use tcp per default rather than udpBernhard Reutner-Fischer2011-05-041-1/+1
| | | | | | | | 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>
* fdisk: backport disk check from util-linuxLauri Kasanen2011-04-301-7/+28
| | | | | | | | | | | | | 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>
* make FDISK_SUPPORT_LARGE_DISKS redundant when LFS=yDenys Vlasenko2011-04-161-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move remaining help text from include/usage.src.hPere Orga2011-04-1136-1/+589
| | | | | Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: add --rbind option supportRoman Borisov2011-03-261-0/+2
| | | | | Signed-off-by: Roman Borisov <ext-roman.borisov@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: rprivate option fixRoman Borisov2011-03-261-1/+1
| | | | | | | 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>
* use user's shell instead of hardwired "/bin/sh" (android needs this)Denys Vlasenko2011-03-081-4/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* more: fix tabs handlingDenys Vlasenko2011-03-071-3/+6
| | | | | | | function old new delta more_main 837 829 -8 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: strip multiple trailing slashes, not just oneDenys Vlasenko2011-02-281-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: update /etc/mtab properly on mount --moveRoman Borisov2011-02-281-9/+67
| | | | | Signed-off-by: Roman Borisov <ext-roman.borisov@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Replace "depends on PLATFORM_LINUX" with "select PLATFORM_LINUX"Denys Vlasenko2011-02-261-27/+27
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: ignore unknown mount options when remounting NFS mountsPeter Korsgaard2011-02-261-0/+3
| | | | | | | | | | | | | | | 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>
* mount: fix wrong long option namessRoman Borisov2011-02-261-8/+8
| | | | | | | | | | 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>
* blockdev: add --getsz to replace --getsizeDan Fandrich2011-02-201-6/+18
| | | | | | | | | | | | 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>
* reverted LINHIB0001 swap signature additionDenys Vlasenko2011-02-141-1/+0
| | | | | | | | see: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/683605 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix TMOUT not restoring tty attributesDenys Vlasenko2011-02-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 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>
* whitespace fixesDenys Vlasenko2011-02-031-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fdisk_osf: simplify ifdef (incidentally, adds support for Microblaze)Denys Vlasenko2011-01-311-9/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hwclock: implement --systzDavide Cavalca2011-01-221-5/+59
| | | | | | | | | | | | 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>
* mass removal of underscores from _BB_DIR_foo and _BB_SUID_fooDenys Vlasenko2011-01-182-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* disable automatic selection of FEATURE_SUID; improve its help textDenys Vlasenko2011-01-181-2/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkswap: selinux build fixDenys Vlasenko2011-01-051-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* blkid: optional support for TYPE="fstype"Denys Vlasenko2010-12-3020-37/+83
| | | | | | Adapted from patch created by T4ndeta <t4ndeta@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>