aboutsummaryrefslogtreecommitdiff
path: root/util-linux (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* hexdump: don't unconditionally limit the usable address rangeDenys Vlasenko2013-03-271-1/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_minix: use get_volume_size_in_bytes instead of local versionDenys Vlasenko2013-03-181-63/+14
| | | | | | | | | | | | Hopefully this also closes 4730 function old new delta valid_offset 55 - -55 mkfs_minix_main 2925 2674 -251 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-306) Total: -306 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: fix build failureDenys Vlasenko2013-03-171-2/+1
| | | | | | The error was "error: 'struct globals' has no member named 'parser'" Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* losetup: fix util-linux compatibilityMandeep Singh Baines2013-03-121-51/+65
| | | | | | | | | | | Added -a support. Also made sure -f works as follows: losetup [-r] [-o offset] {-f|loopdev} file Removed support for 'losetup -r' with no arguments. Signed-off-by: Mandeep Singh Baines <msb@chromium.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* mdev: improve $SEQ handling; improve debug loggingDenys Vlasenko2013-02-271-88/+177
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sequential run of concurrent mdev's was too simplistic: they waited for /dev/mdev.seq to match. This could sometimes cause cumulative loss of time on the order of a second. Added SIGCHLD signaling from exiting mdev to all other mdev's. Added debugging required to see that code actually works as intended. Example of /dev/mdev.log (with "woken up" elevated from dbg lvl 3 to 2): mdev[1023]: first seq written ^^^^ seq, not pid mdev[1023]: 35.022395 ACTION:add SUBSYSTEM:module DEVNAME:(null) DEVPATH:/module/lib80211 mdev[1023]: rule matched, line -1 ^^^^^^^ means "default rule" mdev[1023]: 35.022676 exiting ^^^^^^^^^ second,usec timestamp mdev[1024]: 35.069691 ACTION:add SUBSYSTEM:vc DEVNAME:vcs9 DEVPATH:/devices/virtual/vc/vcs9 mdev[1024]: dev 7,9 mdev[1025]: 35.069889 waiting for '1024' mdev[1026]: 35.069946 waiting for '1024' mdev[1027]: 35.070151 waiting for '1024' mdev[1024]: rule matched, line -1 mdev[1024]: mknod vcs9 (7,9) 20660 0:0 mdev[1024]: 35.070346 exiting mdev[1025]: woken up mdev[1026]: woken up mdev[1025]: 35.071213 ACTION:add SUBSYSTEM:vc DEVNAME:vcsa9 DEVPATH:/devices/virtual/vc/vcsa9 ^^^^^^^^^ took only a millisecond to start running after prev mdev exited mdev[1025]: dev 7,137 mdev[1027]: woken up mdev[1025]: rule matched, line -1 mdev[1025]: mknod vcsa9 (7,137) 20660 0:0 mdev[1025]: 35.072109 exiting function old new delta mdev_main 849 1372 +523 curtime - 59 +59 dirAction 87 134 +47 static.ts - 8 +8 keywords 19 12 -7 make_device 2189 2119 -70 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: add environment variable matchDenys Vlasenko2013-02-261-6/+71
| | | | | | | | | | | | | function old new delta make_device 1998 2189 +191 clean_up_cur_rule 61 96 +35 dirAction 75 87 +12 mdev_main 838 849 +11 packed_usage 29272 29273 +1 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/0 up/down: 250/0) Total: 250 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fdisk_sun: fix partition alignmentAaro Koskinen2013-02-111-3/+6
| | | | | | | | | When the display unit is sectors, the partition alignment will convert the partition start to a wrong unit (it should always be in sectors). Fix this. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fdisk_sun: fix corrupted partition data with blank diskAaro Koskinen2013-02-111-0/+1
| | | | | | | | | | After creating Sun disk label for the first time for a blank disk, the partition table appears corrupted because current_label_type will never get set to a proper type. Fix this by calling check_sun_label() after BusyBox has created the label. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: chdir back to /dev after trying to read firmwareDenys Vlasenko2013-02-041-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: extend debug logging outputDenys Vlasenko2013-01-301-1/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getopt: improve help text; code shrinkDenys Vlasenko2013-01-241-27/+32
| | | | | | | | function old new delta generate_output 356 351 -5 packed_usage 29271 29257 -14 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: whitespace fix. no code changesDenys Vlasenko2013-01-221-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: fix mode of dir1 in =dir1/dir2/file ruleDenys Vlasenko2013-01-211-2/+14
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: fix -o user=foo mishandling, fix unc= generation, add prefixpath=Bernhard Reutner-Fischer2013-01-171-17/+35
| | | | | | | | | | | | | function old new delta singlemount 1019 1049 +30 packed_usage 29252 29257 +5 parse_mount_options 230 232 +2 mount_option_str 337 338 +1 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/0 up/down: 38/0) Total: 38 bytes Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: add unc option to CIFS mount (needed for Linux 3.4+)Martin Santesson2013-01-161-1/+15
| | | | | | | | unc option for CIFS mount is mandatory after CIFS option parsing was rewritten in Linux 3.4 Signed-off-by: Martin Santesson <martinsn@axis.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace cleanup. no code changesDenys Vlasenko2013-01-149-45/+43
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Remove redundant 'config FEATURE_VOLUMEID_SQUASHFS'Denys Vlasenko2013-01-141-10/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* volume_id: add squashfs detectionSven-Göran Bergh2013-01-144-0/+74
| | | | | | | | | function old new delta volume_id_probe_squashfs - 74 +74 fs1 12 16 +4 Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace fixes. no code changesDenys Vlasenko2013-01-1410-172/+172
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* volume_id: uuid_format small code shrinkSven-Göran Bergh2013-01-142-20/+9
| | | | | | | | function old new delta volume_id_set_uuid 318 300 -18 Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* volume_id: display hfs[+] 128-bit UUID properlySven-Göran Bergh2013-01-143-9/+23
| | | | | Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* blkid: add type display for hfsplusSven-Göran Bergh2013-01-141-1/+1
| | | | | Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dmesg: handle multi-char log levelsPeter Korsgaard2013-01-051-7/+6
| | | | | | | | | | | | | | | | Since Linux 3.5 (7ff9554bb5: printk: convert byte-buffer to variable-length record buffer), klog buffer can now contain log lines with multi-char loglevel indicators (<[0-9]+>) - So we can no longer just skip 3 bytes. Instead skip past the terminating '>' like util-linux does. function old new delta dmesg_main 266 280 +13 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/0 up/down: 13/0) Total: 13 bytes Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* CONFIG_PID_FILE_PATH: new configuration option for pidfile pathsAnthony G. Basile2012-12-191-1/+1
| | | | | | | | | | | | | | | We set a default path for the directory where pidfiles are create when FEATURE_PIDFILE is selected. The default has no effect on applets which must specify a pidfile path on the command line to run, and it can be overridden by applets which optionally allow the user to specify the pidfile path. We also add pidfile write/remove support for klogd, ntpd and watchdog. For syslogd, we add a missing remove_pidfile() for better cleanup on daemon exit. Signed-off-by: Anthony G. Basile <blueness@gentoo.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* volume_id: add exFAT detectionS-G Bergh2012-11-135-0/+145
| | | | | | | | function old new delta volume_id_probe_exfat - 294 +294 Signed-off-by: S-G Bergh <sgb@systemasis.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* blkid: show filesystem when both label and UUID are missing, but type is knownS-G Bergh2012-11-051-1/+5
| | | | | Signed-off-by: S-G Bergh <sgb@systemasis.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* blkid: add support for nilfs2Sven-Göran Bergh2012-09-025-0/+109
| | | | | | | | | function old new delta volume_id_probe_nilfs - 99 +99 fs2 52 56 +4 Signed-off-by: Sven-Göran Bergh <svengbergh-busybox@yahoo.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* volume_id: code shrinkDenys Vlasenko2012-09-021-15/+19
| | | | | | | function old new delta volume_id_set_unicode16 200 173 -27 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* blkid: add type display for btrfsSven-Göran Bergh2012-09-021-0/+1
| | | | | Signed-off-by: Sven-Göran Bergh <svengbergh-busybox@yahoo.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fbset: respect rgba configuration lines in fb.modesLinus Walleij2012-07-071-1/+25
| | | | | | | | | | | | | | | | | | | | The fbset utility would not respect "rgba" config entries in the fb.modes file such as this (for the ARM Integrator/CP): mode "640x480-60-clcd" # D: 25.175 MHz, H: 31.469 kHz, V: 59.94 Hz geometry 640 480 640 480 16 timings 39722 48 16 33 10 96 2 rgba 5/10,5/5,5/0,1/15 endmode This is important especially for this ARGB5551 device which is hopeless to configure otherwise. I noticed this lacking feature after the TI "fbtest" program managed to set up the the colormode correctly. Signed-off-by: Linus Walleij <triad@df.lth.se> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* acpid: add missing lid switch definitionEric Martin2012-07-071-0/+1
| | | | | | | | This patch adds a missing LID0 switch definition. Without it, closing the notebook lid is not detected by acpid. Signed-off-by: Eric Martin <eric.martin@gmx.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: support strictatime option. Closes 5240Denys Vlasenko2012-06-261-1/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: do not pass "comment=ANYTHING" option to kernel. Closes 5240Denys Vlasenko2012-06-221-2/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: undo recent breakage when mount flags were made unsignedDenys Vlasenko2012-06-221-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: fix the wrongly stored fs creation timeDenys Vlasenko2012-06-211-7/+4
| | | | | | This bug made our ext2 images non-mountable by ext4 driver. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: set up RO loop device if mount -o ro. Closes 4784Denys Vlasenko2012-06-211-14/+15
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* volume_id/ext: use common bb_e2fs_defs.h for ext2/3/4 constants and structsDenys Vlasenko2012-06-121-67/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* rdate: code shrinkDenys Vlasenko2012-06-111-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* rdate: code shrinkDenys Vlasenko2012-06-111-11/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: tell kernel that we didn't find the firmwareChristoph Lohmann2012-05-191-17/+24
| | | | | | | | function old new delta mdev_main 797 801 +4 Signed-off-by: Christoph Lohmann <20h@r-36.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busyboxDenys Vlasenko2012-05-191-37/+14
|\
| * mdev: remove undocumented subsystem/devname matching hackDenys Vlasenko2012-05-181-29/+2
| | | | | | | | | | | | | | It was colliding with matching of devnames with slashes. We need a more generic way to examine env.vars in rules anyway. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * mdev: when found, print major,minor into mdev.logDenys Vlasenko2012-05-181-8/+12
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | tweak help textDenys Vlasenko2012-05-181-2/+2
|/ | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: add support for $DEVNAME and /dev/mdev.log debug aidDenys Vlasenko2012-05-181-20/+147
| | | | | | | | | | | | | | | function old new delta make_device 1843 2083 +240 mdev_main 712 804 +92 packed_usage 29236 29251 +15 keywords 288 19 -269 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/1 up/down: 347/-269) Total: 78 bytes text data bss dec hex filename 887506 497 7584 895587 daa63 busybox_old 887982 497 7584 896063 dac3f busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* volume_id/ext: detect ext4 tooDenys Vlasenko2012-05-181-4/+48
| | | | | | | | function old new delta volume_id_probe_ext 108 132 +24 Signed-off-by: Dees Troy<dees_troy@teamw.in> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: fix mode of creatred node if config file support is not configuredDenys Vlasenko2012-04-211-3/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace fixesDenys Vlasenko2012-04-201-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hwclock: fix wrong comparison of time value (when it will overlow int)Denys Vlasenko2012-04-171-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Drop include/bb_linux_ext2_fs.h, use existing e2fsprogs/e2fs_defs.hDenys Vlasenko2012-04-171-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>