[BusyBox] Fixes for NFS mounts
Pavel Roskin
pavel_roskin at geocities.com
Tue Jun 6 15:53:41 UTC 2000
Hello!
Changelog:
* "mount" now reports errors from nfsmount() and assumes NFS
mount if ':' is present in the device name - Pavel Roskin
I want to have an approval before committing. The CVS server is down
anyway.
Regards,
Pavel Roskin
=================================
diff -u -r1.7 mount.c
--- mount.c 2000/05/17 20:57:41 1.7
+++ mount.c 2000/06/06 15:42:04
@@ -483,11 +483,14 @@
} else {
if (device && directory) {
#ifdef BB_NFSMOUNT
+ if (strchr(device, ':') != NULL)
+ filesystemType = "nfs";
if (strcmp(filesystemType, "nfs") == 0) {
- if (nfsmount
- (device, directory, &flags, &extra_opts, &string_flags,
- 1) != 0)
- exit(FALSE);
+ int ret;
+ ret = nfsmount (device, directory, &flags,
+ &extra_opts, &string_flags, 1);
+ if (ret != 0)
+ fatalError("nfsmount failed: %s\n", strerror(errno));
}
#endif
exit(mount_one(device, directory, filesystemType,
=================================
More information about the busybox
mailing list