summaryrefslogtreecommitdiff
path: root/util-linux/mount.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* You'd think there'd be a compiler warning for "pointless if", wouldn't you?Rob Landley2006-04-041-3/+3
|
* Bug spotted by Kumar Gala. Hopefully this fixes it...Rob Landley2006-04-011-2/+3
|
* Kumar Gala tracked down a problem with NFS mounting. This is a different fixRob Landley2006-03-291-21/+19
| | | | from his, but to the same problem.
* Bernhard Fischer spotted that we shouldn't free fstype if we didn't allocateRob Landley2006-03-281-1/+0
| | | | it.
* whitespace cleanupEric Andersen2006-03-201-29/+29
|
* Fix some obvious compile problems. Make the -f' fakeIt option actually work.Eric Andersen2006-03-201-1/+6
|
* More fixes. Type "auto" should mean unspecified from fstab as well as theRob Landley2006-03-181-18/+30
| | | | | | | | | | | command line, initialize singlemount's rc to an error value so it doesn't think it succeeded when it didn't, use absolute path when associating a loop device (and the previous FEATURE_CLEAN_UP logic related to that was freeing the wrong thing), move reading of /proc/filesystems to where we can re-read it (when it's empty) for every entry on a "mount -a" so that when /proc is mounted as the first entry, the later filesystems can autodetect filesystem type.
* The new, new mount rewrite. (Mount double prime?) Still being debugged, butRob Landley2006-03-141-252/+408
| | | | | | the new infrastructure is reentrant so in theory it's capable of handling mount -a sanely. It can also re-use existing flags with remount, handle -t auto, mount -a -t, and several smaller bugfixes.
* just whitespaceTim Riker2006-01-251-8/+8
|
* With -a, the jump to mount_it_now can skip the initialization of f, andRob Landley2006-01-101-2/+5
| | | | | | | | | if we don't zero it after closing it we re-close a filehandle that isn't open, and since this is a file _pointer_ it segfaults on a double free. Yeah, subtle bug. I need to break this out into separate functions if I can figure out how to avoid making the code larger while doing so. Part of the general -a and -o remount work I need to do, but that's after 1.1.0...
* Both atime and diratime should switch _off_ the corresponding no* flag.Rob Landley2006-01-101-2/+2
|
* Some minor cleanups/bugfixes split off from the big remount work:Rob Landley2005-12-201-27/+8
| | | | | | | Shorten GPL boilerplate. Enabling FEATURE_CLEAN_UP broke things in two places. Move the NFS with uClibc check to nfsmount.c
* - typo: s/sucess/success/gBernhard Reutner-Fischer2005-12-121-1/+1
| | | | What's up with loginutils/su.c line 42: "SYSLOG_SUCESS" ? Please have a look..
* Rename CONFIG_NFSMOUNT to CONFIG_FEATURE_MOUNT_NFS so allbaseconfig canRob Landley2005-10-081-2/+2
| | | | find it (and tweak defconfig to catch up).
* 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).
* 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-101-389/+292
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. - *
* Tito, farmatito at tiscali dot it writes:Eric Andersen2004-08-031-1/+1
| | | | | | | | | | | 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
* 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.
* Larry Doolittle writes:Eric 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
* make mount ignore -n when CONFIG_FEATURE_MTAB_SUPPORT is disabledEric Andersen2004-04-121-2/+2
|
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-6/+6
|
* Doh! I broke automatic filesystem type guessing. Fix mount soEric Andersen2003-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
* Fix indenting.Eric 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.
* Error out early if people try to build mount with nfs supportEric Andersen2003-07-221-0/+6
| | | | | using uClibc, but have not enabled UCLIBC_HAS_RPC... -Erik
* Update a bunch of docs. Run a script to update my email addr.Eric Andersen2003-07-141-2/+2
|
* Somewhere in the 2.4.x kernel series, /proc/mounts was changed to display aEric Andersen2003-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
* Major coreutils update.Manuel Novoa III2003-03-191-18/+16
|
* There is no good reason to prevent nfs mounts from being mountedEric Andersen2003-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
* Kill CONFIG_FEATURE_USE_DEVPS_PATCH and the devps patch. I'm notEric Andersen2002-12-051-81/+1
| | | | | maintaining it anymore, and it is now terribly out of date. -Erik
* Run through indent, styleGlenn L McGrath2002-08-231-48/+66
|
* Run through indent, fix commentsGlenn L McGrath2002-08-221-110/+120
|
* Fix for bug #1255 -- support for mount -t <type>Robert Griebl2002-07-251-8/+14
|
* Add support for /etc/filesystem when searching for an "auto" filesystemRobert Griebl2002-07-241-16/+52
| | | | This is bug #1246
* Kill dead email addressEric Andersen2002-06-221-1/+1
| | | | -Erik
* Apply last_patch46 from vodz, to fix buffer overflows noted byEric Andersen2002-06-221-25/+23
| | | | Gerardo Puga, and to optimize for size a little bit. Thanks vodz
* Entries with "noauto" options are ignored correctly when mounting allRobert Griebl2002-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.
* Patch from Kevin Hilman <khilman@equator.com> to fix potentialEric Andersen2002-04-131-1/+2
| | | | memory corruption from long pathnames in /etc/fstab.
* Update some missing copyright noticesEric Andersen2002-04-131-0/+1
|
* Apply lash_patch35 from vodz, which brings several nice size_optimizations.Eric Andersen2002-04-061-2/+1
|
* Remove `== TRUE' tests and convert `!= TRUE' and `== FALSE' tests to use !.Matt Kraai2001-12-201-16/+16
|
* Avoid NULL pointer problems. Patch from "Frank P. MacLachlan"Eric Andersen2001-12-061-0/+1
| | | | <fpm-plutus@tgs.indyme.com>
* Change strdup calls to xstrdup (patch from Steve Merrifield).Matt Kraai2001-11-121-2/+2
|
* Major rework of the directory structure and the entire build system.Eric Andersen2001-10-241-13/+13
| | | | -Erik
* Make mount default to using /proc/filesystems to avoidEric Andersen2001-10-181-2/+31
| | | | | ever trying to mount a nodev filesystem. -Erik
* Don't automount things as "usbdevfs" -- patch fromEric Andersen2001-09-031-1/+1
| | | | Ethan Benson <erbenson@alaska.net>
* Commit Vladimir's simplify_path.Matt Kraai2001-08-101-7/+4
|
* This is vodz' latest patch. Sorry it took so long...Eric 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)
* Fix a thinko (the symptoms of which were reported byMatt Kraai2001-07-051-1/+1
| | | | David Douthitt in bug #1111).