svn commit: trunk/busybox/util-linux

vda at busybox.net vda at busybox.net
Tue Sep 4 11:30:27 PDT 2007


Author: vda
Date: 2007-09-04 11:30:26 -0700 (Tue, 04 Sep 2007)
New Revision: 19782

Log:
mount: ignore NFS bg option on NOMMU machines



Modified:
   trunk/busybox/util-linux/mount.c


Changeset:
Modified: trunk/busybox/util-linux/mount.c
===================================================================
--- trunk/busybox/util-linux/mount.c	2007-09-04 16:22:41 UTC (rev 19781)
+++ trunk/busybox/util-linux/mount.c	2007-09-04 18:30:26 UTC (rev 19782)
@@ -725,6 +725,7 @@
 	return &p;
 }
 
+#if BB_MMU
 static int daemonize(void)
 {
 	int fd;
@@ -744,6 +745,9 @@
 	logmode = LOGMODE_SYSLOG;
 	return 1;
 }
+#else
+static inline int daemonize(void) { return -ENOSYS; }
+#endif
 
 // TODO
 static inline int we_saw_this_host_before(const char *hostname)
@@ -786,7 +790,11 @@
 	int port;
 	int mountport;
 	int proto;
-	int bg;
+#if BB_MMU
+	int bg = 0;
+#else
+	enum { bg = 0 };
+#endif
 	int soft;
 	int intr;
 	int posix;
@@ -867,7 +875,6 @@
 	data.acdirmax	= 60;
 	data.namlen	= NAME_MAX;
 
-	bg = 0;
 	soft = 0;
 	intr = 0;
 	posix = 0;
@@ -1010,10 +1017,14 @@
 			}
 			switch (index_in_strings(options, opt)) {
 			case 0: // "bg"
+#if BB_MMU
 				bg = val;
+#endif
 				break;
 			case 1: // "fg"
+#if BB_MMU
 				bg = !val;
+#endif
 				break;
 			case 2: // "soft"
 				soft = val;



More information about the busybox-cvs mailing list