From 02dbb6666ad3c7f386ffb1e7e5e89da2736fd91b Mon Sep 17 00:00:00 2001 From: Greg Lehey Date: Tue, 2 Mar 1999 06:53:42 +0000 Subject: [PATCH] New function return_drive_space Add definitions of vinum_inactive and free_vinum, formerly local to vinum.c vinum_scandisk now returns int (error number) --- sys/dev/vinum/vinumext.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/dev/vinum/vinumext.h b/sys/dev/vinum/vinumext.h index 9f02e6726943..8476e6b8aeb1 100644 --- a/sys/dev/vinum/vinumext.h +++ b/sys/dev/vinum/vinumext.h @@ -56,6 +56,8 @@ struct proc; #endif #ifdef KERNEL +int vinum_inactive(void); +void free_vinum(int); int give_sd_to_plex(int plexno, int sdno); int give_plex_to_volume(int volno, int plexno); struct drive *check_drive(char *); @@ -74,6 +76,7 @@ int find_drive(const char *name, int create); int find_drive_by_dev(const char *devname, int create); int get_empty_sd(void); int find_subdisk(const char *name, int create); +void return_drive_space(int driveno, int64_t offset, int length); void free_sd(int sdno); void free_volume(int volno); int get_empty_plex(void); @@ -102,7 +105,7 @@ void remove_sd_entry(int sdno, int force, int recurse); void remove_plex_entry(int plexno, int force, int recurse); void remove_volume_entry(int volno, int force, int recurse); -void checkernel(char *); +void checkdiskconfig(char *); int open_drive(struct drive *, struct proc *, int); void close_drive(struct drive *drive); int driveio(struct drive *, char *, size_t, off_t, int); @@ -120,7 +123,7 @@ void free_drive(struct drive *drive); void down_drive(struct drive *drive); void remove_drive(int driveno); -void vinum_scandisk(char *drivename[], int drives); +int vinum_scandisk(char *drivename[], int drives); /* I/O */ d_open_t vinumopen;