diff options
Diffstat (limited to 'mount.c')
-rw-r--r-- | mount.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 | ||
121 | extern 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 */ |
119 | static void | 131 | static void |
120 | parse_mount_options ( char *options, unsigned long *flags, char *strflags) | 132 | parse_mount_options ( char *options, unsigned long *flags, char *strflags) |