2002-12-05 14:11:41 +05:30
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see scripts/kbuild/config-language.txt.
|
|
|
|
#
|
|
|
|
|
|
|
|
menu "Linux System Utilities"
|
|
|
|
|
2010-06-08 15:45:11 +05:30
|
|
|
INSERT
|
|
|
|
|
2002-12-05 14:11:41 +05:30
|
|
|
comment "Common options for mount/umount"
|
2006-10-05 15:47:08 +05:30
|
|
|
depends on MOUNT || UMOUNT
|
2002-12-05 14:11:41 +05:30
|
|
|
|
2006-10-05 15:47:08 +05:30
|
|
|
config FEATURE_MOUNT_LOOP
|
2006-04-14 04:52:16 +05:30
|
|
|
bool "Support loopback mounts"
|
2010-06-06 07:44:28 +05:30
|
|
|
default y
|
2006-10-05 15:47:08 +05:30
|
|
|
depends on MOUNT || UMOUNT
|
2002-12-05 14:11:41 +05:30
|
|
|
help
|
2017-07-21 13:20:55 +05:30
|
|
|
Enabling this feature allows automatic mounting of files (containing
|
|
|
|
filesystem images) via the linux kernel's loopback devices.
|
|
|
|
The mount command will detect you are trying to mount a file instead
|
|
|
|
of a block device, and transparently associate the file with a
|
|
|
|
loopback device. The umount command will also free that loopback
|
|
|
|
device.
|
2006-01-25 05:38:53 +05:30
|
|
|
|
2017-07-21 13:20:55 +05:30
|
|
|
You can still use the 'losetup' utility (to manually associate files
|
|
|
|
with loop devices) if you need to do something advanced, such as
|
|
|
|
specify an offset or cryptographic options to the loopback device.
|
|
|
|
(If you don't want umount to free the loop device, use "umount -D".)
|
2005-07-20 02:25:37 +05:30
|
|
|
|
2010-04-15 01:01:26 +05:30
|
|
|
config FEATURE_MOUNT_LOOP_CREATE
|
|
|
|
bool "Create new loopback devices if needed"
|
2010-06-06 07:44:28 +05:30
|
|
|
default y
|
2010-04-15 01:01:26 +05:30
|
|
|
depends on FEATURE_MOUNT_LOOP
|
|
|
|
help
|
2017-07-21 13:20:55 +05:30
|
|
|
Linux kernels >= 2.6.24 support unlimited loopback devices. They are
|
|
|
|
allocated for use when trying to use a loop device. The loop device
|
|
|
|
must however exist.
|
2010-04-15 01:01:26 +05:30
|
|
|
|
2017-07-21 13:20:55 +05:30
|
|
|
This feature lets mount to try to create next /dev/loopN device
|
|
|
|
if it does not find a free one.
|
2010-04-15 01:01:26 +05:30
|
|
|
|
2006-10-05 15:47:08 +05:30
|
|
|
config FEATURE_MTAB_SUPPORT
|
2017-01-10 19:28:54 +05:30
|
|
|
bool "Support old /etc/mtab file"
|
2002-12-05 14:11:41 +05:30
|
|
|
default n
|
2006-10-05 15:47:08 +05:30
|
|
|
depends on MOUNT || UMOUNT
|
2008-02-17 04:58:42 +05:30
|
|
|
select FEATURE_MOUNT_FAKE
|
2002-12-05 14:11:41 +05:30
|
|
|
help
|
2017-07-21 13:20:55 +05:30
|
|
|
Historically, Unix systems kept track of the currently mounted
|
|
|
|
partitions in the file "/etc/mtab". These days, the kernel exports
|
|
|
|
the list of currently mounted partitions in "/proc/mounts", rendering
|
|
|
|
the old mtab file obsolete. (In modern systems, /etc/mtab should be
|
|
|
|
a symlink to /proc/mounts.)
|
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-11 02:05:54 +05:30
|
|
|
|
2017-07-21 13:20:55 +05:30
|
|
|
The only reason to have mount maintain an /etc/mtab file itself is if
|
|
|
|
your stripped-down embedded system does not have a /proc directory.
|
|
|
|
If you must use this, keep in mind it's inherently brittle (for
|
|
|
|
example a mount under chroot won't update it), can't handle modern
|
|
|
|
features like separate per-process filesystem namespaces, requires
|
|
|
|
that your /etc directory be writable, tends to get easily confused
|
|
|
|
by --bind or --move mounts, won't update if you rename a directory
|
|
|
|
that contains a mount point, and so on. (In brief: avoid.)
|
2006-05-08 07:52:24 +05:30
|
|
|
|
2017-07-21 13:20:55 +05:30
|
|
|
About the only reason to use this is if you've removed /proc from
|
|
|
|
your kernel.
|
2002-12-05 14:11:41 +05:30
|
|
|
|
2013-07-31 19:27:59 +05:30
|
|
|
source util-linux/volume_id/Config.in
|
2010-07-14 10:40:47 +05:30
|
|
|
|
2002-12-05 14:11:41 +05:30
|
|
|
endmenu
|