Lines Matching refs:m
187 static int expkey_show(struct seq_file *m, in expkey_show() argument
195 seq_puts(m, "#domain fsidtype fsid [path]\n"); in expkey_show()
199 seq_printf(m, "%s %d 0x", ek->ek_client->name, in expkey_show()
202 seq_printf(m, "%08x", ek->ek_fsid[i]); in expkey_show()
205 seq_printf(m, " "); in expkey_show()
206 seq_path(m, &ek->ek_path, "\\ \t\n"); in expkey_show()
208 seq_printf(m, "\n"); in expkey_show()
630 static void exp_flags(struct seq_file *m, int flag, int fsid,
632 static void show_secinfo(struct seq_file *m, struct svc_export *exp);
634 static int svc_export_show(struct seq_file *m, in svc_export_show() argument
641 seq_puts(m, "#path domain(flags)\n"); in svc_export_show()
645 seq_path(m, &exp->ex_path, " \t\n\\"); in svc_export_show()
646 seq_putc(m, '\t'); in svc_export_show()
647 seq_escape(m, exp->ex_client->name, " \t\n\\"); in svc_export_show()
648 seq_putc(m, '('); in svc_export_show()
651 exp_flags(m, exp->ex_flags, exp->ex_fsid, in svc_export_show()
655 seq_puts(m, ",uuid="); in svc_export_show()
658 seq_putc(m, ':'); in svc_export_show()
659 seq_printf(m, "%02x", exp->ex_uuid[i]); in svc_export_show()
662 show_secinfo(m, exp); in svc_export_show()
664 seq_puts(m, ")\n"); in svc_export_show()
1360 static void *e_start(struct seq_file *m, loff_t *pos) in e_start() argument
1389 static void *e_next(struct seq_file *m, void *p, loff_t *pos) in e_next() argument
1414 static void e_stop(struct seq_file *m, void *p) in e_stop() argument
1441 static void show_expflags(struct seq_file *m, int flags, int mask) in show_expflags() argument
1451 seq_printf(m, "%s%s", first++?",":"", flg->name[state]); in show_expflags()
1455 static void show_secinfo_flags(struct seq_file *m, int flags) in show_secinfo_flags() argument
1457 seq_printf(m, ","); in show_secinfo_flags()
1458 show_expflags(m, flags, NFSEXP_SECINFO_FLAGS); in show_secinfo_flags()
1461 static void show_secinfo(struct seq_file *m, struct svc_export *exp) in show_secinfo() argument
1472 show_secinfo_flags(m, lastflags); in show_secinfo()
1473 seq_printf(m, ",sec=%d", f->pseudoflavor); in show_secinfo()
1476 seq_printf(m, ":%d", f->pseudoflavor); in show_secinfo()
1479 show_secinfo_flags(m, lastflags); in show_secinfo()
1482 static void exp_flags(struct seq_file *m, int flag, int fsid, in exp_flags() argument
1485 show_expflags(m, flag, NFSEXP_ALLFLAGS); in exp_flags()
1487 seq_printf(m, ",fsid=%d", fsid); in exp_flags()
1489 seq_printf(m, ",anonuid=%u", anonu); in exp_flags()
1491 seq_printf(m, ",anongid=%u", anong); in exp_flags()
1496 seq_printf(m, ",%s=", loctype); in exp_flags()
1497 seq_escape(m, fsloc->locations[0].path, ",;@ \t\n\\"); in exp_flags()
1498 seq_putc(m, '@'); in exp_flags()
1499 seq_escape(m, fsloc->locations[0].hosts, ",;@ \t\n\\"); in exp_flags()
1501 seq_putc(m, ';'); in exp_flags()
1502 seq_escape(m, fsloc->locations[i].path, ",;@ \t\n\\"); in exp_flags()
1503 seq_putc(m, '@'); in exp_flags()
1504 seq_escape(m, fsloc->locations[i].hosts, ",;@ \t\n\\"); in exp_flags()
1509 static int e_show(struct seq_file *m, void *p) in e_show() argument
1515 seq_puts(m, "# Version 1.1\n"); in e_show()
1516 seq_puts(m, "# Path Client(Flags) # IPs\n"); in e_show()
1524 return svc_export_show(m, &svc_export_cache, cp); in e_show()