Changeset View
Changeset View
Standalone View
Standalone View
sbin/mdconfig/mdconfig.c
Show First 20 Lines • Show All 417 Lines • ▼ Show 20 Lines | md_set_file(const char *fn) | ||||
if (mdio.md_mediasize == 0) | if (mdio.md_mediasize == 0) | ||||
mdio.md_mediasize = sb.st_size; | mdio.md_mediasize = sb.st_size; | ||||
close(fd); | close(fd); | ||||
} | } | ||||
/* | /* | ||||
* Lists md(4) disks. Is used also as a query routine, since it handles XML | * Lists md(4) disks. Is used also as a query routine, since it handles XML | ||||
* interface. 'units' can be NULL for listing memory disks. It might be | * interface. 'units' can be NULL for listing memory disks. It might be | ||||
* coma-separated string containing md(4) disk names. 'opt' distinguished | * comma-separated string containing md(4) disk names. 'opt' distinguished | ||||
* between list and query mode. | * between list and query mode. | ||||
*/ | */ | ||||
static int | static int | ||||
md_list(const char *units, int opt, const char *fflag) | md_list(const char *units, int opt, const char *fflag) | ||||
{ | { | ||||
struct gmesh gm; | struct gmesh gm; | ||||
struct gprovider *pp; | struct gprovider *pp; | ||||
struct gconf *gc; | struct gconf *gc; | ||||
▲ Show 20 Lines • Show All 163 Lines • Show Last 20 Lines |