aboutsummaryrefslogtreecommitdiff
path: root/util-linux (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* re-order a little for alphabeticalMike Frysinger2005-09-241-14/+14
|
* Tito switched option parsing over to switch umount over to bb_getopt_ulflags().Rob Landley2005-09-241-27/+31
|
* use the shorter license headerMike Frysinger2005-09-241-14/+1
|
* use brief license lineMike Frysinger2005-09-241-15/+2
|
* Reduce exported from ipcs applet"Vladimir N. Oleynik"2005-09-221-6/+6
|
* accept unlimited number of swap arguments like the real swap{on,off} and ↵Mike Frysinger2005-09-161-8/+11
| | | | shrink do_em_all a little
* Cleanup patch from Tito.Rob Landley2005-09-141-12/+9
|
* whitespace/syntax cleanups, dont mind me :pMike Frysinger2005-09-131-36/+22
|
* Cleanup patch from Tito.Rob Landley2005-09-131-36/+11
|
* Tito sent in a few patches converting instances of CONFIG_FEATURE_CLEAN_UP toRob Landley2005-09-083-13/+13
| | | | ENABLE_FEATURE_CLEAN_UP.
* 1) bb_opt_complementaly -> bb_opt_complementally"Vladimir N. Oleynik"2005-09-051-5/+1
| | | | | 2) better support long options 3) new flag '!' for bb_opt_complementally: produce bb_show_usage() if BB_GETOPT_ERROR internally
* Fix the warnings, and fix the following two obvious segfaults:Rob Landley2005-09-051-10/+7
| | | | | | | | | | | ./busybox getopt -n one -n two woot ./busybox getopt -o one -o two woot This entire applet is still an enormous pile of garbage, which I can't clean up because I really have no idea what it's for. (Both "man getopt" and trying it out on the command line a bit fail to enlighten me. Reading the code, the fact half of it seems to be special cases for bash vs tcsh does not fill me with confidence.)
* Amir Shalem found some bugs in the new mount code; unknown options didn't getRob Landley2005-08-301-2/+4
| | | | | | added to the list, and my assumption that nfsmount() actually called mount() was incorrect (and I coded it wrong anyway; I hate having to touch codepaths I can't personally test).
* When compiling with FEATURE_MTAB_SUPPORT disabled, the call to erase_mtab()Rob Landley2005-08-231-1/+3
| | | | | | | | | | | | | can never be made because useMtab is initialized to 0, and all the other assignments of that variable assign 0 to it. Any compiler that can perform simple constant propogation on local variables will optimize away if statements testing against that variable, thus the call to erase_mtab() will never be made. When compiling for arm using gcc 3.3.3 with FEATURE_MTAB_SUPPORT disabled, the linker complains that it can't find erase_mtab(). The arm optimizer isn't exactly the brightest member of the family, and apparently needs to be hit over the head with a hammer to get its' attention...
* If we goto singlemount, do _not_ try to continue through the loop we jumpedRob Landley2005-08-141-1/+1
| | | | | into. (That means "mount -t ext2 /dev/thingy thingy" would segfault if it failed instead of giving us an error message.)
* Stephane Billiart noticed that the return code of the new mount was horked.Rob Landley2005-08-141-4/+4
| | | | | (Cleaned up the return code path to consistently use numbers so I don't keep confusing EXIT_SUCCESS with TRUE and EXIT_FAILURE with FALSE...)
* Major rewrite of mount, umount, losetup. Untangled lots of code, shrunkRob Landley2005-08-105-717/+447
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | things down a bit, fixed a number of funky corner cases, added support for several new features (things like mount --move, mount --bind, lazy unounts, automatic detection of loop mounts, and so on). Probably broke several other things, but it's fixable. (Bang on it, tell me what doesn't work for you...) Note: you no longer need to say "-o loop". It does that for you when necessary. Still need to add "user mount" support, which involves making mount suid. Not too hard to do under the new infrastructure, just haven't done it yet... The previous code had the following notes, that belong in the version control comments: - * 3/21/1999 Charles P. Wright <cpwright@cpwright.com> - * searches through fstab when -a is passed - * will try mounting stuff with all fses when passed -t auto - * - * 1999-04-17 Dave Cinege...Rewrote -t auto. Fixed ro mtab. - * - * 1999-10-07 Erik Andersen <andersen@codepoet.org>. - * Rewrite of a lot of code. Removed mtab usage (I plan on - * putting it back as a compile-time option some time), - * major adjustments to option parsing, and some serious - * dieting all around. - * - * 1999-11-06 mtab support is back - andersee - * - * 2000-01-12 Ben Collins <bcollins@debian.org>, Borrowed utils-linux's - * mount to add loop support. - * - * 2000-04-30 Dave Cinege <dcinege@psychosis.com> - * Rewrote fstab while loop and lower mount section. Can now do - * single mounts from fstab. Can override fstab options for single - * mount. Common mount_one call for single mounts and 'all'. Fixed - * mtab updating and stale entries. Removed 'remount' default. - *
* use toplevel ARFLAGS and update default ARFLAGS to be quietMike Frysinger2005-07-271-1/+1
|
* applying fix from:Paul Fox2005-07-191-0/+8
| | | | | | 0000068: mount limited to max 8 loop devices (patch provided) (made minor wording change for config help message)
* applets specified as _BB_SUID_ALWAYS in applets.h should also selectEric Andersen2005-06-231-0/+2
| | | | CONFIG_FEATURE_SUID to ensure proper behavior when installed.
* Rodney Radford submitted ipcs and ipcrm (system V IPC stuff). They could useRob Landley2005-06-204-17/+989
| | | | some more work to shrink them down.
* Add readprofile applet support.Paul Mundt2005-05-203-0/+309
|
* change the hardcoded error constant (0x80000000UL) to a nice flexible define ↵Mike Frysinger2005-05-111-1/+1
| | | | (BB_GETOPT_ERROR)
* moved to e2fsprogs tooMike Frysinger2005-04-251-22/+0
|
* remove lsattr/chattr to prepare for a top level e2fsprogs dir with more ↵Mike Frysinger2005-04-2326-2866/+0
| | | | stuff in it
* import lsattr and chattr from e2fsprogsMike Frysinger2005-04-2227-2/+2887
|
* fix typoe (buildddir -> builddir)Mike Frysinger2005-04-211-3/+2
|
* minor style touchupsMike Frysinger2005-04-161-8/+8
|
* egor duda writes:Eric Andersen2004-10-082-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | Hi! I've created a patch to busybox' build system to allow building it in separate tree in a manner similar to kbuild from kernel version 2.6. That is, one runs command like 'make O=/build/some/where/for/specific/target/and/options' and everything is built in this exact directory, provided that it exists. I understand that applyingc such invasive changes during 'release candidates' stage of development is at best unwise. So, i'm currently asking for comments about this patch, starting from whether such thing is needed at all to whether it coded properly. 'make check' should work now, and one make creates Makefile in build directory, so one can run 'make' in build directory after that. One possible caveat is that if we build in some directory other than source one, the source directory should be 'distclean'ed first. egor
* Patch from Felipe Kellermann, remove some unnecessary dups, i declared a few ↵Glenn L McGrath2004-09-141-4/+4
| | | | extra const's also.
* Fixup some warningsEric Andersen2004-08-281-14/+20
|
* Tito, farmatito at tiscali dot it writes:Eric Andersen2004-08-032-2/+2
| | | | | | | | | | | Hi to all, This patch is useful for: 1) remove an unused var from extern char *find_real_root_device_name(const char* name) changing it to extern char *find_real_root_device_name(void). 2) fixes include/libbb.h, coreutils/df.c, util-linux/mount.c and util-linux/umount.c accordingly. 3) fixes a bug, really a false positive, in find_real_root_device_name() that happens if in the /dev directory exists a link named root (/dev/root) that should be skipped but is not. This affects applets like df that display wrong results
* YAEGASHI Takeshi writes:Eric Andersen2004-07-261-3/+5
| | | | | | | | | | | | | | Hi, With the following /etc/fstab (any two or more lines of nfs), mount -a -t nfs causes a segmentation faults. server:/exports/aaa /mnt/aaa nfs defaults 0 0 server:/exprots/bbb /mnt/bbb nfs defaults 0 0 In util-linux/nfsmount.c, it overwrites malloc'ed pointer *mount_opts with a static pointer. With this patch it does proper memory realloc and data copy instead.
* Avoid a number of places where large drives could wrap a uint, andEric Andersen2004-06-281-33/+33
| | | | | | instead use off_t which will be automagically promoted to 64bit if compiled with support for large drives. -Erik
* Kevin P. Fleming writes:Eric Andersen2004-05-261-0/+2
| | | | | | | | | | | | | | | Yes, I know busybox is in feature freeze. If this two-liner is too much that's fine, but it's handy. This patch allows busybox mount to support "-o move" just like it supports "-o bind", which is the equivalent of util-linux "mount --move". Usage is: mount -o move /mnt/point/1 /mnt/point/2 where /mnt/point/1 is an already mounted filesystem; it will be moved to /mnt/point/2.
* Per suggestion from Bastian Blank, be less evil when we force fdisk toEric Andersen2004-05-262-9/+11
| | | | | transparently remap 32-bit interfaces to actually use 64 bit interfaces. -Erik
* Use tab not spaceEric Andersen2004-05-261-20/+20
|
* Do not select LFSEric Andersen2004-05-191-1/+0
|
* Erik,Eric Andersen2004-05-192-8/+18
| | | | | | | | | | | | | | | | | | >http://busybox.net/cgi-bin/cvsweb/busybox/util-linux/fdisk.c?r1=1.22&r2=1.23&diff_format=u Its hack for "force" ;-) If to return the previous version of a Config.in http://busybox.net/cgi-bin/cvsweb/busybox/util-linux/Config.in?r1=1.12&r2=1.13 and to apply last patch, then I shall calm down. ;-) (OOPS, last patch have autocorrected from my editor begins spaces to tabs and removed spaces from empty lines too). --w vodz
* Make vodz happy and make fdisk always use large file support ifEric Andersen2004-05-191-0/+8
| | | | | possible, even if LFS is not enabled for the rest of busybox. -Erik
* Larry Doolittle writes:Eric Andersen2004-04-146-11/+11
| | | | | | | | | | | | | | | | | | | | | | This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry
* make mount ignore -n when CONFIG_FEATURE_MTAB_SUPPORT is disabledEric Andersen2004-04-121-2/+2
|
* Everything should be made as simple as possible. But no simpler.Eric Andersen2004-04-031-5/+11
|
* Sigh. what a mess.Eric Andersen2004-03-301-2/+1
|
* As waldi noticed, checks for the size of an off_t and castingEric Andersen2004-03-301-13/+6
| | | | etc was also redundant and possibly buggy...
* Go ahead and kill off the FDISK_SUPPORT_LARGE_DISKS option,Eric Andersen2004-03-301-8/+0
| | | | as it is redundant....
* The fdisk llseek junk was redundant, since both uClibc and glibcEric Andersen2004-03-302-74/+8
| | | | | automatically promote lseek and friends to their 64 bit counterparts when CONFIG_LFS is enabled, since it enables __USE_FILE_OFFSET64
* s/fileno\(stdin\)/STDIN_FILENO/gEric Andersen2004-03-271-1/+1
| | | | s/fileno\(stdout\)/STDOUT_FILENO/g
* Vladimir N. Oleynik (vodz) writes:Eric Andersen2004-03-271-22/+21
| | | | | | | | | | | | | | | Ok. Last patch reduce 73 bytes for compensate (and over) your changes ;-) Comments: Added cin_fileno variable, auto setted to 0 from BSS and have "eq" stdin descriptor if isatty(stout)==0, removed global variable FILE* cin. Removed default setting to terminal_width/terminal_height, this used only from main() and setted after call get_terminal_width_height() always correct. Variable please_display_more_prompt changed to bits logic, have size reducing. --w vodz
* Brian Pomerantz writes:Eric Andersen2004-03-231-1/+3
| | | | | | | | | | | | | | | | I've noticed a bug in the "autowidth" feature more, and is probably in others. The call to the function get_terminal_width_height() passes in a file descriptor but that file descriptor is never used, instead the ioctl() is called with 0. In more_main() the call to get_terminal_width_height() passes 0 as the file descriptor instead of fileno(cin). This isn't a problem when you more a file (e.g. "more /etc/passwd") but when you pipe a file to it (e.g. "cat /etc/passwd | more") the size of the terminal cannot be determined because file descriptor 0 is not a terminal. The fix is simple, I've attached a patch for more.c and get_terminal_width_height.c. BAPper