Lines Matching refs:nfss
535 static void nfs_show_mountd_netid(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_netid() argument
538 struct sockaddr *sap = (struct sockaddr *) &nfss->mountd_address; in nfs_show_mountd_netid()
543 switch (nfss->mountd_protocol) { in nfs_show_mountd_netid()
553 switch (nfss->mountd_protocol) { in nfs_show_mountd_netid()
567 static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_options() argument
570 struct sockaddr *sap = (struct sockaddr *)&nfss->mountd_address; in nfs_show_mountd_options()
572 if (nfss->flags & NFS_MOUNT_LEGACY_INTERFACE) in nfs_show_mountd_options()
591 if (nfss->mountd_version || showdefaults) in nfs_show_mountd_options()
592 seq_printf(m, ",mountvers=%u", nfss->mountd_version); in nfs_show_mountd_options()
593 if ((nfss->mountd_port && in nfs_show_mountd_options()
594 nfss->mountd_port != (unsigned short)NFS_UNSPEC_PORT) || in nfs_show_mountd_options()
596 seq_printf(m, ",mountport=%u", nfss->mountd_port); in nfs_show_mountd_options()
598 nfs_show_mountd_netid(m, nfss, showdefaults); in nfs_show_mountd_options()
602 static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_nfsv4_options() argument
605 struct nfs_client *clp = nfss->nfs_client; in nfs_show_nfsv4_options()
610 static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_nfsv4_options() argument
628 static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mount_options() argument
649 struct nfs_client *clp = nfss->nfs_client; in nfs_show_mount_options()
654 seq_printf(m, ",rsize=%u", nfss->rsize); in nfs_show_mount_options()
655 seq_printf(m, ",wsize=%u", nfss->wsize); in nfs_show_mount_options()
656 if (nfss->bsize != 0) in nfs_show_mount_options()
657 seq_printf(m, ",bsize=%u", nfss->bsize); in nfs_show_mount_options()
658 seq_printf(m, ",namlen=%u", nfss->namelen); in nfs_show_mount_options()
659 if (nfss->acregmin != NFS_DEF_ACREGMIN*HZ || showdefaults) in nfs_show_mount_options()
660 seq_printf(m, ",acregmin=%u", nfss->acregmin/HZ); in nfs_show_mount_options()
661 if (nfss->acregmax != NFS_DEF_ACREGMAX*HZ || showdefaults) in nfs_show_mount_options()
662 seq_printf(m, ",acregmax=%u", nfss->acregmax/HZ); in nfs_show_mount_options()
663 if (nfss->acdirmin != NFS_DEF_ACDIRMIN*HZ || showdefaults) in nfs_show_mount_options()
664 seq_printf(m, ",acdirmin=%u", nfss->acdirmin/HZ); in nfs_show_mount_options()
665 if (nfss->acdirmax != NFS_DEF_ACDIRMAX*HZ || showdefaults) in nfs_show_mount_options()
666 seq_printf(m, ",acdirmax=%u", nfss->acdirmax/HZ); in nfs_show_mount_options()
667 if (!(nfss->flags & (NFS_MOUNT_SOFT|NFS_MOUNT_SOFTERR))) in nfs_show_mount_options()
670 if (nfss->flags & nfs_infop->flag) in nfs_show_mount_options()
677 rpc_peeraddr2str(nfss->client, RPC_DISPLAY_NETID)); in nfs_show_mount_options()
682 if (nfss->port != NFS_PORT) in nfs_show_mount_options()
683 seq_printf(m, ",port=%u", nfss->port); in nfs_show_mount_options()
685 if (nfss->port) in nfs_show_mount_options()
686 seq_printf(m, ",port=%u", nfss->port); in nfs_show_mount_options()
688 seq_printf(m, ",timeo=%lu", 10U * nfss->client->cl_timeout->to_initval / HZ); in nfs_show_mount_options()
689 seq_printf(m, ",retrans=%u", nfss->client->cl_timeout->to_retries); in nfs_show_mount_options()
690 seq_printf(m, ",sec=%s", nfs_pseudoflavour_to_name(nfss->client->cl_auth->au_flavor)); in nfs_show_mount_options()
693 nfs_show_mountd_options(m, nfss, showdefaults); in nfs_show_mount_options()
695 nfs_show_nfsv4_options(m, nfss, showdefaults); in nfs_show_mount_options()
697 if (nfss->options & NFS_OPTION_FSCACHE) in nfs_show_mount_options()
700 if (nfss->options & NFS_OPTION_MIGRATION) in nfs_show_mount_options()
703 if (nfss->flags & NFS_MOUNT_LOOKUP_CACHE_NONEG) { in nfs_show_mount_options()
704 if (nfss->flags & NFS_MOUNT_LOOKUP_CACHE_NONE) in nfs_show_mount_options()
710 local_flock = nfss->flags & NFS_MOUNT_LOCAL_FLOCK; in nfs_show_mount_options()
711 local_fcntl = nfss->flags & NFS_MOUNT_LOCAL_FCNTL; in nfs_show_mount_options()
728 struct nfs_server *nfss = NFS_SB(root->d_sb); in nfs_show_options() local
730 nfs_show_mount_options(m, nfss, 0); in nfs_show_options()
734 rpc_peeraddr2str(nfss->nfs_client->cl_rpcclient, in nfs_show_options()
774 static void show_implementation_id(struct seq_file *m, struct nfs_server *nfss) in show_implementation_id() argument
776 if (nfss->nfs_client && nfss->nfs_client->cl_implid) { in show_implementation_id()
777 struct nfs41_impl_id *impl_id = nfss->nfs_client->cl_implid; in show_implementation_id()
790 static void show_implementation_id(struct seq_file *m, struct nfs_server *nfss) in show_implementation_id() argument
825 struct nfs_server *nfss = NFS_SB(root->d_sb); in nfs_show_stats() local
826 struct rpc_auth *auth = nfss->client->cl_auth; in nfs_show_stats()
839 nfs_show_mount_options(m, nfss, 1); in nfs_show_stats()
841 seq_printf(m, "\n\tage:\t%lu", (jiffies - nfss->mount_time) / HZ); in nfs_show_stats()
843 show_implementation_id(m, nfss); in nfs_show_stats()
846 seq_printf(m, "caps=0x%x", nfss->caps); in nfs_show_stats()
847 seq_printf(m, ",wtmult=%u", nfss->wtmult); in nfs_show_stats()
848 seq_printf(m, ",dtsize=%u", nfss->dtsize); in nfs_show_stats()
849 seq_printf(m, ",bsize=%u", nfss->bsize); in nfs_show_stats()
850 seq_printf(m, ",namlen=%u", nfss->namelen); in nfs_show_stats()
853 if (nfss->nfs_client->rpc_ops->version == 4) { in nfs_show_stats()
855 seq_printf(m, "bm0=0x%x", nfss->attr_bitmask[0]); in nfs_show_stats()
856 seq_printf(m, ",bm1=0x%x", nfss->attr_bitmask[1]); in nfs_show_stats()
857 seq_printf(m, ",bm2=0x%x", nfss->attr_bitmask[2]); in nfs_show_stats()
858 seq_printf(m, ",acl=0x%x", nfss->acl_bitmask); in nfs_show_stats()
859 show_sessions(m, nfss); in nfs_show_stats()
860 show_pnfs(m, nfss); in nfs_show_stats()
861 show_lease(m, nfss); in nfs_show_stats()
879 stats = per_cpu_ptr(nfss->io_stats, cpu); in nfs_show_stats()
900 if (nfss->options & NFS_OPTION_FSCACHE) { in nfs_show_stats()
908 rpc_clnt_show_stats(m, nfss->client); in nfs_show_stats()
2248 nfs_compare_remount_data(struct nfs_server *nfss, in nfs_compare_remount_data() argument
2251 if ((data->flags ^ nfss->flags) & NFS_REMOUNT_CMP_FLAGMASK || in nfs_compare_remount_data()
2252 data->rsize != nfss->rsize || in nfs_compare_remount_data()
2253 data->wsize != nfss->wsize || in nfs_compare_remount_data()
2254 data->version != nfss->nfs_client->rpc_ops->version || in nfs_compare_remount_data()
2255 data->minorversion != nfss->nfs_client->cl_minorversion || in nfs_compare_remount_data()
2256 data->retrans != nfss->client->cl_timeout->to_retries || in nfs_compare_remount_data()
2257 !nfs_auth_info_match(&data->auth_info, nfss->client->cl_auth->au_flavor) || in nfs_compare_remount_data()
2258 data->acregmin != nfss->acregmin / HZ || in nfs_compare_remount_data()
2259 data->acregmax != nfss->acregmax / HZ || in nfs_compare_remount_data()
2260 data->acdirmin != nfss->acdirmin / HZ || in nfs_compare_remount_data()
2261 data->acdirmax != nfss->acdirmax / HZ || in nfs_compare_remount_data()
2262 data->timeo != (10U * nfss->client->cl_timeout->to_initval / HZ) || in nfs_compare_remount_data()
2263 (data->options & NFS_OPTION_FSCACHE) != (nfss->options & NFS_OPTION_FSCACHE) || in nfs_compare_remount_data()
2264 data->nfs_server.port != nfss->port || in nfs_compare_remount_data()
2265 data->nfs_server.addrlen != nfss->nfs_client->cl_addrlen || in nfs_compare_remount_data()
2267 (struct sockaddr *)&nfss->nfs_client->cl_addr)) in nfs_compare_remount_data()
2277 struct nfs_server *nfss = sb->s_fs_info; in nfs_remount() local
2281 u32 nfsvers = nfss->nfs_client->rpc_ops->version; in nfs_remount()
2301 data->flags = nfss->flags; in nfs_remount()
2302 data->rsize = nfss->rsize; in nfs_remount()
2303 data->wsize = nfss->wsize; in nfs_remount()
2304 data->retrans = nfss->client->cl_timeout->to_retries; in nfs_remount()
2305 data->selected_flavor = nfss->client->cl_auth->au_flavor; in nfs_remount()
2306 data->acregmin = nfss->acregmin / HZ; in nfs_remount()
2307 data->acregmax = nfss->acregmax / HZ; in nfs_remount()
2308 data->acdirmin = nfss->acdirmin / HZ; in nfs_remount()
2309 data->acdirmax = nfss->acdirmax / HZ; in nfs_remount()
2310 data->timeo = 10U * nfss->client->cl_timeout->to_initval / HZ; in nfs_remount()
2311 data->nfs_server.port = nfss->port; in nfs_remount()
2312 data->nfs_server.addrlen = nfss->nfs_client->cl_addrlen; in nfs_remount()
2314 data->minorversion = nfss->nfs_client->cl_minorversion; in nfs_remount()
2316 memcpy(&data->nfs_server.address, &nfss->nfs_client->cl_addr, in nfs_remount()
2334 error = nfs_compare_remount_data(nfss, data); in nfs_remount()
2567 struct nfs_server *nfss = NFS_SB(sb); in nfs_get_cache_cookie() local
2571 nfss->fscache_key = NULL; in nfs_get_cache_cookie()
2572 nfss->fscache = NULL; in nfs_get_cache_cookie()