3
0

Config.src 2.4 KB

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