• Home
  • Raw
  • Download

Lines Matching refs:m

327 static void nfs_show_mountd_netid(struct seq_file *m, struct nfs_server *nfss,  in nfs_show_mountd_netid()  argument
356 seq_printf(m, ",mountproto=%s", proto ?: "auto"); in nfs_show_mountd_netid()
359 static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_options() argument
370 seq_printf(m, ",mountaddr=%pI4", &sin->sin_addr.s_addr); in nfs_show_mountd_options()
375 seq_printf(m, ",mountaddr=%pI6c", &sin6->sin6_addr); in nfs_show_mountd_options()
380 seq_puts(m, ",mountaddr=unspecified"); in nfs_show_mountd_options()
384 seq_printf(m, ",mountvers=%u", nfss->mountd_version); in nfs_show_mountd_options()
388 seq_printf(m, ",mountport=%u", nfss->mountd_port); in nfs_show_mountd_options()
390 nfs_show_mountd_netid(m, nfss, showdefaults); in nfs_show_mountd_options()
394 static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_nfsv4_options() argument
399 seq_printf(m, ",clientaddr=%s", clp->cl_ipaddr); in nfs_show_nfsv4_options()
402 static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_nfsv4_options() argument
408 static void nfs_show_nfs_version(struct seq_file *m, in nfs_show_nfs_version() argument
412 seq_printf(m, ",vers=%u", version); in nfs_show_nfs_version()
414 seq_printf(m, ".%u", minorversion); in nfs_show_nfs_version()
420 static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mount_options() argument
446 nfs_show_nfs_version(m, version, clp->cl_minorversion); in nfs_show_mount_options()
447 seq_printf(m, ",rsize=%u", nfss->rsize); in nfs_show_mount_options()
448 seq_printf(m, ",wsize=%u", nfss->wsize); in nfs_show_mount_options()
450 seq_printf(m, ",bsize=%u", nfss->bsize); in nfs_show_mount_options()
451 seq_printf(m, ",namlen=%u", nfss->namelen); in nfs_show_mount_options()
453 seq_printf(m, ",acregmin=%u", nfss->acregmin/HZ); in nfs_show_mount_options()
455 seq_printf(m, ",acregmax=%u", nfss->acregmax/HZ); in nfs_show_mount_options()
457 seq_printf(m, ",acdirmin=%u", nfss->acdirmin/HZ); in nfs_show_mount_options()
459 seq_printf(m, ",acdirmax=%u", nfss->acdirmax/HZ); in nfs_show_mount_options()
461 seq_puts(m, ",hard"); in nfs_show_mount_options()
464 seq_puts(m, nfs_infop->str); in nfs_show_mount_options()
466 seq_puts(m, nfs_infop->nostr); in nfs_show_mount_options()
469 seq_printf(m, ",proto=%s", in nfs_show_mount_options()
473 seq_printf(m, ",nconnect=%u", clp->cl_nconnect); in nfs_show_mount_options()
476 seq_printf(m, ",port=%u", nfss->port); in nfs_show_mount_options()
479 seq_printf(m, ",port=%u", nfss->port); in nfs_show_mount_options()
481 seq_printf(m, ",timeo=%lu", 10U * nfss->client->cl_timeout->to_initval / HZ); in nfs_show_mount_options()
482 seq_printf(m, ",retrans=%u", nfss->client->cl_timeout->to_retries); in nfs_show_mount_options()
483 seq_printf(m, ",sec=%s", nfs_pseudoflavour_to_name(nfss->client->cl_auth->au_flavor)); in nfs_show_mount_options()
486 nfs_show_mountd_options(m, nfss, showdefaults); in nfs_show_mount_options()
488 nfs_show_nfsv4_options(m, nfss, showdefaults); in nfs_show_mount_options()
491 seq_puts(m, ",fsc"); in nfs_show_mount_options()
494 seq_puts(m, ",migration"); in nfs_show_mount_options()
498 seq_puts(m, ",lookupcache=none"); in nfs_show_mount_options()
500 seq_puts(m, ",lookupcache=pos"); in nfs_show_mount_options()
507 seq_puts(m, ",local_lock=none"); in nfs_show_mount_options()
509 seq_puts(m, ",local_lock=all"); in nfs_show_mount_options()
511 seq_puts(m, ",local_lock=flock"); in nfs_show_mount_options()
513 seq_puts(m, ",local_lock=posix"); in nfs_show_mount_options()
519 int nfs_show_options(struct seq_file *m, struct dentry *root) in nfs_show_options() argument
523 nfs_show_mount_options(m, nfss, 0); in nfs_show_options()
526 seq_printf(m, ",addr=%s", in nfs_show_options()
536 static void show_lease(struct seq_file *m, struct nfs_server *server) in show_lease() argument
541 seq_printf(m, ",lease_time=%ld", clp->cl_lease_time / HZ); in show_lease()
543 seq_printf(m, ",lease_expired=%ld", in show_lease()
547 static void show_sessions(struct seq_file *m, struct nfs_server *server) in show_sessions() argument
550 seq_puts(m, ",sessions"); in show_sessions()
553 static void show_sessions(struct seq_file *m, struct nfs_server *server) {} in show_sessions() argument
558 static void show_pnfs(struct seq_file *m, struct nfs_server *server) in show_pnfs() argument
560 seq_printf(m, ",pnfs="); in show_pnfs()
562 seq_printf(m, "%s", server->pnfs_curr_ld->name); in show_pnfs()
564 seq_printf(m, "not configured"); in show_pnfs()
567 static void show_implementation_id(struct seq_file *m, struct nfs_server *nfss) in show_implementation_id() argument
571 seq_printf(m, "\n\timpl_id:\tname='%s',domain='%s'," in show_implementation_id()
579 static void show_pnfs(struct seq_file *m, struct nfs_server *server) in show_pnfs() argument
583 static void show_implementation_id(struct seq_file *m, struct nfs_server *nfss) in show_implementation_id() argument
588 int nfs_show_devname(struct seq_file *m, struct dentry *root) in nfs_show_devname() argument
599 seq_escape(m, devname, " \t\n\\"); in nfs_show_devname()
605 int nfs_show_path(struct seq_file *m, struct dentry *dentry) in nfs_show_path() argument
607 seq_puts(m, "/"); in nfs_show_path()
615 int nfs_show_stats(struct seq_file *m, struct dentry *root) in nfs_show_stats() argument
622 seq_printf(m, "statvers=%s", NFS_IOSTAT_VERS); in nfs_show_stats()
627 seq_puts(m, "\n\topts:\t"); in nfs_show_stats()
628 seq_puts(m, sb_rdonly(root->d_sb) ? "ro" : "rw"); in nfs_show_stats()
629 seq_puts(m, root->d_sb->s_flags & SB_SYNCHRONOUS ? ",sync" : ""); in nfs_show_stats()
630 seq_puts(m, root->d_sb->s_flags & SB_NOATIME ? ",noatime" : ""); in nfs_show_stats()
631 seq_puts(m, root->d_sb->s_flags & SB_NODIRATIME ? ",nodiratime" : ""); in nfs_show_stats()
632 nfs_show_mount_options(m, nfss, 1); in nfs_show_stats()
634 seq_printf(m, "\n\tage:\t%lu", (jiffies - nfss->mount_time) / HZ); in nfs_show_stats()
636 show_implementation_id(m, nfss); in nfs_show_stats()
638 seq_puts(m, "\n\tcaps:\t"); in nfs_show_stats()
639 seq_printf(m, "caps=0x%x", nfss->caps); in nfs_show_stats()
640 seq_printf(m, ",wtmult=%u", nfss->wtmult); in nfs_show_stats()
641 seq_printf(m, ",dtsize=%u", nfss->dtsize); in nfs_show_stats()
642 seq_printf(m, ",bsize=%u", nfss->bsize); in nfs_show_stats()
643 seq_printf(m, ",namlen=%u", nfss->namelen); in nfs_show_stats()
647 seq_puts(m, "\n\tnfsv4:\t"); in nfs_show_stats()
648 seq_printf(m, "bm0=0x%x", nfss->attr_bitmask[0]); in nfs_show_stats()
649 seq_printf(m, ",bm1=0x%x", nfss->attr_bitmask[1]); in nfs_show_stats()
650 seq_printf(m, ",bm2=0x%x", nfss->attr_bitmask[2]); in nfs_show_stats()
651 seq_printf(m, ",acl=0x%x", nfss->acl_bitmask); in nfs_show_stats()
652 show_sessions(m, nfss); in nfs_show_stats()
653 show_pnfs(m, nfss); in nfs_show_stats()
654 show_lease(m, nfss); in nfs_show_stats()
661 seq_printf(m, "\n\tsec:\tflavor=%u", auth->au_ops->au_flavor); in nfs_show_stats()
663 seq_printf(m, ",pseudoflavor=%u", auth->au_flavor); in nfs_show_stats()
686 seq_puts(m, "\n\tevents:\t"); in nfs_show_stats()
688 seq_printf(m, "%lu ", totals.events[i]); in nfs_show_stats()
689 seq_puts(m, "\n\tbytes:\t"); in nfs_show_stats()
691 seq_printf(m, "%Lu ", totals.bytes[i]); in nfs_show_stats()
694 seq_puts(m, "\n\tfsc:\t"); in nfs_show_stats()
696 seq_printf(m, "%Lu ", totals.fscache[i]); in nfs_show_stats()
699 seq_putc(m, '\n'); in nfs_show_stats()
701 rpc_clnt_show_stats(m, nfss->client); in nfs_show_stats()