Lines Matching refs:nfss

335 static void nfs_show_mountd_netid(struct seq_file *m, struct nfs_server *nfss,  in nfs_show_mountd_netid()  argument
338 struct sockaddr *sap = (struct sockaddr *) &nfss->mountd_address; in nfs_show_mountd_netid()
343 switch (nfss->mountd_protocol) { in nfs_show_mountd_netid()
353 switch (nfss->mountd_protocol) { in nfs_show_mountd_netid()
367 static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_options() argument
370 struct sockaddr *sap = (struct sockaddr *)&nfss->mountd_address; in nfs_show_mountd_options()
372 if (nfss->flags & NFS_MOUNT_LEGACY_INTERFACE) in nfs_show_mountd_options()
391 if (nfss->mountd_version || showdefaults) in nfs_show_mountd_options()
392 seq_printf(m, ",mountvers=%u", nfss->mountd_version); in nfs_show_mountd_options()
393 if ((nfss->mountd_port && in nfs_show_mountd_options()
394 nfss->mountd_port != (unsigned short)NFS_UNSPEC_PORT) || in nfs_show_mountd_options()
396 seq_printf(m, ",mountport=%u", nfss->mountd_port); in nfs_show_mountd_options()
398 nfs_show_mountd_netid(m, nfss, showdefaults); in nfs_show_mountd_options()
402 static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_nfsv4_options() argument
405 struct nfs_client *clp = nfss->nfs_client; in nfs_show_nfsv4_options()
410 static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_nfsv4_options() argument
428 static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mount_options() argument
450 struct nfs_client *clp = nfss->nfs_client; in nfs_show_mount_options()
455 seq_printf(m, ",rsize=%u", nfss->rsize); in nfs_show_mount_options()
456 seq_printf(m, ",wsize=%u", nfss->wsize); in nfs_show_mount_options()
457 if (nfss->bsize != 0) in nfs_show_mount_options()
458 seq_printf(m, ",bsize=%u", nfss->bsize); in nfs_show_mount_options()
459 seq_printf(m, ",namlen=%u", nfss->namelen); in nfs_show_mount_options()
460 if (nfss->acregmin != NFS_DEF_ACREGMIN*HZ || showdefaults) in nfs_show_mount_options()
461 seq_printf(m, ",acregmin=%u", nfss->acregmin/HZ); in nfs_show_mount_options()
462 if (nfss->acregmax != NFS_DEF_ACREGMAX*HZ || showdefaults) in nfs_show_mount_options()
463 seq_printf(m, ",acregmax=%u", nfss->acregmax/HZ); in nfs_show_mount_options()
464 if (nfss->acdirmin != NFS_DEF_ACDIRMIN*HZ || showdefaults) in nfs_show_mount_options()
465 seq_printf(m, ",acdirmin=%u", nfss->acdirmin/HZ); in nfs_show_mount_options()
466 if (nfss->acdirmax != NFS_DEF_ACDIRMAX*HZ || showdefaults) in nfs_show_mount_options()
467 seq_printf(m, ",acdirmax=%u", nfss->acdirmax/HZ); in nfs_show_mount_options()
468 if (!(nfss->flags & (NFS_MOUNT_SOFT|NFS_MOUNT_SOFTERR))) in nfs_show_mount_options()
471 if (nfss->flags & nfs_infop->flag) in nfs_show_mount_options()
478 rpc_peeraddr2str(nfss->client, RPC_DISPLAY_NETID)); in nfs_show_mount_options()
485 if (nfss->port != NFS_PORT) in nfs_show_mount_options()
486 seq_printf(m, ",port=%u", nfss->port); in nfs_show_mount_options()
488 if (nfss->port) in nfs_show_mount_options()
489 seq_printf(m, ",port=%u", nfss->port); in nfs_show_mount_options()
491 seq_printf(m, ",timeo=%lu", 10U * nfss->client->cl_timeout->to_initval / HZ); in nfs_show_mount_options()
492 seq_printf(m, ",retrans=%u", nfss->client->cl_timeout->to_retries); in nfs_show_mount_options()
493 seq_printf(m, ",sec=%s", nfs_pseudoflavour_to_name(nfss->client->cl_auth->au_flavor)); in nfs_show_mount_options()
496 nfs_show_mountd_options(m, nfss, showdefaults); in nfs_show_mount_options()
498 nfs_show_nfsv4_options(m, nfss, showdefaults); in nfs_show_mount_options()
500 if (nfss->options & NFS_OPTION_FSCACHE) in nfs_show_mount_options()
503 if (nfss->options & NFS_OPTION_MIGRATION) in nfs_show_mount_options()
506 if (nfss->flags & NFS_MOUNT_LOOKUP_CACHE_NONEG) { in nfs_show_mount_options()
507 if (nfss->flags & NFS_MOUNT_LOOKUP_CACHE_NONE) in nfs_show_mount_options()
513 local_flock = nfss->flags & NFS_MOUNT_LOCAL_FLOCK; in nfs_show_mount_options()
514 local_fcntl = nfss->flags & NFS_MOUNT_LOCAL_FCNTL; in nfs_show_mount_options()
525 if (nfss->flags & NFS_MOUNT_WRITE_EAGER) { in nfs_show_mount_options()
526 if (nfss->flags & NFS_MOUNT_WRITE_WAIT) in nfs_show_mount_options()
538 struct nfs_server *nfss = NFS_SB(root->d_sb); in nfs_show_options() local
540 nfs_show_mount_options(m, nfss, 0); in nfs_show_options()
544 rpc_peeraddr2str(nfss->nfs_client->cl_rpcclient, in nfs_show_options()
584 static void show_implementation_id(struct seq_file *m, struct nfs_server *nfss) in show_implementation_id() argument
586 if (nfss->nfs_client && nfss->nfs_client->cl_implid) { in show_implementation_id()
587 struct nfs41_impl_id *impl_id = nfss->nfs_client->cl_implid; in show_implementation_id()
600 static void show_implementation_id(struct seq_file *m, struct nfs_server *nfss) in show_implementation_id() argument
635 struct nfs_server *nfss = NFS_SB(root->d_sb); in nfs_show_stats() local
636 struct rpc_auth *auth = nfss->client->cl_auth; in nfs_show_stats()
649 nfs_show_mount_options(m, nfss, 1); in nfs_show_stats()
651 seq_printf(m, "\n\tage:\t%lu", (jiffies - nfss->mount_time) / HZ); in nfs_show_stats()
653 show_implementation_id(m, nfss); in nfs_show_stats()
656 seq_printf(m, "caps=0x%x", nfss->caps); in nfs_show_stats()
657 seq_printf(m, ",wtmult=%u", nfss->wtmult); in nfs_show_stats()
658 seq_printf(m, ",dtsize=%u", nfss->dtsize); in nfs_show_stats()
659 seq_printf(m, ",bsize=%u", nfss->bsize); in nfs_show_stats()
660 seq_printf(m, ",namlen=%u", nfss->namelen); in nfs_show_stats()
663 if (nfss->nfs_client->rpc_ops->version == 4) { in nfs_show_stats()
665 seq_printf(m, "bm0=0x%x", nfss->attr_bitmask[0]); in nfs_show_stats()
666 seq_printf(m, ",bm1=0x%x", nfss->attr_bitmask[1]); in nfs_show_stats()
667 seq_printf(m, ",bm2=0x%x", nfss->attr_bitmask[2]); in nfs_show_stats()
668 seq_printf(m, ",acl=0x%x", nfss->acl_bitmask); in nfs_show_stats()
669 show_sessions(m, nfss); in nfs_show_stats()
670 show_pnfs(m, nfss); in nfs_show_stats()
671 show_lease(m, nfss); in nfs_show_stats()
689 stats = per_cpu_ptr(nfss->io_stats, cpu); in nfs_show_stats()
710 if (nfss->options & NFS_OPTION_FSCACHE) { in nfs_show_stats()
718 rpc_clnt_show_stats(m, nfss->client); in nfs_show_stats()
976 nfs_compare_remount_data(struct nfs_server *nfss, in nfs_compare_remount_data() argument
979 if ((ctx->flags ^ nfss->flags) & NFS_REMOUNT_CMP_FLAGMASK || in nfs_compare_remount_data()
980 ctx->rsize != nfss->rsize || in nfs_compare_remount_data()
981 ctx->wsize != nfss->wsize || in nfs_compare_remount_data()
982 ctx->version != nfss->nfs_client->rpc_ops->version || in nfs_compare_remount_data()
983 ctx->minorversion != nfss->nfs_client->cl_minorversion || in nfs_compare_remount_data()
984 ctx->retrans != nfss->client->cl_timeout->to_retries || in nfs_compare_remount_data()
985 !nfs_auth_info_match(&ctx->auth_info, nfss->client->cl_auth->au_flavor) || in nfs_compare_remount_data()
986 ctx->acregmin != nfss->acregmin / HZ || in nfs_compare_remount_data()
987 ctx->acregmax != nfss->acregmax / HZ || in nfs_compare_remount_data()
988 ctx->acdirmin != nfss->acdirmin / HZ || in nfs_compare_remount_data()
989 ctx->acdirmax != nfss->acdirmax / HZ || in nfs_compare_remount_data()
990 ctx->timeo != (10U * nfss->client->cl_timeout->to_initval / HZ) || in nfs_compare_remount_data()
991 (ctx->options & NFS_OPTION_FSCACHE) != (nfss->options & NFS_OPTION_FSCACHE) || in nfs_compare_remount_data()
992 ctx->nfs_server.port != nfss->port || in nfs_compare_remount_data()
993 ctx->nfs_server.addrlen != nfss->nfs_client->cl_addrlen || in nfs_compare_remount_data()
995 (struct sockaddr *)&nfss->nfs_client->cl_addr)) in nfs_compare_remount_data()
1005 struct nfs_server *nfss = sb->s_fs_info; in nfs_reconfigure() local
1031 ret = nfs_compare_remount_data(nfss, ctx); in nfs_reconfigure()
1035 return nfs_probe_server(nfss, NFS_FH(d_inode(fc->root))); in nfs_reconfigure()
1218 struct nfs_server *nfss = NFS_SB(sb); in nfs_get_cache_cookie() local
1222 nfss->fscache = NULL; in nfs_get_cache_cookie()