···1818#define NFSDBG_FACILITY NFSDBG_CLIENT19192020/*2121- * Turn off NFSv4 uid/gid mapping when using AUTH_SYS2222- */2323-static bool nfs4_disable_idmapping = true;2424-2525-/*2621 * Get a unique NFSv4.0 callback identifier which will be used2722 * by the V4.0 callback service to lookup the nfs_client struct2823 */···654659 dprintk("<-- nfs4_create_referral_server() = error %d\n", error);655660 return ERR_PTR(error);656661}657657-658658-module_param(nfs4_disable_idmapping, bool, 0644);659659-MODULE_PARM_DESC(nfs4_disable_idmapping,660660- "Turn off NFSv4 idmapping when using 'sec=sys'");
-6
fs/nfs/nfs4proc.c
···72727373#define NFS4_MAX_LOOP_ON_RECOVER (10)74747575-static unsigned short max_session_slots = NFS4_DEF_SLOT_TABLE_SIZE;7676-7775struct nfs4_opendata;7876static int _nfs4_proc_open(struct nfs4_opendata *data);7977static int _nfs4_recover_proc_open(struct nfs4_opendata *data);···69296931 &nfs4_xattr_nfs4_acl_handler,69306932 NULL69316933};69326932-69336933-module_param(max_session_slots, ushort, 0644);69346934-MODULE_PARM_DESC(max_session_slots, "Maximum number of outstanding NFSv4.1 "69356935- "requests the client will negotiate");6936693469376935/*69386936 * Local variables:
-6
fs/nfs/nfs4xdr.c
···852852 XDR_UNIT);853853#endif /* CONFIG_NFS_V4_1 */854854855855-static unsigned short send_implementation_id = 1;856856-857857-module_param(send_implementation_id, ushort, 0644);858858-MODULE_PARM_DESC(send_implementation_id,859859- "Send implementation ID with NFSv4.1 exchange_id");860860-861855static const umode_t nfs_type2fmt[] = {862856 [NF4BAD] = 0,863857 [NF4REG] = S_IFREG,
+45
fs/nfs/super.c
···25742574 return -EINVAL;25752575}2576257625772577+/*25782578+ * NFS v4 module parameters need to stay in the25792579+ * NFS client for backwards compatibility25802580+ */25812581+unsigned int nfs_callback_set_tcpport;25822582+unsigned short nfs_callback_tcpport;25832583+/* Default cache timeout is 10 minutes */25842584+unsigned int nfs_idmap_cache_timeout = 600;25852585+/* Turn off NFSv4 uid/gid mapping when using AUTH_SYS */25862586+bool nfs4_disable_idmapping = true;25872587+unsigned short max_session_slots = NFS4_DEF_SLOT_TABLE_SIZE;25882588+unsigned short send_implementation_id = 1;25892589+25902590+#define NFS_CALLBACK_MAXPORTNR (65535U)25912591+25922592+static int param_set_portnr(const char *val, const struct kernel_param *kp)25932593+{25942594+ unsigned long num;25952595+ int ret;25962596+25972597+ if (!val)25982598+ return -EINVAL;25992599+ ret = strict_strtoul(val, 0, &num);26002600+ if (ret == -EINVAL || num > NFS_CALLBACK_MAXPORTNR)26012601+ return -EINVAL;26022602+ *((unsigned int *)kp->arg) = num;26032603+ return 0;26042604+}26052605+static struct kernel_param_ops param_ops_portnr = {26062606+ .set = param_set_portnr,26072607+ .get = param_get_uint,26082608+};26092609+#define param_check_portnr(name, p) __param_check(name, p, unsigned int);26102610+26112611+module_param_named(callback_tcpport, nfs_callback_set_tcpport, portnr, 0644);26122612+module_param(nfs_idmap_cache_timeout, int, 0644);26132613+module_param(nfs4_disable_idmapping, bool, 0644);26142614+MODULE_PARM_DESC(nfs4_disable_idmapping,26152615+ "Turn off NFSv4 idmapping when using 'sec=sys'");26162616+module_param(max_session_slots, ushort, 0644);26172617+MODULE_PARM_DESC(max_session_slots, "Maximum number of outstanding NFSv4.1 "26182618+ "requests the client will negotiate");26192619+module_param(send_implementation_id, ushort, 0644);26202620+MODULE_PARM_DESC(send_implementation_id,26212621+ "Send implementation ID with NFSv4.1 exchange_id");25772622#endif /* CONFIG_NFS_V4 */