• Home
  • Raw
  • Download

Lines Matching refs:m

535 static void nfs_show_mountd_netid(struct seq_file *m, struct nfs_server *nfss,  in nfs_show_mountd_netid()  argument
564 seq_printf(m, ",mountproto=%s", proto ?: "auto"); 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
578 seq_printf(m, ",mountaddr=%pI4", &sin->sin_addr.s_addr); in nfs_show_mountd_options()
583 seq_printf(m, ",mountaddr=%pI6c", &sin6->sin6_addr); in nfs_show_mountd_options()
588 seq_puts(m, ",mountaddr=unspecified"); in nfs_show_mountd_options()
592 seq_printf(m, ",mountvers=%u", nfss->mountd_version); 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
607 seq_printf(m, ",clientaddr=%s", clp->cl_ipaddr); 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
616 static void nfs_show_nfs_version(struct seq_file *m, in nfs_show_nfs_version() argument
620 seq_printf(m, ",vers=%u", version); in nfs_show_nfs_version()
622 seq_printf(m, ".%u", minorversion); in nfs_show_nfs_version()
628 static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mount_options() argument
653 nfs_show_nfs_version(m, version, clp->cl_minorversion); 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()
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()
660 seq_printf(m, ",acregmin=%u", nfss->acregmin/HZ); in nfs_show_mount_options()
662 seq_printf(m, ",acregmax=%u", nfss->acregmax/HZ); in nfs_show_mount_options()
664 seq_printf(m, ",acdirmin=%u", nfss->acdirmin/HZ); in nfs_show_mount_options()
666 seq_printf(m, ",acdirmax=%u", nfss->acdirmax/HZ); in nfs_show_mount_options()
668 seq_puts(m, ",hard"); in nfs_show_mount_options()
671 seq_puts(m, nfs_infop->str); in nfs_show_mount_options()
673 seq_puts(m, nfs_infop->nostr); in nfs_show_mount_options()
676 seq_printf(m, ",proto=%s", in nfs_show_mount_options()
680 seq_printf(m, ",nconnect=%u", clp->cl_nconnect); in nfs_show_mount_options()
683 seq_printf(m, ",port=%u", 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()
698 seq_puts(m, ",fsc"); in nfs_show_mount_options()
701 seq_puts(m, ",migration"); in nfs_show_mount_options()
705 seq_puts(m, ",lookupcache=none"); in nfs_show_mount_options()
707 seq_puts(m, ",lookupcache=pos"); in nfs_show_mount_options()
714 seq_puts(m, ",local_lock=none"); in nfs_show_mount_options()
716 seq_puts(m, ",local_lock=all"); in nfs_show_mount_options()
718 seq_puts(m, ",local_lock=flock"); in nfs_show_mount_options()
720 seq_puts(m, ",local_lock=posix"); in nfs_show_mount_options()
726 int nfs_show_options(struct seq_file *m, struct dentry *root) in nfs_show_options() argument
730 nfs_show_mount_options(m, nfss, 0); in nfs_show_options()
733 seq_printf(m, ",addr=%s", in nfs_show_options()
743 static void show_lease(struct seq_file *m, struct nfs_server *server) in show_lease() argument
748 seq_printf(m, ",lease_time=%ld", clp->cl_lease_time / HZ); in show_lease()
750 seq_printf(m, ",lease_expired=%ld", in show_lease()
754 static void show_sessions(struct seq_file *m, struct nfs_server *server) in show_sessions() argument
757 seq_puts(m, ",sessions"); in show_sessions()
760 static void show_sessions(struct seq_file *m, struct nfs_server *server) {} in show_sessions() argument
765 static void show_pnfs(struct seq_file *m, struct nfs_server *server) in show_pnfs() argument
767 seq_printf(m, ",pnfs="); in show_pnfs()
769 seq_printf(m, "%s", server->pnfs_curr_ld->name); in show_pnfs()
771 seq_printf(m, "not configured"); in show_pnfs()
774 static void show_implementation_id(struct seq_file *m, struct nfs_server *nfss) in show_implementation_id() argument
778 seq_printf(m, "\n\timpl_id:\tname='%s',domain='%s'," in show_implementation_id()
786 static void show_pnfs(struct seq_file *m, struct nfs_server *server) in show_pnfs() argument
790 static void show_implementation_id(struct seq_file *m, struct nfs_server *nfss) in show_implementation_id() argument
795 int nfs_show_devname(struct seq_file *m, struct dentry *root) in nfs_show_devname() argument
806 seq_escape(m, devname, " \t\n\\"); in nfs_show_devname()
812 int nfs_show_path(struct seq_file *m, struct dentry *dentry) in nfs_show_path() argument
814 seq_puts(m, "/"); in nfs_show_path()
822 int nfs_show_stats(struct seq_file *m, struct dentry *root) in nfs_show_stats() argument
829 seq_printf(m, "statvers=%s", NFS_IOSTAT_VERS); in nfs_show_stats()
834 seq_puts(m, "\n\topts:\t"); in nfs_show_stats()
835 seq_puts(m, sb_rdonly(root->d_sb) ? "ro" : "rw"); in nfs_show_stats()
836 seq_puts(m, root->d_sb->s_flags & SB_SYNCHRONOUS ? ",sync" : ""); in nfs_show_stats()
837 seq_puts(m, root->d_sb->s_flags & SB_NOATIME ? ",noatime" : ""); in nfs_show_stats()
838 seq_puts(m, root->d_sb->s_flags & SB_NODIRATIME ? ",nodiratime" : ""); 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()
845 seq_puts(m, "\n\tcaps:\t"); 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()
854 seq_puts(m, "\n\tnfsv4:\t"); 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()
868 seq_printf(m, "\n\tsec:\tflavor=%u", auth->au_ops->au_flavor); in nfs_show_stats()
870 seq_printf(m, ",pseudoflavor=%u", auth->au_flavor); in nfs_show_stats()
893 seq_puts(m, "\n\tevents:\t"); in nfs_show_stats()
895 seq_printf(m, "%lu ", totals.events[i]); in nfs_show_stats()
896 seq_puts(m, "\n\tbytes:\t"); in nfs_show_stats()
898 seq_printf(m, "%Lu ", totals.bytes[i]); in nfs_show_stats()
901 seq_puts(m, "\n\tfsc:\t"); in nfs_show_stats()
903 seq_printf(m, "%Lu ", totals.fscache[i]); in nfs_show_stats()
906 seq_putc(m, '\n'); in nfs_show_stats()
908 rpc_clnt_show_stats(m, nfss->client); in nfs_show_stats()