aboutsummaryrefslogtreecommitdiff
path: root/mount.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Dont try to automount some specific filesystem typesbug12001-03-021-4/+14
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1958 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bah. I missed a header file.andersen2001-03-011-1/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1948 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Reduce the size of mount (and bypass /proc/filesystems) by using the sysfsandersen2001-03-011-61/+14
| | | | | | | | system call, based on work done by Glenn McGrath in December. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1947 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Keep trying if an NFS mount fails, and eliminate a call to exit(3).kraai2001-02-281-5/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1945 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied patch from Magnus Damm <damm@opensource.se> to fix a 'inner scope varmarkw2001-02-261-1/+2
| | | | | | | | masking outer scope var with same name' bug that was preventing the loopback device from being unmounted if mount() fails. git-svn-id: svn://busybox.net/trunk/busybox@1938 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It turns out that DODMALLOC was broken when I reorganized busybox.handersen2001-02-201-1/+1
| | | | | | | | | header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch, put together by Manuel Novoa III, is a merge of workandersen2001-02-141-1/+1
| | | | | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed. git-svn-id: svn://busybox.net/trunk/busybox@1805 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Apply a patch from Larry Doolittle to add "-all" and "-none" switchesandersen2001-02-011-6/+1
| | | | | | | | | | to multibuild.pl. I did a little formatting adjustments to make it _very_ obvious when things stop working. I also removed the USE_PROCFS config option -- just do the right thing when USE_DEVPS_PATCH is enabled. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1739 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Removed trailing \n from error_msg{,_and_die} messages.kraai2001-01-311-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1732 69ca8d6d-28ef-0310-b511-8ec308f3f277
* #define -> static const int. Also got rid of some big static buffers.markw2001-01-231-15/+15
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1642 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More printf cleanupsandersen2001-01-201-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1622 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use busybox error handling functions wherever possible.kraai2000-12-221-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1489 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change calls to error_msg.* and strerror to use perror_msg.*.kraai2000-12-181-10/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1466 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Mount error return code fix from Kent Robotti -- we must reset the errorandersen2000-12-121-6/+3
| | | | | | | code when looping... git-svn-id: svn://busybox.net/trunk/busybox@1437 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed names of functions in utility.c and all affected files, to makemarkw2000-12-071-14/+14
| | | | | | | compliant with the style guide. Everybody rebuild your tags file! git-svn-id: svn://busybox.net/trunk/busybox@1398 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix exit status on failure.kraai2000-12-061-2/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1383 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Stop using TRUE and FALSE for exit status.kraai2000-12-011-7/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1360 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Renamed "internal.h" to the more sensible "busybox.h".andersen2000-09-251-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1119 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove a warning. Patch from Bryan Rittmeyer <bryan@ixiacom.com>andersen2000-09-211-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1078 69ca8d6d-28ef-0310-b511-8ec308f3f277
* When mounting a ro fs rw, print warning and then mount it ro. Patchandersen2000-09-201-0/+4
| | | | | | | | from Dave Cinege. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1075 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Apply a patch from Chip Rosenthal <chip@unicom.com> to fix NFS mounting,andersen2000-09-191-1/+1
| | | | | | | | which had been inadvertantly broken... -Erik git-svn-id: svn://busybox.net/trunk/busybox@1066 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead ofkraai2000-09-131-2/+2
| | | | | | | segfaulting or handling errors the same way themselves. git-svn-id: svn://busybox.net/trunk/busybox@1039 69ca8d6d-28ef-0310-b511-8ec308f3f277
* From Ken Chalmers <chalmers@norscan.com>:proski2000-08-221-1/+2
| | | | | | | | The current CVS mount.c is missing a semicolon, causing building to fail if NFS is enabled (#define BB_NFSMOUNT). git-svn-id: svn://busybox.net/trunk/busybox@979 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed the "-f" option.andersen2000-08-021-3/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@938 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Merge in two patches from Dave Cinege:andersen2000-08-021-32/+56
| | | | | | | | | | | | | the first is a cleanup of tar --exclude the second changes mount so mtab works more as it should, and also allows mount to use the traditional short form (i.e. 'mount / -o remount,rw' now works. While inside tar, I changed it to use getopt... -Erik git-svn-id: svn://busybox.net/trunk/busybox@937 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use BB_FEATURE_CLEAN_UP where appropriateandersen2000-07-251-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@904 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Extract usage information into a separate file.kraai2000-07-161-32/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A couple of minor warning cleanups.andersen2000-07-141-2/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@849 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use errorMsg rather than fprintf.kraai2000-07-141-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@848 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Always report the applet name when doing error reporting.kraai2000-07-121-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@831 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Comment on kernel stuffandersen2000-07-101-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@807 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Argh. More cross libc cleanup. Should be ok now...andersen2000-07-081-6/+20
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@781 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update files to reduce dependance on kernel version...andersen2000-07-081-3/+5
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@779 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove misguided klude around for 2.4.x-test* brokenness. Al Viroandersen2000-07-051-8/+0
| | | | | | | | will be removing this stuff from /proc/mounts real soon now I am assured. -Erik git-svn-id: svn://busybox.net/trunk/busybox@740 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Updates to handle Linux 2.4.0 kernels (kludged around the "none" entries inandersen2000-06-261-0/+8
| | | | | | | | /proc/mounts, added a hack to make sysinfo work with both old and new kernels). -Erik git-svn-id: svn://busybox.net/trunk/busybox@701 69ca8d6d-28ef-0310-b511-8ec308f3f277
* * Fixed 'swapon -a' and 'swapoff -a', which were broken.andersen2000-06-071-14/+13
| | | | | | | | | * Fixed 'mount -a' so it works as expected. * Implemented 'ls -R' (enabled by enabling BB_FEATURE_LS_RECURSIVE) -Erik git-svn-id: svn://busybox.net/trunk/busybox@625 69ca8d6d-28ef-0310-b511-8ec308f3f277
* "mount" now reports errors from nfsmount() and assumes NFS mountproski2000-06-061-4/+7
| | | | | | | if ':' is present in the device name - Pavel Roskin git-svn-id: svn://busybox.net/trunk/busybox@615 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELPerik2000-05-121-7/+11
| | | | | | | | | | | which lets you compile out most of the "--help" output, saving up to 17k. Renamed mnc to nc. -Erik git-svn-id: svn://busybox.net/trunk/busybox@532 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add support for "noatime" and "nodiratime" mount flags to mount.erik2000-05-051-13/+19
| | | | | | | | | | Change umount "-f" to mean force, and actually use umount2. Change umount "-l" to mean "Do not free loop device". Updates docs accordingly. -Erik git-svn-id: svn://busybox.net/trunk/busybox@522 69ca8d6d-28ef-0310-b511-8ec308f3f277