summaryrefslogtreecommitdiff
path: root/util-linux (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* umount: do not try to close FILE* which is NULL.Denis Vlasenko2006-09-141-11/+13
|
* mount: -o remount should not add lines to /etc/mtabDenis Vlasenko2006-09-141-1/+1
|
* mount: move code from nfsmount.c into mount.cDenis Vlasenko2006-09-143-1028/+1018
|
* mount: fix mtab support (but it is still rather buggy)Denis Vlasenko2006-09-141-13/+27
|
* More code from kernel developers, and therefore licensed under GPLv2 only.Rob Landley2006-09-141-12/+4
| | | | | | | Clarify the license boilerplate. On an unrelated note, this could use busyboxification. check_mount() looks reusable and ask() is generic...
* - fix copy'n paste errors that got introduced when switching to the shorter ↵Bernhard Reutner-Fischer2006-09-131-1/+1
| | | | | | boilerplate. No object code changes.
* Remove pointless "const". Bloatcheck says 0 bytes difference.Rob Landley2006-09-121-1/+1
|
* nfsmount: sanitize it. It had a rather peculiar idea of implementing "bg"Denis Vlasenko2006-09-112-187/+221
| | | | | | | | | option - it was going to return a special flag back to caller and expecting caller to call it again with special parameter! Also caller was charged with calling mount() syscall... mount: mtab support was non-functional. Enabling it revealed serious bug which is not fixed yet.
* - convert a few xopen3(,,0) into xopen(,). Also peruse the fact that xopen ↵Bernhard Reutner-Fischer2006-09-111-2/+2
| | | | | | | | | | | | | | | | | | | | defaults to 0777 on it's own, so we don't need to xopen3(,,0777). Saves a few bytes: $ size busybox.old busybox text data bss dec hex filename 839676 8780 243592 1092048 10a9d0 busybox.old 839660 8780 243592 1092032 10a9c0 busybox $ make CC=gcc-4.2-HEAD bloatcheck function old new delta static.vconfig_main 281 279 -2 static.rx_main 1076 1074 -2 static.mt_main 294 292 -2 static.gzip_main 753 751 -2 static.mkfs_minix_main 4034 4030 -4 static.unzip_main 1771 1766 -5 static.crontab_main 1513 1507 -6 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/7 up/down: 0/-23) Total: -23 bytes
* nfsmount: remove some really old code (for kernels 1.x!) + small cleanups.Denis Vlasenko2006-09-101-60/+63
|
* nfsmount: delete nfsmount.hDenis Vlasenko2006-09-101-242/+0
|
* nfsmount: nfsmount.h merged into nfsmount.cDenis Vlasenko2006-09-103-168/+260
|
* nfsmount: style fixDenis Vlasenko2006-09-101-104/+103
|
* ipcs: silly trick with strings. saves ~200 bytes.Denis Vlasenko2006-09-102-40/+39
|
* A quick cleanup pass of some low-hanging mess.Rob Landley2006-09-081-115/+26
|
* removed a lot of trailing \n in bb_msg() calls. It is addedDenis Vlasenko2006-09-061-1/+1
| | | | | automatically by function itself.
* Vladimir Dronnikov (ybrnj80 at yandex dot ru) pointed out that my cleanup ofRob Landley2006-09-051-3/+3
| | | | his code introduced a bug (an extra backslash in the CIFS mount string).
* Thinko.Rob Landley2006-09-041-3/+1
|
* Vladimir Dronnikov also submitted a CIFS support patch to mount, which IRob Landley2006-09-012-8/+55
| | | | | heavily reworked here and probably broke. Tomorrow I need to set up a copy of samba to test against. (This compiles, I make no promises beyond that.)
* Svn 16007 broke the build under gcc 4.0.3. This fixes up some of the damageRob Landley2006-08-293-18/+18
| | | | | (the e2fsprogs directory is too twisty and evil to easily fix, but I plan to rewrite it anyway so I'll just bump that up in priority a bit).
* - pull from busybox_scratch: r15829:15850Bernhard Reutner-Fischer2006-08-282-437/+363
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Various fixes, cleanups and shrinkage: saves 952 Bytes: text data bss dec hex filename 1087742 15853 790632 1894227 1ce753 ../busybox/busybox.old 1086790 15853 790632 1893275 1ce39b busybox via: # scripts/bloat-o-meter ../busybox/busybox_unstripped.old busybox_unstripped function old new delta ipcrm_main 756 822 +66 getval - 61 +61 maybe_set_utc - 40 +40 udhcpc_main 2896 2912 +16 md5_hash_block 428 437 +9 opt 8 16 +8 qgravechar 106 110 +4 make_bitmap 292 295 +3 inflate_unzip 2056 2059 +3 add_partition 1412 1414 +2 __parsespent 156 158 +2 qrealloc 41 42 +1 format - 1 +1 catv_main 313 314 +1 watch_main 293 292 -1 varunset 81 80 -1 part 1 - -1 check_if_skip 837 836 -1 start_stop_daemon_main 840 837 -3 create_lost_and_found 175 172 -3 supress_non_delimited_lines 4 - -4 static.l 4 - -4 static.c 5 1 -4 bsd_sum_file 237 233 -4 eval2 338 332 -6 arithmetic_common 166 158 -8 cmpfunc 22 5 -17 cksum_main 294 275 -19 cmp_main 465 439 -26 dd_main 1535 1508 -27 rmmod_main 376 333 -43 cut_file 727 644 -83 ipcs_main 3809 3721 -88 cut_main 722 614 -108 date_main 1443 1263 -180 remove_ids 222 - -222 ------------------------------------------------------------------------------ (add/remove: 3/4 grow/shrink: 11/18 up/down: 217/-853) Total: -636 bytes
* The kernel can't handle umount /dev/hdc, we have to do it through mtab,Rob Landley2006-08-171-8/+14
| | | | | | | | | | | | | | except that we still have to work when there is no mtab. Oh, and while we're at it, take advantage of the fact that modern processors avoid branches via conditional assignment where possible. ("x = a ? b : c;" turns into "x = c; if (a) x = b;" because that way there's no branch to potentially mispredict and thus never a bubble in the pipeline. The if(a) turns into an assembly test followed by a conditional assignment (rather than a conditional jump).) So since the compiler is going to do that _anyway_, we might as well take advantage of it to produce a slightly smaller binary. So there.
* Patch from Chris Steel to fix mdev deleting device nodes.Rob Landley2006-08-101-7/+9
|
* Vladimir Dronnikov convinced me to twiddle the semantics of the new sharedRob Landley2006-08-091-5/+14
| | | | | subtree stuff to look more like http://lwn.net/Articles/159077/ thinks they should.
* Fix a typo (|| instead of |) and remove two comments about a problem fixedRob Landley2006-08-081-3/+2
| | | | in the previous patch.
* Add shared subtree support, suggested by Vladimir Dronnikov. Also break out aRob Landley2006-08-082-51/+75
| | | | | | few new (unfinished) config options, which I intend to make hidden (but enabled) when CONFIG_NITPICK is disabled. Getting the .config infrastructure to do that is non-obvious, it seems...
* Using lstat() instead of stat() means that attempting to loopback mountRob Landley2006-08-081-1/+1
| | | | a symlink doesn't work.
* Make a warning go away on 64-bit systems.Rob Landley2006-08-061-2/+2
|
* There are a number of reasons for reinventing printf(). Writing status toRob Landley2006-08-041-18/+8
| | | | stdout is not one of them.
* Remove xcalloc() and convert its callers to xzalloc(). About half of themRob Landley2006-08-031-2/+2
| | | | | were using "1" as one of the arguments anyway, and as for the rest a multiply and a push isn't noticeably bigger than pushing two arguments on the stack.
* Fix umount so loop device disassociation hopefully doesn't screw up errno onRob Landley2006-08-031-16/+12
| | | | | | a failed mount. And while I'm at it, legacy mdev removal was only being done in the _failure_ case? That can't be right. Plus minor header cleanups and an option parsing tweak.
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-0313-137/+40
| | | | | | | | | | things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
* Add back in non-ifdef version of FEATURE_PRETTY_PRINT, and get the attributionRob Landley2006-07-272-3/+40
| | | | right this time.
* There's no excuse for adding new #ifdefs to the code like that. None at all.Rob Landley2006-07-272-39/+3
|
* allow people to display dmesg output without syslog levelsMike Frysinger2006-07-272-3/+39
|
* de-cuddle if( to if (Mike Frysinger2006-07-271-1/+1
|
* New mkswap. Small and simple. Might even work. :)Rob Landley2006-07-161-380/+29
|
* Fix three embarassing thinkos in the new dmesg.c:Rob Landley2006-07-061-3/+3
| | | | | | 1) the c argument shouldn't have had a : after that, dunno how that got there. 2) the xgetlarg for level was using size 3) because xgetlarg's error message _SUCKS_ (it does a show_usage() rather than giving any specific info about the range that was violated) I dropped the range down to 2 bytes. (Which works fine, I dunno why we were nit-picking about that...)
* Standardize on the vi editing directives being on the first line."Robert P. J. Day"2006-07-0211-3/+13
|
* Remove "#if 0" content."Robert P. J. Day"2006-07-012-32/+0
|
* Remove all usage of the "register" storage class specifier."Robert P. J. Day"2006-07-011-1/+1
|
* fix from Kolbjørn Barmen for building for m68k targetsMike Frysinger2006-06-301-1/+1
|
* Upgrade mdev to allow commands to be run on create/delete.Rob Landley2006-06-262-97/+116
| | | | | | | | | | | Both Jason Schoon and Giuseppe Ciotta deserve credit for this, I used elements of both.  It's been upgraded so that you can specify that a given command should run at create, at delete, or at both using different special characters (@, $, and * respectively).  It uses the system() method of running command lines which means you can use environment variables on the command line (it sets $MDEV to the name of the current device being created/deleted, which is useful if you matched it via regex), and the documentation warns that you need a /bin/sh to make that work, so you probably want to pick a default shell.
* Various cleanups I made while going through Erik Hovland's patch submissions,Rob Landley2006-06-251-1/+1
| | | | some of which are even from him. :)
* Patch from Paul Fox to improve mount's error handling behavior, which I beatRob Landley2006-06-211-21/+16
| | | | on a bit.
* Andre (armcc2200@yahoo) patched a bug where successful mounts could sometimesRob Landley2006-06-211-1/+2
| | | | produce an error, due to a missing rc assignment.
* Make some 64 bit warnings go away on x86-64.Rob Landley2006-06-192-11/+3
|
* skip_whitespace() shouldn't claim its return value is const, it doesn't knowRob Landley2006-06-181-46/+3
| | | | that and callers wind up typecasting it back.
* Remove warnings caused by #include <sys/mount.h> in platform.h. ApparentlyRob Landley2006-06-164-19/+1
| | | | we redefine a lot of stuff from standard header files...
* Patch from Yann Morin to put BLKGETSIZE64 in platform.h had rather a lot ofRob Landley2006-06-156-45/+6
| | | | | | fallout due to the #include <sys/mount.h>. Removed that #include from various applets and fixed up those that were unhappy when that #include was made because they'd block copied stuff out of it. (Sigh.)