aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mount.c
AgeCommit message (Collapse)Author
2006-06-15Patch from Yann Morin to put BLKGETSIZE64 in platform.h had rather a lot ofRob Landley
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.)
2006-05-26Change llist_add_* to take the address of the list rather than returning the newRob Landley
head, and change all the callers.
2006-05-26- work around bug in gcc-3.4.x on ARMBernhard Reutner-Fischer
2006-05-08Fiddling with llist to make memory management easier. Specifically, theRob Landley
option to delete the contents of the list when we delete the list is a good thing.
2006-05-05Patch from Jason Schoon to make mount -a not abort on the first failure.Rob Landley
2006-04-05Kumar spotted another bug: if we autodetect nfs and they haven't specified theRob Landley
fstype, it should be set to nfs.
2006-04-04You'd think there'd be a compiler warning for "pointless if", wouldn't you?Rob Landley
2006-04-01Bug spotted by Kumar Gala. Hopefully this fixes it...Rob Landley
2006-03-29Kumar Gala tracked down a problem with NFS mounting. This is a different fixRob Landley
from his, but to the same problem.
2006-03-28Bernhard Fischer spotted that we shouldn't free fstype if we didn't allocateRob Landley
it.
2006-03-20whitespace cleanupEric Andersen
2006-03-20Fix some obvious compile problems. Make the -f' fakeIt option actually work.Eric Andersen
2006-03-18More fixes. Type "auto" should mean unspecified from fstab as well as theRob Landley
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.
2006-03-14The new, new mount rewrite. (Mount double prime?) Still being debugged, butRob Landley
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.
2006-01-25just whitespaceTim Riker
2006-01-10With -a, the jump to mount_it_now can skip the initialization of f, andRob Landley
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...
2006-01-10Both atime and diratime should switch _off_ the corresponding no* flag.Rob Landley
2005-12-20Some minor cleanups/bugfixes split off from the big remount work:Rob Landley
Shorten GPL boilerplate. Enabling FEATURE_CLEAN_UP broke things in two places. Move the NFS with uClibc check to nfsmount.c
2005-12-12- typo: s/sucess/success/gBernhard Reutner-Fischer
What's up with loginutils/su.c line 42: "SYSLOG_SUCESS" ? Please have a look..
2005-10-08Rename CONFIG_NFSMOUNT to CONFIG_FEATURE_MOUNT_NFS so allbaseconfig canRob Landley
find it (and tweak defconfig to catch up).
2005-08-30Amir Shalem found some bugs in the new mount code; unknown options didn't getRob Landley
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).
2005-08-14If we goto singlemount, do _not_ try to continue through the loop we jumpedRob Landley
into. (That means "mount -t ext2 /dev/thingy thingy" would segfault if it failed instead of giving us an error message.)
2005-08-14Stephane Billiart noticed that the return code of the new mount was horked.Rob Landley
(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...)
2005-08-10Major rewrite of mount, umount, losetup. Untangled lots of code, shrunkRob Landley
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. - *
2004-08-03Tito, farmatito at tiscali dot it writes:Eric Andersen
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
2004-05-26Kevin P. Fleming writes:Eric Andersen
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.
2004-04-14Larry Doolittle writes:Eric Andersen
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
2004-04-12make mount ignore -n when CONFIG_FEATURE_MTAB_SUPPORT is disabledEric Andersen
2004-03-15Remove trailing whitespace. Update copyright to include 2004.Eric Andersen
2003-12-12Doh! I broke automatic filesystem type guessing. Fix mount soEric Andersen
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
2003-12-09Fix indenting.Eric Andersen
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.
2003-07-22Error out early if people try to build mount with nfs supportEric Andersen
using uClibc, but have not enabled UCLIBC_HAS_RPC... -Erik
2003-07-14Update a bunch of docs. Run a script to update my email addr.Eric Andersen
2003-06-20Somewhere in the 2.4.x kernel series, /proc/mounts was changed to display aEric Andersen
"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
2003-03-19Major coreutils update.Manuel Novoa III
2003-02-28There is no good reason to prevent nfs mounts from being mountedEric Andersen
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
2002-12-05Kill CONFIG_FEATURE_USE_DEVPS_PATCH and the devps patch. I'm notEric Andersen
maintaining it anymore, and it is now terribly out of date. -Erik
2002-08-23Run through indent, styleGlenn L McGrath
2002-08-22Run through indent, fix commentsGlenn L McGrath
2002-07-25Fix for bug #1255 -- support for mount -t <type>Robert Griebl
2002-07-24Add support for /etc/filesystem when searching for an "auto" filesystemRobert Griebl
This is bug #1246
2002-06-22Kill dead email addressEric Andersen
-Erik
2002-06-22Apply last_patch46 from vodz, to fix buffer overflows noted byEric Andersen
Gerardo Puga, and to optimize for size a little bit. Thanks vodz
2002-05-14Entries with "noauto" options are ignored correctly when mounting allRobert Griebl
("mount -a"), but mount fails when these entries are specified explicitly In these cases the "noauto" option has to be simply ignored.
2002-04-13Patch from Kevin Hilman <khilman@equator.com> to fix potentialEric Andersen
memory corruption from long pathnames in /etc/fstab.
2002-04-13Update some missing copyright noticesEric Andersen
2002-04-06Apply lash_patch35 from vodz, which brings several nice size_optimizations.Eric Andersen
2001-12-20Remove `== TRUE' tests and convert `!= TRUE' and `== FALSE' tests to use !.Matt Kraai
2001-12-06Avoid NULL pointer problems. Patch from "Frank P. MacLachlan"Eric Andersen
<fpm-plutus@tgs.indyme.com>
2001-11-12Change strdup calls to xstrdup (patch from Steve Merrifield).Matt Kraai