aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mount.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Kevin P. Fleming writes: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. git-svn-id: svn://busybox.net/trunk/busybox@8881 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Larry Doolittle writes:andersen2004-04-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 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 git-svn-id: svn://busybox.net/trunk/busybox@8759 69ca8d6d-28ef-0310-b511-8ec308f3f277
* make mount ignore -n when CONFIG_FEATURE_MTAB_SUPPORT is disabledandersen2004-04-121-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8733 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove trailing whitespace. Update copyright to include 2004.andersen2004-03-151-6/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8630 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Doh! I broke automatic filesystem type guessing. Fix mount soandersen2003-12-121-2/+3
| | | | | | | | | | it will properly fall back to /proc/mounts when /etc/filesystems is missing, allowing mount to guess the correct fs type when a fs type is not explicitly specified. -Erik git-svn-id: svn://busybox.net/trunk/busybox@8082 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix indenting.andersen2003-12-091-6/+5
| | | | | | | | Fix a bug noticed by Pete Flugstad. Make certain we close what we open, and don't try to close invalid files when /etc/filesystems exists and is used. git-svn-id: svn://busybox.net/trunk/busybox@8061 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Error out early if people try to build mount with nfs supportandersen2003-07-221-0/+6
| | | | | | | | using uClibc, but have not enabled UCLIBC_HAS_RPC... -Erik git-svn-id: svn://busybox.net/trunk/busybox@7085 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update a bunch of docs. Run a script to update my email addr.andersen2003-07-141-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7061 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Somewhere in the 2.4.x kernel series, /proc/mounts was changed to display aandersen2003-06-201-1/+3
| | | | | | | | | | | "rootfs" entry as well as the traditional "/dev/root" entry. This caused applets such as mount and df to display two root filesystem entries.... This teaches the relevant utilities to ignore the "rootfs" entry. -Erik git-svn-id: svn://busybox.net/trunk/busybox@6946 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major coreutils update.mjn32003-03-191-18/+16
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
* There is no good reason to prevent nfs mounts from being mountedandersen2003-02-281-2/+2
| | | | | | | | | | during 'mount -a'. If the user wants to do that, hey, its their lifs. If the nfs server is down and they don't want to wait for nfs to time out, that is their problem. -Erik git-svn-id: svn://busybox.net/trunk/busybox@6648 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Kill CONFIG_FEATURE_USE_DEVPS_PATCH and the devps patch. I'm notandersen2002-12-051-81/+1
| | | | | | | | maintaining it anymore, and it is now terribly out of date. -Erik git-svn-id: svn://busybox.net/trunk/busybox@6101 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Run through indent, stylebug12002-08-231-48/+66
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5353 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Run through indent, fix commentsbug12002-08-221-110/+120
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5342 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix for bug #1255 -- support for mount -t <type>sandman2002-07-251-8/+14
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5100 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add support for /etc/filesystem when searching for an "auto" filesystemsandman2002-07-241-16/+52
| | | | | | | This is bug #1246 git-svn-id: svn://busybox.net/trunk/busybox@5085 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Kill dead email addressandersen2002-06-221-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@4954 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Apply last_patch46 from vodz, to fix buffer overflows noted byandersen2002-06-221-25/+23
| | | | | | | Gerardo Puga, and to optimize for size a little bit. Thanks vodz git-svn-id: svn://busybox.net/trunk/busybox@4953 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Entries with "noauto" options are ignored correctly when mounting allsandman2002-05-141-0/+1
| | | | | | | | ("mount -a"), but mount fails when these entries are specified explicitly In these cases the "noauto" option has to be simply ignored. git-svn-id: svn://busybox.net/trunk/busybox@4770 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Kevin Hilman <khilman@equator.com> to fix potentialandersen2002-04-131-1/+2
| | | | | | | memory corruption from long pathnames in /etc/fstab. git-svn-id: svn://busybox.net/trunk/busybox@4613 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update some missing copyright noticesandersen2002-04-131-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4599 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Apply lash_patch35 from vodz, which brings several nice size_optimizations.andersen2002-04-061-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4548 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove `== TRUE' tests and convert `!= TRUE' and `== FALSE' tests to use !.kraai2001-12-201-16/+16
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3925 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Avoid NULL pointer problems. Patch from "Frank P. MacLachlan"andersen2001-12-061-0/+1
| | | | | | | <fpm-plutus@tgs.indyme.com> git-svn-id: svn://busybox.net/trunk/busybox@3859 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change strdup calls to xstrdup (patch from Steve Merrifield).kraai2001-11-121-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3666 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major rework of the directory structure and the entire build system.andersen2001-10-241-13/+13
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@3561 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make mount default to using /proc/filesystems to avoidandersen2001-10-181-2/+31
| | | | | | | | ever trying to mount a nodev filesystem. -Erik git-svn-id: svn://busybox.net/trunk/busybox@3539 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Don't automount things as "usbdevfs" -- patch fromandersen2001-09-031-1/+1
| | | | | | | Ethan Benson <erbenson@alaska.net> git-svn-id: svn://busybox.net/trunk/busybox@3384 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Commit Vladimir's simplify_path.kraai2001-08-101-7/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3240 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This is vodz' latest patch. Sorry it took so long...andersen2001-07-171-1/+1
| | | | | | | | | | | | 1) ping cleanup (compile fix from this patch already applied). 2) traceroute call not spare ntohl() now (and reduce size); 3) Fix for functions not declared static in insmod, ash, vi and mount. 4) a more simple API cmdedit :)) 5) adds "stopped jobs" warning to ash on Ctrl-D and fixes "ignoreeof" option 6) reduce exporting library function index->strchr (traceroute), bzero->memset (syslogd) git-svn-id: svn://busybox.net/trunk/busybox@3103 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a thinko (the symptoms of which were reported bykraai2001-07-051-1/+1
| | | | | | | David Douthitt in bug #1111). git-svn-id: svn://busybox.net/trunk/busybox@3002 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Don't whine about already mounted filesystems when invoked with -a.kraai2001-06-031-6/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2785 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Gernot Poerner <gp@it-netservice.de>. Adds inandersen2001-05-211-0/+2
| | | | | | | mount bind support. git-svn-id: svn://busybox.net/trunk/busybox@2680 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Vladimir:andersen2001-05-151-1/+5
| | | | | | | | | | 1) fixed a bug that could crash df, mount, and umount applets if the root device name was longer then the word "root" (/dev/loop1 vs /dev/root) - 2) severl functions needed static declaration in the umount applet 3) update declaration for function in last_char_is() in libbb git-svn-id: svn://busybox.net/trunk/busybox@2647 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Actually we dont need to check if the device is nfs as it wont be stat'edbug12001-05-071-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2546 69ca8d6d-28ef-0310-b511-8ec308f3f277
* woops, i shouldnt be so presumtuous? about what the error will bebug12001-05-071-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2545 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Device may not be a real filenamebug12001-05-071-10/+16
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2544 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix two bugs reported by Ralph Jones.kraai2001-05-041-3/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2530 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix bug #1108 by always canonicalizing arguments.kraai2001-05-021-13/+16
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2517 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Moved some #ifdefs down below #include "busybox.h" where they belong.markw2001-04-251-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2436 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Convert mount to use getopt.kraai2001-04-171-55/+31
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2356 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Further cleanup of mount option handling.kraai2001-04-171-62/+61
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2355 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix -a support (broken by previous patch).kraai2001-04-171-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2354 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix segfault on `mount -t nfs' reported by Gratien D'haese.kraai2001-04-171-0/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2353 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A number of cleanups. Now compiles with libc5, glibc, and uClibc. Fix a fewandersen2001-04-051-5/+1
| | | | | | | | | shadowed variables. Move (almost) all syscalls to libbb/syscalls.c, so I can handle them sanely and all at once. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2250 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move the mtab support stuff into libbbandersen2001-04-011-2/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2229 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Dont try and automount devfs, rename some variablesbug12001-03-301-6/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2226 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The patch I previously applied from Brian Webb was 2 lines off. Oops.markw2001-03-141-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2076 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied a patch from Brian Webb to fix a problem with mount on the Agenda PDA.markw2001-03-121-0/+1
| | | | | | | Apparently, the mount() call does not like taking a stack allocated pointer. git-svn-id: svn://busybox.net/trunk/busybox@2050 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A cleanup patch from Jeff Garzik to static-ify a number ofandersen2001-03-091-1/+1
| | | | | | | namespace polluting things that really should be static. git-svn-id: svn://busybox.net/trunk/busybox@2027 69ca8d6d-28ef-0310-b511-8ec308f3f277