Add definitions for simplified config commands

Change definition of sflag

Reported-by:	Johan Karlsson <k@numeri.campus.luth.se>
		Doug <Doug@gorean.org>
		green

World-broken-by:	grog
Pointy-hat-passed-to:	grog
This commit is contained in:
grog 1999-07-02 23:57:45 +00:00
parent d9669335a3
commit 1339e74d4f

View File

@ -94,6 +94,11 @@ void vinum_replace(int argc, char *argv[], char *argv0[]);
void vinum_printconfig(int argc, char *argv[], char *argv0[]); void vinum_printconfig(int argc, char *argv[], char *argv0[]);
void printconfig(FILE * of, char *comment); void printconfig(FILE * of, char *comment);
void vinum_saveconfig(int argc, char *argv[], char *argv0[]); 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_label(int argc, char *argv[], char *arg0[]);
void vinum_ld(int argc, char *argv[], char *arg0[]); void vinum_ld(int argc, char *argv[], char *arg0[]);
void vinum_ls(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 #ifdef VINUMDEBUG
void vinum_debug(int argc, char *argv[], char *arg0[]); void vinum_debug(int argc, char *argv[], char *arg0[]);
#endif #endif
struct drive *find_drive_by_devname(char *name);
void make_devices(void); void make_devices(void);
void get_drive_info(struct drive *drive, int index); void get_drive_info(struct drive *drive, int index);
void get_sd_info(struct sd *sd, 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_sd_info(struct sd *sd, int plexno, int sdno);
void get_plex_info(struct plex *plex, int index); void get_plex_info(struct plex *plex, int index);
void get_volume_info(struct volume *volume, 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); int find_object(const char *name, enum objecttype *type);
char *lltoa(long long l, char *s); char *lltoa(long long l, char *s);
void vinum_ldi(int, int); 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; /* set verbose operation */
extern int Verbose; /* very verbose operation */ extern int Verbose; /* very verbose operation */
extern int recurse; /* set recursion */ extern int recurse; /* set recursion */
extern int stats; /* show statistics */ extern int sflag; /* show statistics */
extern int dowait; /* wait for children to exit */ extern int dowait; /* wait for children to exit */
extern char *objectname; /* name for some functions */
extern FILE *history; /* history file */ 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 int file_line; /* and line in input file (yes, this is tacky) */
extern char buffer[]; /* buffer to read in to */ extern char buffer[]; /* buffer to read in to */
#define min(a, b) a < b? a: b