aboutsummaryrefslogtreecommitdiff
path: root/libbb/loop.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Whitespace cleanup and minor tweak (return -ERRNO instead of ERRNO solandley2006-03-181-13/+6
| | | | | | | EPERM doesn't register as a successful read-only mount. git-svn-id: svn://busybox.net/trunk/busybox@14554 69ca8d6d-28ef-0310-b511-8ec308f3f277
* with 2.4 kernel headers, lo_file_name is char, but with 2.6andersen2006-01-301-3/+3
| | | | | | | | headers we get a u8 for lo_file_name, so always cast to (char *) when treating it as such. git-svn-id: svn://busybox.net/trunk/busybox@13720 69ca8d6d-28ef-0310-b511-8ec308f3f277
* just whitespacetimr2006-01-251-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13584 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Close bug 644: loop incrementing twice, skipping ever other device.landley2006-01-221-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13496 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Trying to losetup a device as a regular user shouldn't result in an endlesslandley2005-12-211-2/+3
| | | | | | | loop, and the error messages should display correctly now. git-svn-id: svn://busybox.net/trunk/busybox@12970 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix losetup so that it A) actually works again, B) has much better errorlandley2005-11-291-14/+30
| | | | | | | | | | | messages, C) can show the current association (if any) when called with only one argument. Update the documentation a lot too. Remind me to add a test suite for this thing. I think I've figured out how to handle root-only testsuites... git-svn-id: svn://busybox.net/trunk/busybox@12582 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - don't update copyright years. He might release it, but apparently will havealdot2005-10-151-1/+1
| | | | | | | to update the year himself. git-svn-id: svn://busybox.net/trunk/busybox@11875 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - an empty middle term in ?: violates ISO Caldot2005-10-151-31/+22
| | | | | | | - use shorter boilerplate and use C89 style comments git-svn-id: svn://busybox.net/trunk/busybox@11872 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The check for EROFS was wrong. For example, if you try to mount a filesystemlandley2005-10-111-4/+3
| | | | | | | | | appended to an executable that's being run (yes, I'm doing this) you get EPERM, but mounting readonly fixes it. Doing the fallback all the time shouldn't hurt, and is one less test. git-svn-id: svn://busybox.net/trunk/busybox@11825 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major rewrite of mount, umount, losetup. Untangled lots of code, shrunklandley2005-08-101-92/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. - * git-svn-id: svn://busybox.net/trunk/busybox@11099 69ca8d6d-28ef-0310-b511-8ec308f3f277
* move the ifdef to after libbb.h include, so it can do some good.pgf2005-07-271-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10933 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ifdef all of loop.c with CONFIG_FEATURE_MOUNT_LOOP. won'tpgf2005-07-221-0/+2
| | | | | | | | compile due to CONFIG_FEATURE_MOUNT_LOOP_MAX otherwise. reported by Stephane Billiart. git-svn-id: svn://busybox.net/trunk/busybox@10901 69ca8d6d-28ef-0310-b511-8ec308f3f277
* applying fix from:pgf2005-07-191-1/+1
| | | | | | | | | 0000068: mount limited to max 8 loop devices (patch provided) (made minor wording change for config help message) git-svn-id: svn://busybox.net/trunk/busybox@10863 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Dear andersen:andersen2005-01-041-1/+2
| | | | | | | | | | | | | | | | Is the change on libbb/loop.c which you commited in 2005/1/3 effective really? The __GLIBC__ macro and __UCLIBC__ macro are defined in feature.h in glibc source, so the change may not be effective. If you want to check this with __GLIBC__, feature.h header is needed. Some architectures(e.g. PPC series) need to include linux/posix_types.h in stead of asm/posix_types.h, so the patch which is attached with this mail include <linux/posix_types.h>. git-svn-id: svn://busybox.net/trunk/busybox@9641 69ca8d6d-28ef-0310-b511-8ec308f3f277
* perhaps a better fixandersen2005-01-031-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9633 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Workaround for uClibc-specific header problem described here:landley2004-12-091-1/+1
| | | | | | | | | http://www.busybox.net/lists/busybox/2004-December/013276.html Rob git-svn-id: svn://busybox.net/trunk/busybox@9545 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use __kernel_old_dev_t for 2.6.x kernelsandersen2004-08-161-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9099 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Aurelien Jacobs writes:andersen2004-08-161-3/+1
| | | | | | | | | | | | | | | | | | | | | with a quick conversion you will see that 132608 == 0x20600 so noticed that the elif will never be matched ! Apparently there was already a try to modify this in CVS which was reverted (it was plain wrong). I don't know when __kernel_old_dev_t is needed, but with a 2.6.7 or a 2.6.8 this is __kernel_dev_t wich is needed. I corrected this with the following patch but maybe older 2.6 still need __kernel_old_dev_t ? I think this should be corrected before 1.0. Thanks Aurel git-svn-id: svn://busybox.net/trunk/busybox@9098 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Revert my previous commitbug12004-06-251-3/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8927 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix compile error under 2.6, check for newer versions first or all thebug12004-06-251-3/+3
| | | | | | | checks wont be considered. git-svn-id: svn://busybox.net/trunk/busybox@8926 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove trailing whitespace. Update copyright to include 2004.andersen2004-03-151-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8630 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make the loop support stuff be much less evil, and make it copeandersen2004-02-061-1/+34
| | | | | | | | | | | | with 2.6.x asm/posix_types.h, which has done singularly evil thing by yanking __kernel_dev_t and renaming it. The loop interface was really poorly designed in the first place. The new 64 bit loop interface looks to be somewhat less horrible, too bad it is only present in 2.6.x kernels. -Erik git-svn-id: svn://busybox.net/trunk/busybox@8418 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update a bunch of docs. Run a script to update my email addr.andersen2003-07-141-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7061 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Dmitry V. Levin to fix a fd leakandersen2003-05-021-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6830 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major coreutils update.mjn32003-03-191-6/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix devfs loop device supportandersen2002-03-201-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4447 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major rework of the directory structure and the entire build system.andersen2001-10-241-7/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@3561 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Convert utility.c into libbb.a. It is now a whole pile of .candersen2001-03-161-0/+128
files. Clean up the resulting damage and fix up the makefile. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2123 69ca8d6d-28ef-0310-b511-8ec308f3f277