Lines Matching refs:nfss
530 static void nfs_show_mountd_netid(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_netid() argument
533 struct sockaddr *sap = (struct sockaddr *) &nfss->mountd_address; in nfs_show_mountd_netid()
538 switch (nfss->mountd_protocol) { in nfs_show_mountd_netid()
548 switch (nfss->mountd_protocol) { in nfs_show_mountd_netid()
562 static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_options() argument
565 struct sockaddr *sap = (struct sockaddr *)&nfss->mountd_address; in nfs_show_mountd_options()
567 if (nfss->flags & NFS_MOUNT_LEGACY_INTERFACE) in nfs_show_mountd_options()
586 if (nfss->mountd_version || showdefaults) in nfs_show_mountd_options()
587 seq_printf(m, ",mountvers=%u", nfss->mountd_version); in nfs_show_mountd_options()
588 if ((nfss->mountd_port && in nfs_show_mountd_options()
589 nfss->mountd_port != (unsigned short)NFS_UNSPEC_PORT) || in nfs_show_mountd_options()
591 seq_printf(m, ",mountport=%u", nfss->mountd_port); in nfs_show_mountd_options()
593 nfs_show_mountd_netid(m, nfss, showdefaults); in nfs_show_mountd_options()
597 static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_nfsv4_options() argument
600 struct nfs_client *clp = nfss->nfs_client; in nfs_show_nfsv4_options()
605 static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_nfsv4_options() argument
623 static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mount_options() argument
643 struct nfs_client *clp = nfss->nfs_client; in nfs_show_mount_options()
648 seq_printf(m, ",rsize=%u", nfss->rsize); in nfs_show_mount_options()
649 seq_printf(m, ",wsize=%u", nfss->wsize); in nfs_show_mount_options()
650 if (nfss->bsize != 0) in nfs_show_mount_options()
651 seq_printf(m, ",bsize=%u", nfss->bsize); in nfs_show_mount_options()
652 seq_printf(m, ",namlen=%u", nfss->namelen); in nfs_show_mount_options()
653 if (nfss->acregmin != NFS_DEF_ACREGMIN*HZ || showdefaults) in nfs_show_mount_options()
654 seq_printf(m, ",acregmin=%u", nfss->acregmin/HZ); in nfs_show_mount_options()
655 if (nfss->acregmax != NFS_DEF_ACREGMAX*HZ || showdefaults) in nfs_show_mount_options()
656 seq_printf(m, ",acregmax=%u", nfss->acregmax/HZ); in nfs_show_mount_options()
657 if (nfss->acdirmin != NFS_DEF_ACDIRMIN*HZ || showdefaults) in nfs_show_mount_options()
658 seq_printf(m, ",acdirmin=%u", nfss->acdirmin/HZ); in nfs_show_mount_options()
659 if (nfss->acdirmax != NFS_DEF_ACDIRMAX*HZ || showdefaults) in nfs_show_mount_options()
660 seq_printf(m, ",acdirmax=%u", nfss->acdirmax/HZ); in nfs_show_mount_options()
662 if (nfss->flags & nfs_infop->flag) in nfs_show_mount_options()
669 rpc_peeraddr2str(nfss->client, RPC_DISPLAY_NETID)); in nfs_show_mount_options()
672 if (nfss->port != NFS_PORT) in nfs_show_mount_options()
673 seq_printf(m, ",port=%u", nfss->port); in nfs_show_mount_options()
675 if (nfss->port) in nfs_show_mount_options()
676 seq_printf(m, ",port=%u", nfss->port); in nfs_show_mount_options()
678 seq_printf(m, ",timeo=%lu", 10U * nfss->client->cl_timeout->to_initval / HZ); in nfs_show_mount_options()
679 seq_printf(m, ",retrans=%u", nfss->client->cl_timeout->to_retries); in nfs_show_mount_options()
680 seq_printf(m, ",sec=%s", nfs_pseudoflavour_to_name(nfss->client->cl_auth->au_flavor)); in nfs_show_mount_options()
683 nfs_show_mountd_options(m, nfss, showdefaults); in nfs_show_mount_options()
685 nfs_show_nfsv4_options(m, nfss, showdefaults); in nfs_show_mount_options()
687 if (nfss->options & NFS_OPTION_FSCACHE) in nfs_show_mount_options()
690 if (nfss->options & NFS_OPTION_MIGRATION) in nfs_show_mount_options()
693 if (nfss->flags & NFS_MOUNT_LOOKUP_CACHE_NONEG) { in nfs_show_mount_options()
694 if (nfss->flags & NFS_MOUNT_LOOKUP_CACHE_NONE) in nfs_show_mount_options()
700 local_flock = nfss->flags & NFS_MOUNT_LOCAL_FLOCK; in nfs_show_mount_options()
701 local_fcntl = nfss->flags & NFS_MOUNT_LOCAL_FCNTL; in nfs_show_mount_options()
718 struct nfs_server *nfss = NFS_SB(root->d_sb); in nfs_show_options() local
720 nfs_show_mount_options(m, nfss, 0); in nfs_show_options()
724 rpc_peeraddr2str(nfss->nfs_client->cl_rpcclient, in nfs_show_options()
754 static void show_implementation_id(struct seq_file *m, struct nfs_server *nfss) in show_implementation_id() argument
756 if (nfss->nfs_client && nfss->nfs_client->cl_implid) { in show_implementation_id()
757 struct nfs41_impl_id *impl_id = nfss->nfs_client->cl_implid; in show_implementation_id()
770 static void show_implementation_id(struct seq_file *m, struct nfs_server *nfss) in show_implementation_id() argument
805 struct nfs_server *nfss = NFS_SB(root->d_sb); in nfs_show_stats() local
806 struct rpc_auth *auth = nfss->client->cl_auth; in nfs_show_stats()
819 nfs_show_mount_options(m, nfss, 1); in nfs_show_stats()
821 seq_printf(m, "\n\tage:\t%lu", (jiffies - nfss->mount_time) / HZ); in nfs_show_stats()
823 show_implementation_id(m, nfss); in nfs_show_stats()
826 seq_printf(m, "caps=0x%x", nfss->caps); in nfs_show_stats()
827 seq_printf(m, ",wtmult=%u", nfss->wtmult); in nfs_show_stats()
828 seq_printf(m, ",dtsize=%u", nfss->dtsize); in nfs_show_stats()
829 seq_printf(m, ",bsize=%u", nfss->bsize); in nfs_show_stats()
830 seq_printf(m, ",namlen=%u", nfss->namelen); in nfs_show_stats()
833 if (nfss->nfs_client->rpc_ops->version == 4) { in nfs_show_stats()
835 seq_printf(m, "bm0=0x%x", nfss->attr_bitmask[0]); in nfs_show_stats()
836 seq_printf(m, ",bm1=0x%x", nfss->attr_bitmask[1]); in nfs_show_stats()
837 seq_printf(m, ",bm2=0x%x", nfss->attr_bitmask[2]); in nfs_show_stats()
838 seq_printf(m, ",acl=0x%x", nfss->acl_bitmask); in nfs_show_stats()
839 show_sessions(m, nfss); in nfs_show_stats()
840 show_pnfs(m, nfss); in nfs_show_stats()
858 stats = per_cpu_ptr(nfss->io_stats, cpu); in nfs_show_stats()
879 if (nfss->options & NFS_OPTION_FSCACHE) { in nfs_show_stats()
887 rpc_clnt_show_stats(m, nfss->client); in nfs_show_stats()
2221 nfs_compare_remount_data(struct nfs_server *nfss, in nfs_compare_remount_data() argument
2224 if ((data->flags ^ nfss->flags) & NFS_REMOUNT_CMP_FLAGMASK || in nfs_compare_remount_data()
2225 data->rsize != nfss->rsize || in nfs_compare_remount_data()
2226 data->wsize != nfss->wsize || in nfs_compare_remount_data()
2227 data->version != nfss->nfs_client->rpc_ops->version || in nfs_compare_remount_data()
2228 data->minorversion != nfss->nfs_client->cl_minorversion || in nfs_compare_remount_data()
2229 data->retrans != nfss->client->cl_timeout->to_retries || in nfs_compare_remount_data()
2230 !nfs_auth_info_match(&data->auth_info, nfss->client->cl_auth->au_flavor) || in nfs_compare_remount_data()
2231 data->acregmin != nfss->acregmin / HZ || in nfs_compare_remount_data()
2232 data->acregmax != nfss->acregmax / HZ || in nfs_compare_remount_data()
2233 data->acdirmin != nfss->acdirmin / HZ || in nfs_compare_remount_data()
2234 data->acdirmax != nfss->acdirmax / HZ || in nfs_compare_remount_data()
2235 data->timeo != (10U * nfss->client->cl_timeout->to_initval / HZ) || in nfs_compare_remount_data()
2236 data->nfs_server.port != nfss->port || in nfs_compare_remount_data()
2237 data->nfs_server.addrlen != nfss->nfs_client->cl_addrlen || in nfs_compare_remount_data()
2239 (struct sockaddr *)&nfss->nfs_client->cl_addr)) in nfs_compare_remount_data()
2249 struct nfs_server *nfss = sb->s_fs_info; in nfs_remount() local
2253 u32 nfsvers = nfss->nfs_client->rpc_ops->version; in nfs_remount()
2273 data->flags = nfss->flags; in nfs_remount()
2274 data->rsize = nfss->rsize; in nfs_remount()
2275 data->wsize = nfss->wsize; in nfs_remount()
2276 data->retrans = nfss->client->cl_timeout->to_retries; in nfs_remount()
2277 data->selected_flavor = nfss->client->cl_auth->au_flavor; in nfs_remount()
2278 data->acregmin = nfss->acregmin / HZ; in nfs_remount()
2279 data->acregmax = nfss->acregmax / HZ; in nfs_remount()
2280 data->acdirmin = nfss->acdirmin / HZ; in nfs_remount()
2281 data->acdirmax = nfss->acdirmax / HZ; in nfs_remount()
2282 data->timeo = 10U * nfss->client->cl_timeout->to_initval / HZ; in nfs_remount()
2283 data->nfs_server.port = nfss->port; in nfs_remount()
2284 data->nfs_server.addrlen = nfss->nfs_client->cl_addrlen; in nfs_remount()
2286 data->minorversion = nfss->nfs_client->cl_minorversion; in nfs_remount()
2288 memcpy(&data->nfs_server.address, &nfss->nfs_client->cl_addr, in nfs_remount()
2306 error = nfs_compare_remount_data(nfss, data); in nfs_remount()
2503 struct nfs_server *nfss = NFS_SB(sb); in nfs_get_cache_cookie() local
2507 nfss->fscache_key = NULL; in nfs_get_cache_cookie()
2508 nfss->fscache = NULL; in nfs_get_cache_cookie()