aboutsummaryrefslogtreecommitdiff
path: root/util-linux/nfsmount.c
AgeCommit message (Collapse)Author
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-10-20another more const"Vladimir N. Oleynik"
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-07-26YAEGASHI Takeshi writes:Eric Andersen
Hi, With the following /etc/fstab (any two or more lines of nfs), mount -a -t nfs causes a segmentation faults. server:/exports/aaa /mnt/aaa nfs defaults 0 0 server:/exprots/bbb /mnt/bbb nfs defaults 0 0 In util-linux/nfsmount.c, it overwrites malloc'ed pointer *mount_opts with a static pointer. With this patch it does proper memory realloc and data copy instead.
2004-03-15Remove trailing whitespace. Update copyright to include 2004.Eric Andersen
2004-01-30Fixup use of 'u_int' to instead use 'unsigned int'Eric Andersen
2003-03-19Major coreutils update.Manuel Novoa III
2002-12-11Eliminate dependancy on kernel header files. Naughty naughty.Eric Andersen
Using linux kernel headers is a Bad Thing(tm) and should be punished. -Erik
2001-07-26Rename dirname variable to pathname to eliminate namespace conflict.Matt Kraai
2001-05-16Add xgethostbyname and herror_msg* functions.Matt Kraai
2001-03-21Clean up more local vars which shadow globalsEric Andersen
-Erik
2001-03-21A nice patch from Larry Doolittle that adds -Wshadow andEric Andersen
cleans up most of the now-revealed problems.
2001-03-09A cleanup patch from Jeff Garzik to static-ify a number ofEric Andersen
namespace polluting things that really should be static.
2001-02-20It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen
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
2001-02-18Remove leftover junkEric Andersen
2001-02-16Fix warning for implicit declaration of time()Glenn L McGrath
2001-02-01Applied patch from Chris Jaeger <cjaeger@ensim.com> to do better checking forMark Whitley
NFS_MOUNT_VERSION, depending on which kernel you're running.
2001-01-31Removed trailing \n from error_msg{,_and_die} messages.Matt Kraai
2001-01-30Applied patch from Larry Doolittle to use preprocessor for definingMark Whitley
NFS_MOUNT_VERSION.
2001-01-23#define -> static const int. Also got rid of some big static buffers.Mark Whitley
2001-01-02Be more careful about dmalloc handlingEric Andersen
2000-12-09NFS_PORT and NFS_FHSIZE are not defined in the kernel headers that come with ↵Glenn L McGrath
libc6-2.2-5 This just defines that if they arent found in the kernel header
2000-12-07Changed names of functions in utility.c and all affected files, to makeMark Whitley
compliant with the style guide. Everybody rebuild your tags file!
2000-10-30Fix uname problem that was breaking poweroff.Eric Andersen
2000-09-25Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen
-Erik
2000-08-10Some #include updates.Eric Andersen
-Erik
2000-07-14A couple of minor warning cleanups.Eric Andersen
-Erik
2000-07-14Use errorMsg rather than fprintf.Matt Kraai
2000-07-10Fixed NFS so it supports 2.4.x kernels and NFSv3. Should close bug #1009.Eric Andersen
-Erik
2000-02-08Some formatting updates (ran the code through indent)Erik Andersen
-Erik
1999-11-18StuffEric Andersen