Lines Matching refs:nfss
513 static void nfs_show_mountd_netid(struct seq_file *m, struct nfs_server *nfss,
516 struct sockaddr *sap = (struct sockaddr *) &nfss->mountd_address;
521 switch (nfss->mountd_protocol) {
534 switch (nfss->mountd_protocol) {
552 static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss,
555 struct sockaddr *sap = (struct sockaddr *)&nfss->mountd_address;
557 if (nfss->flags & NFS_MOUNT_LEGACY_INTERFACE)
576 if (nfss->mountd_version || showdefaults)
577 seq_printf(m, ",mountvers=%u", nfss->mountd_version);
578 if (nfss->mountd_port || showdefaults)
579 seq_printf(m, ",mountport=%u", nfss->mountd_port);
581 nfs_show_mountd_netid(m, nfss, showdefaults);
585 static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss,
588 struct nfs_client *clp = nfss->nfs_client;
594 static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss,
603 static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss,
623 struct nfs_client *clp = nfss->nfs_client;
627 seq_printf(m, ",rsize=%u", nfss->rsize);
628 seq_printf(m, ",wsize=%u", nfss->wsize);
629 if (nfss->bsize != 0)
630 seq_printf(m, ",bsize=%u", nfss->bsize);
631 seq_printf(m, ",namlen=%u", nfss->namelen);
632 if (nfss->acregmin != NFS_DEF_ACREGMIN*HZ || showdefaults)
633 seq_printf(m, ",acregmin=%u", nfss->acregmin/HZ);
634 if (nfss->acregmax != NFS_DEF_ACREGMAX*HZ || showdefaults)
635 seq_printf(m, ",acregmax=%u", nfss->acregmax/HZ);
636 if (nfss->acdirmin != NFS_DEF_ACDIRMIN*HZ || showdefaults)
637 seq_printf(m, ",acdirmin=%u", nfss->acdirmin/HZ);
638 if (nfss->acdirmax != NFS_DEF_ACDIRMAX*HZ || showdefaults)
639 seq_printf(m, ",acdirmax=%u", nfss->acdirmax/HZ);
641 if (nfss->flags & nfs_infop->flag)
647 rpc_peeraddr2str(nfss->client, RPC_DISPLAY_NETID));
649 if (nfss->port != NFS_PORT)
650 seq_printf(m, ",port=%u", nfss->port);
652 if (nfss->port)
653 seq_printf(m, ",port=%u", nfss->port);
655 seq_printf(m, ",timeo=%lu", 10U * nfss->client->cl_timeout->to_initval / HZ);
656 seq_printf(m, ",retrans=%u", nfss->client->cl_timeout->to_retries);
657 seq_printf(m, ",sec=%s", nfs_pseudoflavour_to_name(nfss->client->cl_auth->au_flavor));
660 nfs_show_mountd_options(m, nfss, showdefaults);
662 nfs_show_nfsv4_options(m, nfss, showdefaults);
664 if (nfss->options & NFS_OPTION_FSCACHE)
667 if (nfss->flags & NFS_MOUNT_LOOKUP_CACHE_NONEG) {
668 if (nfss->flags & NFS_MOUNT_LOOKUP_CACHE_NONE)
680 struct nfs_server *nfss = NFS_SB(mnt->mnt_sb);
682 nfs_show_mount_options(m, nfss, 0);
685 rpc_peeraddr2str(nfss->nfs_client->cl_rpcclient,
697 struct nfs_server *nfss = NFS_SB(mnt->mnt_sb);
698 struct rpc_auth *auth = nfss->client->cl_auth;
711 nfs_show_mount_options(m, nfss, 1);
713 seq_printf(m, "\n\tage:\t%lu", (jiffies - nfss->mount_time) / HZ);
716 seq_printf(m, "caps=0x%x", nfss->caps);
717 seq_printf(m, ",wtmult=%u", nfss->wtmult);
718 seq_printf(m, ",dtsize=%u", nfss->dtsize);
719 seq_printf(m, ",bsize=%u", nfss->bsize);
720 seq_printf(m, ",namlen=%u", nfss->namelen);
723 if (nfss->nfs_client->rpc_ops->version == 4) {
725 seq_printf(m, "bm0=0x%x", nfss->attr_bitmask[0]);
726 seq_printf(m, ",bm1=0x%x", nfss->attr_bitmask[1]);
727 seq_printf(m, ",acl=0x%x", nfss->acl_bitmask);
745 stats = per_cpu_ptr(nfss->io_stats, cpu);
766 if (nfss->options & NFS_OPTION_FSCACHE) {
774 rpc_print_iostats(m, nfss->client);
1940 nfs_compare_remount_data(struct nfs_server *nfss,
1943 if (data->flags != nfss->flags ||
1944 data->rsize != nfss->rsize ||
1945 data->wsize != nfss->wsize ||
1946 data->retrans != nfss->client->cl_timeout->to_retries ||
1947 data->auth_flavors[0] != nfss->client->cl_auth->au_flavor ||
1948 data->acregmin != nfss->acregmin / HZ ||
1949 data->acregmax != nfss->acregmax / HZ ||
1950 data->acdirmin != nfss->acdirmin / HZ ||
1951 data->acdirmax != nfss->acdirmax / HZ ||
1952 data->timeo != (10U * nfss->client->cl_timeout->to_initval / HZ) ||
1953 data->nfs_server.port != nfss->port ||
1954 data->nfs_server.addrlen != nfss->nfs_client->cl_addrlen ||
1956 (struct sockaddr *)&nfss->nfs_client->cl_addr))
1966 struct nfs_server *nfss = sb->s_fs_info;
1970 u32 nfsvers = nfss->nfs_client->rpc_ops->version;
1988 data->flags = nfss->flags;
1989 data->rsize = nfss->rsize;
1990 data->wsize = nfss->wsize;
1991 data->retrans = nfss->client->cl_timeout->to_retries;
1992 data->auth_flavors[0] = nfss->client->cl_auth->au_flavor;
1993 data->acregmin = nfss->acregmin / HZ;
1994 data->acregmax = nfss->acregmax / HZ;
1995 data->acdirmin = nfss->acdirmin / HZ;
1996 data->acdirmax = nfss->acdirmax / HZ;
1997 data->timeo = 10U * nfss->client->cl_timeout->to_initval / HZ;
1998 data->nfs_server.port = nfss->port;
1999 data->nfs_server.addrlen = nfss->nfs_client->cl_addrlen;
2000 memcpy(&data->nfs_server.address, &nfss->nfs_client->cl_addr,
2009 error = nfs_compare_remount_data(nfss, data);