From 1339e74d4f1867d984c8e47c7c2af57578c698cf Mon Sep 17 00:00:00 2001 From: grog Date: Fri, 2 Jul 1999 23:57:45 +0000 Subject: [PATCH] Add definitions for simplified config commands Change definition of sflag Reported-by: Johan Karlsson Doug green World-broken-by: grog Pointy-hat-passed-to: grog --- sbin/vinum/vext.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sbin/vinum/vext.h b/sbin/vinum/vext.h index 14685d49b6c4..da9e6c98fa34 100644 --- a/sbin/vinum/vext.h +++ b/sbin/vinum/vext.h @@ -94,6 +94,11 @@ void vinum_replace(int argc, char *argv[], char *argv0[]); void vinum_printconfig(int argc, char *argv[], char *argv0[]); void printconfig(FILE * of, char *comment); void vinum_saveconfig(int argc, char *argv[], char *argv0[]); +void genvolname(); +struct drive *create_drive(char *devicename); +void vinum_concat(int argc, char *argv[], char *argv0[]); +void vinum_stripe(int argc, char *argv[], char *argv0[]); +void vinum_mirror(int argc, char *argv[], char *argv0[]); void vinum_label(int argc, char *argv[], char *arg0[]); void vinum_ld(int argc, char *argv[], char *arg0[]); void vinum_ls(int argc, char *argv[], char *arg0[]); @@ -103,12 +108,14 @@ void start_daemon(void); #ifdef VINUMDEBUG void vinum_debug(int argc, char *argv[], char *arg0[]); #endif +struct drive *find_drive_by_devname(char *name); void make_devices(void); void get_drive_info(struct drive *drive, int index); void get_sd_info(struct sd *sd, int index); void get_plex_sd_info(struct sd *sd, int plexno, int sdno); void get_plex_info(struct plex *plex, int index); void get_volume_info(struct volume *volume, int index); +struct drive *find_drive_by_devname(char *name); int find_object(const char *name, enum objecttype *type); char *lltoa(long long l, char *s); void vinum_ldi(int, int); @@ -125,8 +132,9 @@ extern int force; /* set to 1 to force some dangerous ops */ extern int verbose; /* set verbose operation */ extern int Verbose; /* very verbose operation */ extern int recurse; /* set recursion */ -extern int stats; /* show statistics */ +extern int sflag; /* show statistics */ extern int dowait; /* wait for children to exit */ +extern char *objectname; /* name for some functions */ extern FILE *history; /* history file */ @@ -145,3 +153,5 @@ extern int line; /* stdin line number for error messages */ extern int file_line; /* and line in input file (yes, this is tacky) */ extern char buffer[]; /* buffer to read in to */ + +#define min(a, b) a < b? a: b