super.c (474b313de79e034e269955de23231da769a521b7) super.c (5405fc44c3377358205ab4095fe9c44716aa0900)
1/*
2 * linux/fs/nfs/super.c
3 *
4 * Copyright (C) 1992 Rick Sladkey
5 *
6 * nfs superblock handling functions
7 *
8 * Modularised by Alan Cox <alan@lxorguk.ukuu.org.uk>, while hacking some

--- 2834 unchanged lines hidden (view full) ---

2843 return -EINVAL;
2844}
2845
2846/*
2847 * NFS v4 module parameters need to stay in the
2848 * NFS client for backwards compatibility
2849 */
2850unsigned int nfs_callback_set_tcpport;
1/*
2 * linux/fs/nfs/super.c
3 *
4 * Copyright (C) 1992 Rick Sladkey
5 *
6 * nfs superblock handling functions
7 *
8 * Modularised by Alan Cox <alan@lxorguk.ukuu.org.uk>, while hacking some

--- 2834 unchanged lines hidden (view full) ---

2843 return -EINVAL;
2844}
2845
2846/*
2847 * NFS v4 module parameters need to stay in the
2848 * NFS client for backwards compatibility
2849 */
2850unsigned int nfs_callback_set_tcpport;
2851unsigned short nfs_callback_nr_threads;
2851/* Default cache timeout is 10 minutes */
2852unsigned int nfs_idmap_cache_timeout = 600;
2853/* Turn off NFSv4 uid/gid mapping when using AUTH_SYS */
2854bool nfs4_disable_idmapping = true;
2855unsigned short max_session_slots = NFS4_DEF_SLOT_TABLE_SIZE;
2852/* Default cache timeout is 10 minutes */
2853unsigned int nfs_idmap_cache_timeout = 600;
2854/* Turn off NFSv4 uid/gid mapping when using AUTH_SYS */
2855bool nfs4_disable_idmapping = true;
2856unsigned short max_session_slots = NFS4_DEF_SLOT_TABLE_SIZE;
2857unsigned short max_session_cb_slots = NFS4_DEF_CB_SLOT_TABLE_SIZE;
2856unsigned short send_implementation_id = 1;
2857char nfs4_client_id_uniquifier[NFS4_CLIENT_ID_UNIQ_LEN] = "";
2858bool recover_lost_locks = false;
2859
2858unsigned short send_implementation_id = 1;
2859char nfs4_client_id_uniquifier[NFS4_CLIENT_ID_UNIQ_LEN] = "";
2860bool recover_lost_locks = false;
2861
2862EXPORT_SYMBOL_GPL(nfs_callback_nr_threads);
2860EXPORT_SYMBOL_GPL(nfs_callback_set_tcpport);
2861EXPORT_SYMBOL_GPL(nfs_idmap_cache_timeout);
2862EXPORT_SYMBOL_GPL(nfs4_disable_idmapping);
2863EXPORT_SYMBOL_GPL(max_session_slots);
2863EXPORT_SYMBOL_GPL(nfs_callback_set_tcpport);
2864EXPORT_SYMBOL_GPL(nfs_idmap_cache_timeout);
2865EXPORT_SYMBOL_GPL(nfs4_disable_idmapping);
2866EXPORT_SYMBOL_GPL(max_session_slots);
2867EXPORT_SYMBOL_GPL(max_session_cb_slots);
2864EXPORT_SYMBOL_GPL(send_implementation_id);
2865EXPORT_SYMBOL_GPL(nfs4_client_id_uniquifier);
2866EXPORT_SYMBOL_GPL(recover_lost_locks);
2867
2868#define NFS_CALLBACK_MAXPORTNR (65535U)
2869
2870static int param_set_portnr(const char *val, const struct kernel_param *kp)
2871{

--- 10 unchanged lines hidden (view full) ---

2882}
2883static const struct kernel_param_ops param_ops_portnr = {
2884 .set = param_set_portnr,
2885 .get = param_get_uint,
2886};
2887#define param_check_portnr(name, p) __param_check(name, p, unsigned int);
2888
2889module_param_named(callback_tcpport, nfs_callback_set_tcpport, portnr, 0644);
2868EXPORT_SYMBOL_GPL(send_implementation_id);
2869EXPORT_SYMBOL_GPL(nfs4_client_id_uniquifier);
2870EXPORT_SYMBOL_GPL(recover_lost_locks);
2871
2872#define NFS_CALLBACK_MAXPORTNR (65535U)
2873
2874static int param_set_portnr(const char *val, const struct kernel_param *kp)
2875{

--- 10 unchanged lines hidden (view full) ---

2886}
2887static const struct kernel_param_ops param_ops_portnr = {
2888 .set = param_set_portnr,
2889 .get = param_get_uint,
2890};
2891#define param_check_portnr(name, p) __param_check(name, p, unsigned int);
2892
2893module_param_named(callback_tcpport, nfs_callback_set_tcpport, portnr, 0644);
2894module_param_named(callback_nr_threads, nfs_callback_nr_threads, ushort, 0644);
2895MODULE_PARM_DESC(callback_nr_threads, "Number of threads that will be "
2896 "assigned to the NFSv4 callback channels.");
2890module_param(nfs_idmap_cache_timeout, int, 0644);
2891module_param(nfs4_disable_idmapping, bool, 0644);
2892module_param_string(nfs4_unique_id, nfs4_client_id_uniquifier,
2893 NFS4_CLIENT_ID_UNIQ_LEN, 0600);
2894MODULE_PARM_DESC(nfs4_disable_idmapping,
2895 "Turn off NFSv4 idmapping when using 'sec=sys'");
2896module_param(max_session_slots, ushort, 0644);
2897MODULE_PARM_DESC(max_session_slots, "Maximum number of outstanding NFSv4.1 "
2898 "requests the client will negotiate");
2897module_param(nfs_idmap_cache_timeout, int, 0644);
2898module_param(nfs4_disable_idmapping, bool, 0644);
2899module_param_string(nfs4_unique_id, nfs4_client_id_uniquifier,
2900 NFS4_CLIENT_ID_UNIQ_LEN, 0600);
2901MODULE_PARM_DESC(nfs4_disable_idmapping,
2902 "Turn off NFSv4 idmapping when using 'sec=sys'");
2903module_param(max_session_slots, ushort, 0644);
2904MODULE_PARM_DESC(max_session_slots, "Maximum number of outstanding NFSv4.1 "
2905 "requests the client will negotiate");
2906module_param(max_session_cb_slots, ushort, 0644);
2907MODULE_PARM_DESC(max_session_slots, "Maximum number of parallel NFSv4.1 "
2908 "callbacks the client will process for a given server");
2899module_param(send_implementation_id, ushort, 0644);
2900MODULE_PARM_DESC(send_implementation_id,
2901 "Send implementation ID with NFSv4.1 exchange_id");
2902MODULE_PARM_DESC(nfs4_unique_id, "nfs_client_id4 uniquifier string");
2903
2904module_param(recover_lost_locks, bool, 0644);
2905MODULE_PARM_DESC(recover_lost_locks,
2906 "If the server reports that a lock might be lost, "
2907 "try to recover it risking data corruption.");
2908
2909
2910#endif /* CONFIG_NFS_V4 */
2909module_param(send_implementation_id, ushort, 0644);
2910MODULE_PARM_DESC(send_implementation_id,
2911 "Send implementation ID with NFSv4.1 exchange_id");
2912MODULE_PARM_DESC(nfs4_unique_id, "nfs_client_id4 uniquifier string");
2913
2914module_param(recover_lost_locks, bool, 0644);
2915MODULE_PARM_DESC(recover_lost_locks,
2916 "If the server reports that a lock might be lost, "
2917 "try to recover it risking data corruption.");
2918
2919
2920#endif /* CONFIG_NFS_V4 */