summaryrefslogtreecommitdiff
path: root/util-linux/mount.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-09-04 18:30:26 +0000
committerDenis Vlasenko2007-09-04 18:30:26 +0000
commitf0000653e90fdbddcd49adb69909ab60c88feda5 (patch)
treeff0f31ed8b10e7219125de6a0a77253d2d1bd74a /util-linux/mount.c
parent21b83cfb275e723559559c24e8df22a7dc5723a9 (diff)
downloadbusybox-f0000653e90fdbddcd49adb69909ab60c88feda5.zip
busybox-f0000653e90fdbddcd49adb69909ab60c88feda5.tar.gz
mount: ignore NFS bg option on NOMMU machines
Diffstat (limited to 'util-linux/mount.c')
-rw-r--r--util-linux/mount.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index e7818ac..3aadbf7 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -725,6 +725,7 @@ next:
return &p;
}
+#if BB_MMU
static int daemonize(void)
{
int fd;
@@ -744,6 +745,9 @@ static int daemonize(void)
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 @@ static int nfsmount(struct mntent *mp, int vfsflags, char *filteropts)
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 @@ static int nfsmount(struct mntent *mp, int vfsflags, char *filteropts)
data.acdirmax = 60;
data.namlen = NAME_MAX;
- bg = 0;
soft = 0;
intr = 0;
posix = 0;
@@ -1010,10 +1017,14 @@ static int nfsmount(struct mntent *mp, int vfsflags, char *filteropts)
}
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;