+/*
+ * Try the mount(2) system call.
+ *
+ * Returns 1 if successful. Otherwise, returns zero.
+ * "errno" is set to reflect the individual error.
+ */
+static int try_mount(const char *spec, const char *node, const char *type,
+ int flags, struct mount_options *options, int fake,
+ char **extra_opts)
+{
+ if (strncmp(type, "nfs4", 4) == 0)
+ return try_nfs4mount(spec, node, flags,
+ options, fake, extra_opts);
+ else
+ return try_nfs23mount(spec, node, flags,
+ options, fake, extra_opts);