aboutsummaryrefslogtreecommitdiff
path: root/util-linux/nfsmount.c
AgeCommit message (Collapse)Author
2006-09-11nfsmount: sanitize it. It had a rather peculiar idea of implementing "bg"Denis Vlasenko
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.
2006-09-10nfsmount: remove some really old code (for kernels 1.x!) + small cleanups.Denis Vlasenko
2006-09-10nfsmount: nfsmount.h merged into nfsmount.cDenis Vlasenko
2006-09-10nfsmount: style fixDenis Vlasenko
2006-09-08A quick cleanup pass of some low-hanging mess.Rob Landley
2006-08-03Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley
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.)
2006-06-19Make some 64 bit warnings go away on x86-64.Rob Landley
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-29Remove _().Rob Landley
2006-05-26fix spelling mistakesMike Frysinger
2006-05-19- single KERNEL_VERSION(a,b,c) macro in platform.hBernhard Reutner-Fischer
- rename get_kernel_revision() to get_linux_version_code from Robert P. J. Day
2006-04-17Robert Eggers noticed that nfsmount would sometimes incorrectly return success.Rob Landley
2006-03-26Robert P Day removed some commented out code.Rob Landley
2006-03-10Patch from Denis Vlasenko turning static const int (which gets emitted intoRob Landley
the busybox binary) into enums (which don't).
2006-02-23- put NLS stuff in one central place to avoid redefines.Bernhard Reutner-Fischer
Fixes warnings about: fdisk.c:45:1: warning: "_" redefined nfsmount.c:121:1: warning: "_" redefined nfsmount.c:122:1: warning: "N_" redefined interface.c:84:1: warning: "_" redefined
2006-01-25just whitespaceTim Riker
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