- int kernel_version = linux_version_code();
-
- if (kernel_version) {
- if (kernel_version < MAKE_VERSION(2, 1, 32))
- nfs_mount_data_version = 1;
- else if (kernel_version < MAKE_VERSION(2, 2, 18))
- nfs_mount_data_version = 3;
- else if (kernel_version < MAKE_VERSION(2, 3, 0))
- nfs_mount_data_version = 4;
- else if (kernel_version < MAKE_VERSION(2, 3, 99))
- nfs_mount_data_version = 3;
- else if (kernel_version < MAKE_VERSION(2, 6, 3))
- nfs_mount_data_version = 4;
- else
- nfs_mount_data_version = 6;
- }
- if (nfs_mount_data_version > NFS_MOUNT_VERSION)
- nfs_mount_data_version = NFS_MOUNT_VERSION;
-}
-
-static void print_one(char *spec, char *node, char *type, char *opts)
-{
- if (verbose) {
- printf("%s on %s type %s", spec, node, type);
-
- if (opts != NULL)
- printf(" (%s)", opts);
-
- printf("\n");
- }
-}
-
-/* Try to build a canonical options string. */
-static char * fix_opts_string (int flags, const char *extra_opts) {