[BusyBox] mount -a, using sysfs()

Glenn McGrath bug1 at optushome.com.au
Thu Mar 1 10:47:24 UTC 2001


Actually, i think this looks better, same size though.

Glenn
-------------- next part --------------
Common subdirectories: ./busybox.orig/CVS and ./busybox/CVS
Common subdirectories: ./busybox.orig/CVSROOT and ./busybox/CVSROOT
Common subdirectories: ./busybox.orig/debian and ./busybox/debian
Common subdirectories: ./busybox.orig/docs and ./busybox/docs
Common subdirectories: ./busybox.orig/kernel-patches and ./busybox/kernel-patches
diff -U 3 ./busybox.orig/mount.c ./busybox/mount.c
--- ./busybox.orig/mount.c	Thu Mar  1 18:55:49 2001
+++ ./busybox/mount.c	Thu Mar  1 21:20:55 2001
@@ -246,6 +246,13 @@
 
 		while(i < num_of_filesystems) {
 			sysfs(2, i++, filesystemType);
+			if ((strcmp(filesystemType, "tmpfs") == 0) ||
+				(strcmp(filesystemType, "shm") == 0) ||
+				(strcmp(filesystemType, "proc") == 0) ||
+				(strcmp(filesystemType, "ramfs") == 0) ||
+				(strcmp(filesystemType, "devpts") == 0)) {
+				continue;
+			}
 			status = do_mount(blockDevice, directory, filesystemType,
 					flags | MS_MGC_VAL, string_flags,
 					useMtab, fakeIt, mtab_opts);
Common subdirectories: ./busybox.orig/pwd_grp and ./busybox/pwd_grp
Common subdirectories: ./busybox.orig/scripts and ./busybox/scripts
Common subdirectories: ./busybox.orig/tests and ./busybox/tests


More information about the busybox mailing list