Reduce the size of mount (and bypass /proc/filesystems) by using the sysfs

system call, based on work done by Glenn McGrath in December.
 -Erik
This commit is contained in:
Eric Andersen
2001-03-01 07:50:04 +00:00
parent 93ba60f01d
commit 7b91f02021
3 changed files with 28 additions and 122 deletions

View File

@@ -63,8 +63,8 @@
#include <sys/syscall.h>
#include <linux/unistd.h>
/* Busybox mount uses either /proc/filesystems or /dev/mtab to get the
* list of available filesystems used for the -t auto option */
/* Busybox mount uses either /proc/mounts or /dev/mtab to
* get the list of currently mounted filesystems */
#if defined BB_MOUNT || defined BB_UMOUNT || defined BB_DF
# if defined BB_MTAB
const char mtab_file[] = "/etc/mtab";