MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mount_devctl_event_mntopt

Function mount_devctl_event_mntopt

freebsd/kern/vfs_mount.c:2481–2500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2479};
2480
2481static void
2482mount_devctl_event_mntopt(struct sbuf *sb, const char *what, struct vfsoptlist *opts)
2483{
2484 struct vfsopt *opt;
2485
2486 if (opts == NULL || TAILQ_EMPTY(opts))
2487 return;
2488 sbuf_printf(sb, " %s=\"", what);
2489 TAILQ_FOREACH(opt, opts, link) {
2490 if (opt->name[0] == '\0' || (opt->len > 0 && *(char *)opt->value == '\0'))
2491 continue;
2492 devctl_safe_quote_sb(sb, opt->name);
2493 if (opt->len > 0) {
2494 sbuf_putc(sb, '=');
2495 devctl_safe_quote_sb(sb, opt->value);
2496 }
2497 sbuf_putc(sb, ';');
2498 }
2499 sbuf_putc(sb, '"');
2500}
2501
2502#define DEVCTL_LEN 1024
2503static void

Callers 1

mount_devctl_eventFunction · 0.85

Calls 3

sbuf_printfFunction · 0.85
devctl_safe_quote_sbFunction · 0.85
sbuf_putcFunction · 0.85

Tested by

no test coverage detected