summaryrefslogtreecommitdiff
path: root/util-linux/mount.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* mount: revert mount --bind to using "bind" as fstype.Denis Vlasenko2006-09-171-1/+1
|
* mount: mount_it_now() - char *dir is not really needed.Denis Vlasenko2006-09-171-3/+3
|
* mount: fix "duplicate mount options in mtab" bugDenis Vlasenko2006-09-171-3/+21
|
* mount: nfs_strerror's static buffer was bigger than needed.Denis Vlasenko2006-09-171-1/+1
|
* mount: getopt_ulflag'ificationDenis Vlasenko2006-09-171-38/+24
|
* mount: style fixesDenis Vlasenko2006-09-171-34/+34
|
* mount: fix bugs: free(mp->mnt_fsname) of non-malloced ptr;Denis Vlasenko2006-09-171-17/+20
| | | | check for "more than 2 arguments" was actually checking for -2.
* mount: use bb_simplify_path as appropriateDenis Vlasenko2006-09-171-21/+13
|
* mount: style fixesDenis Vlasenko2006-09-171-21/+24
|
* mount: reorder things, fix NFS-less mount.Denis Vlasenko2006-09-151-380/+360
|
* mount: -o remount should not add lines to /etc/mtabDenis Vlasenko2006-09-141-1/+1
|
* mount: move code from nfsmount.c into mount.cDenis Vlasenko2006-09-141-5/+1018
|
* mount: fix mtab support (but it is still rather buggy)Denis Vlasenko2006-09-141-13/+27
|
* nfsmount: sanitize it. It had a rather peculiar idea of implementing "bg"Denis Vlasenko2006-09-111-14/+14
| | | | | | | | | option - it was going to return a special flag back to caller and expecting caller to call it again with special parameter! Also caller was charged with calling mount() syscall... mount: mtab support was non-functional. Enabling it revealed serious bug which is not fixed yet.
* nfsmount: nfsmount.h merged into nfsmount.cDenis Vlasenko2006-09-101-8/+9
|
* removed a lot of trailing \n in bb_msg() calls. It is addedDenis Vlasenko2006-09-061-1/+1
| | | | | automatically by function itself.
* Vladimir Dronnikov (ybrnj80 at yandex dot ru) pointed out that my cleanup ofRob Landley2006-09-051-3/+3
| | | | his code introduced a bug (an extra backslash in the CIFS mount string).
* Thinko.Rob Landley2006-09-041-3/+1
|
* Vladimir Dronnikov also submitted a CIFS support patch to mount, which IRob Landley2006-09-011-8/+49
| | | | | heavily reworked here and probably broke. Tomorrow I need to set up a copy of samba to test against. (This compiles, I make no promises beyond that.)
* Vladimir Dronnikov convinced me to twiddle the semantics of the new sharedRob Landley2006-08-091-5/+14
| | | | | subtree stuff to look more like http://lwn.net/Articles/159077/ thinks they should.
* Fix a typo (|| instead of |) and remove two comments about a problem fixedRob Landley2006-08-081-3/+2
| | | | in the previous patch.
* Add shared subtree support, suggested by Vladimir Dronnikov. Also break out aRob Landley2006-08-081-50/+57
| | | | | | few new (unfinished) config options, which I intend to make hidden (but enabled) when CONFIG_NITPICK is disabled. Getting the .config infrastructure to do that is non-obvious, it seems...
* Using lstat() instead of stat() means that attempting to loopback mountRob Landley2006-08-081-1/+1
| | | | a symlink doesn't work.
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-11/+5
| | | | | | | | | | things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
* Patch from Paul Fox to improve mount's error handling behavior, which I beatRob Landley2006-06-211-21/+16
| | | | on a bit.
* Andre (armcc2200@yahoo) patched a bug where successful mounts could sometimesRob Landley2006-06-211-1/+2
| | | | produce an error, due to a missing rc assignment.
* Patch from Yann Morin to put BLKGETSIZE64 in platform.h had rather a lot ofRob Landley2006-06-151-6/+2
| | | | | | 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.)
* Change llist_add_* to take the address of the list rather than returning the newRob Landley2006-05-261-1/+1
| | | | head, and change all the callers.
* - work around bug in gcc-3.4.x on ARMBernhard Reutner-Fischer2006-05-261-1/+1
|
* Fiddling with llist to make memory management easier. Specifically, theRob Landley2006-05-081-1/+1
| | | | | option to delete the contents of the list when we delete the list is a good thing.
* Patch from Jason Schoon to make mount -a not abort on the first failure.Rob Landley2006-05-051-4/+6
|
* Kumar spotted another bug: if we autodetect nfs and they haven't specified theRob Landley2006-04-051-0/+1
| | | | fstype, it should be set to nfs.
* 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. - *