aboutsummaryrefslogtreecommitdiff
path: root/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'mount.c')
-rw-r--r--mount.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/mount.c b/mount.c
index 1ec9cbb5b..ee6fe15e6 100644
--- a/mount.c
+++ b/mount.c
@@ -115,6 +115,18 @@ do_mount(char* specialfile, char* dir, char* filesystemtype,
115#endif 115#endif
116 116
117 117
118#if defined BB_MTAB
119#define whine_if_fstab_is_missing() {}
120#else
121extern void whine_if_fstab_is_missing()
122{
123 struct stat statBuf;
124 if (stat("/etc/fstab", &statBuf) < 0)
125 fprintf(stderr, "/etc/fstab file missing -- install one to name /dev/root.\n\n");
126}
127#endif
128
129
118/* Seperate standard mount options from the nonstandard string options */ 130/* Seperate standard mount options from the nonstandard string options */
119static void 131static void
120parse_mount_options ( char *options, unsigned long *flags, char *strflags) 132parse_mount_options ( char *options, unsigned long *flags, char *strflags)