-/*
- * Reconstruct the mount option string based on a portmapper probe
- * of the server. Returns one if the server's portmapper returned
- * something we can use, otherwise zero.
- *
- * To handle version and transport protocol fallback properly, we
- * need to parse some of the mount options in order to set up a
- * portmap probe. Mount options that nfs_rewrite_mount_options()
- * doesn't recognize are left alone.
- *
- * Returns a new group of mount options if successful; otherwise
- * NULL is returned if some failure occurred.
- */
-static struct mount_options *nfs_rewrite_mount_options(char *str)
-{
- struct mount_options *options;
- char *option, new_option[64];
- clnt_addr_t mnt_server = { };
- clnt_addr_t nfs_server = { };
-
- options = po_split(str);
- if (!options) {
- errno = EFAULT;
- return NULL;
- }
-
- errno = EINVAL;