imsm: 'volume' is the proper name for imsm container members

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
Dan Williams 2008-06-13 17:42:09 -07:00
parent f4d11639d1
commit 8b35327854
2 changed files with 22 additions and 22 deletions

View File

@ -453,7 +453,7 @@ extern struct superswitch {
int external; int external;
} super0, super1, super_ddf, super_ddf_bvd, super_ddf_svd, *superlist[]; } super0, super1, super_ddf, super_ddf_bvd, super_ddf_svd, *superlist[];
extern struct superswitch super_imsm, super_imsm_raid; extern struct superswitch super_imsm, super_imsm_volume;
struct supertype { struct supertype {
struct superswitch *ss; struct superswitch *ss;

View File

@ -156,18 +156,18 @@ static struct supertype *match_metadata_desc_imsm(char *arg)
return st; return st;
} }
static struct supertype *match_metadata_desc_imsm_raid(char *arg) static struct supertype *match_metadata_desc_imsm_volume(char *arg)
{ {
struct supertype *st; struct supertype *st;
if (strcmp(arg, "imsm/raid") != 0 && if (strcmp(arg, "imsm/volume") != 0 &&
strcmp(arg, "raid") != 0 && strcmp(arg, "raid") != 0 &&
strcmp(arg, "default") != 0 strcmp(arg, "default") != 0
) )
return NULL; return NULL;
st = malloc(sizeof(*st)); st = malloc(sizeof(*st));
st->ss = &super_imsm_raid; st->ss = &super_imsm_volume;
st->max_devs = IMSM_MAX_DEVICES; st->max_devs = IMSM_MAX_DEVICES;
st->minor_version = 0; st->minor_version = 0;
st->sb = NULL; st->sb = NULL;
@ -451,7 +451,7 @@ static void getinfo_super_imsm(struct supertype *st, struct mdinfo *info)
strcpy(info->text_version, "imsm"); strcpy(info->text_version, "imsm");
} }
static void getinfo_super_imsm_raid(struct supertype *st, struct mdinfo *info) static void getinfo_super_imsm_volume(struct supertype *st, struct mdinfo *info)
{ {
printf("%s\n", __FUNCTION__); printf("%s\n", __FUNCTION__);
@ -922,9 +922,9 @@ static int init_super_imsm(struct supertype *st, mdu_array_info_t *info,
return 0; return 0;
} }
static int init_super_imsm_raid(struct supertype *st, mdu_array_info_t *info, static int init_super_imsm_volume(struct supertype *st, mdu_array_info_t *info,
unsigned long long size, char *name, unsigned long long size, char *name,
char *homehost, int *uuid) char *homehost, int *uuid)
{ {
printf("%s\n", __FUNCTION__); printf("%s\n", __FUNCTION__);
@ -937,8 +937,8 @@ static void add_to_super_imsm(struct supertype *st, mdu_disk_info_t *dinfo,
printf("%s\n", __FUNCTION__); printf("%s\n", __FUNCTION__);
} }
static void add_to_super_imsm_raid(struct supertype *st, mdu_disk_info_t *dinfo, static void add_to_super_imsm_volume(struct supertype *st, mdu_disk_info_t *dinfo,
int fd, char *devname) int fd, char *devname)
{ {
printf("%s\n", __FUNCTION__); printf("%s\n", __FUNCTION__);
} }
@ -971,7 +971,7 @@ static void getinfo_super_n_imsm_container(struct supertype *st, struct mdinfo *
info->component_size = sect; info->component_size = sect;
} }
static void getinfo_super_n_raid(struct supertype *st, struct mdinfo *info) static void getinfo_super_n_imsm_volume(struct supertype *st, struct mdinfo *info)
{ {
printf("%s\n", __FUNCTION__); printf("%s\n", __FUNCTION__);
} }
@ -995,10 +995,10 @@ static int validate_geometry_imsm_container(struct supertype *st, int level,
return 0; return 0;
} }
static int validate_geometry_imsm_raid(struct supertype *st, int level, static int validate_geometry_imsm_volume(struct supertype *st, int level,
int layout, int raiddisks, int chunk, int layout, int raiddisks, int chunk,
unsigned long long size, char *subdev, unsigned long long size, char *subdev,
unsigned long long *freesize) unsigned long long *freesize)
{ {
printf("%s\n", __FUNCTION__); printf("%s\n", __FUNCTION__);
@ -1400,20 +1400,20 @@ struct superswitch super_imsm_container = {
.external = 1, .external = 1,
}; };
struct superswitch super_imsm_raid = { struct superswitch super_imsm_volume = {
.update_super = update_super_imsm, .update_super = update_super_imsm,
.init_super = init_super_imsm_raid, .init_super = init_super_imsm_volume,
.add_to_super = add_to_super_imsm_raid, .add_to_super = add_to_super_imsm_volume,
.getinfo_super = getinfo_super_imsm_raid, .getinfo_super = getinfo_super_imsm_volume,
.getinfo_super_n = getinfo_super_n_raid, .getinfo_super_n = getinfo_super_n_imsm_volume,
.write_init_super = write_init_super_imsm, .write_init_super = write_init_super_imsm,
.load_super = load_super_imsm, .load_super = load_super_imsm,
.free_super = free_super_imsm, .free_super = free_super_imsm,
.match_metadata_desc = match_metadata_desc_imsm_raid, .match_metadata_desc = match_metadata_desc_imsm_volume,
.validate_geometry = validate_geometry_imsm_raid, .validate_geometry = validate_geometry_imsm_volume,
.major = 2001, .major = 2001,
.swapuuid = 0, .swapuuid = 0,
.external = 2, .external = 2,