Changeset View
Changeset View
Standalone View
Standalone View
sys/geom/part/g_part_if.m
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
# Default implementations of methods. | # Default implementations of methods. | ||||
CODE { | CODE { | ||||
static void | static void | ||||
default_fullname(struct g_part_table *table, | default_fullname(struct g_part_table *table, | ||||
struct g_part_entry *entry, struct sbuf *sb, const char *pfx) | struct g_part_entry *entry, struct sbuf *sb, const char *pfx) | ||||
{ | { | ||||
char buf[32]; | char buf[32]; | ||||
sbuf_printf(sb, "%s%s", pfx, | sbuf_printf(sb, "%s%s%s", pfx, g_part_separator, | ||||
G_PART_NAME(table, entry, buf, sizeof(buf))); | G_PART_NAME(table, entry, buf, sizeof(buf))); | ||||
} | } | ||||
static int | static int | ||||
default_precheck(struct g_part_table *t __unused, | default_precheck(struct g_part_table *t __unused, | ||||
enum g_part_ctl r __unused, struct g_part_parms *p __unused) | enum g_part_ctl r __unused, struct g_part_parms *p __unused) | ||||
{ | { | ||||
return (0); | return (0); | ||||
▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines |