hush/util-linux
Rob Landley 6a6798b8e4 Major rewrite of mount, umount, losetup. Untangled lots of code, shrunk
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.
- *
2005-08-10 20:35:54 +00:00
..
Config.in Major rewrite of mount, umount, losetup. Untangled lots of code, shrunk 2005-08-10 20:35:54 +00:00
dmesg.c Remove trailing whitespace. Update copyright to include 2004. 2004-03-15 08:29:22 +00:00
fbset.c Remove trailing whitespace. Update copyright to include 2004. 2004-03-15 08:29:22 +00:00
fdflush.c Major coreutils update. 2003-03-19 09:13:01 +00:00
fdformat.c Everything should be made as simple as possible. But no simpler. 2004-04-03 12:36:03 +00:00
fdisk.c Avoid a number of places where large drives could wrap a uint, and 2004-06-28 23:50:31 +00:00
freeramdisk.c Remove trailing whitespace. Update copyright to include 2004. 2004-03-15 08:29:22 +00:00
fsck_minix.c Larry Doolittle writes: 2004-04-14 17:51:38 +00:00
getopt.c Patch from Felipe Kellermann, remove some unnecessary dups, i declared a few extra const's also. 2004-09-14 17:24:59 +00:00
hexdump.c Major coreutils update. 2003-03-19 09:13:01 +00:00
hwclock.c change the hardcoded error constant (0x80000000UL) to a nice flexible define (BB_GETOPT_ERROR) 2005-05-11 00:39:03 +00:00
ipcrm.c Rodney Radford submitted ipcs and ipcrm (system V IPC stuff). They could use 2005-06-20 04:30:36 +00:00
ipcs.c Rodney Radford submitted ipcs and ipcrm (system V IPC stuff). They could use 2005-06-20 04:30:36 +00:00
losetup.c Major rewrite of mount, umount, losetup. Untangled lots of code, shrunk 2005-08-10 20:35:54 +00:00
Makefile fix typoe (buildddir -> builddir) 2005-04-21 01:49:05 +00:00
Makefile.in use toplevel ARFLAGS and update default ARFLAGS to be quiet 2005-07-27 01:09:24 +00:00
mkfs_minix.c Fixup some warnings 2004-08-28 00:43:07 +00:00
mkswap.c Patch from David Meggy to make the swap default to the new version if no 2003-10-31 02:04:18 +00:00
more.c s/fileno\(stdin\)/STDIN_FILENO/g 2004-03-27 10:02:48 +00:00
mount.c Major rewrite of mount, umount, losetup. Untangled lots of code, shrunk 2005-08-10 20:35:54 +00:00
nfsmount.c Major rewrite of mount, umount, losetup. Untangled lots of code, shrunk 2005-08-10 20:35:54 +00:00
nfsmount.h Fixup use of 'u_int' to instead use 'unsigned int' 2004-01-30 22:56:20 +00:00
pivot_root.c Remove trailing whitespace. Update copyright to include 2004. 2004-03-15 08:29:22 +00:00
rdate.c Stephane Billiart writes: 2004-01-18 18:18:33 +00:00
readprofile.c Add readprofile applet support. 2005-05-20 17:22:18 +00:00
swaponoff.c Remove trailing whitespace. Update copyright to include 2004. 2004-03-15 08:29:22 +00:00
umount.c Major rewrite of mount, umount, losetup. Untangled lots of code, shrunk 2005-08-10 20:35:54 +00:00