mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
Make add_metadata_area_to_pv/remove_metadata_area_from_pv static.
No need to put these in format-text.h, it's not used anywhere else actually.
This commit is contained in:
parent
85a1ca1c4b
commit
0b100565ae
@ -1848,7 +1848,7 @@ out:
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int add_metadata_area_to_pv(struct physical_volume *pv,
|
static int _add_metadata_area_to_pv(struct physical_volume *pv,
|
||||||
unsigned mda_index,
|
unsigned mda_index,
|
||||||
uint64_t mda_start,
|
uint64_t mda_start,
|
||||||
uint64_t mda_size,
|
uint64_t mda_size,
|
||||||
@ -2101,7 +2101,7 @@ static int _text_pv_add_metadata_area(const struct format_type *fmt,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Finally, add new metadata area to PV's format instance. */
|
/* Finally, add new metadata area to PV's format instance. */
|
||||||
if (!add_metadata_area_to_pv(pv, mda_index, mda_start,
|
if (!_add_metadata_area_to_pv(pv, mda_index, mda_start,
|
||||||
mda_size, mda_ignored))
|
mda_size, mda_ignored))
|
||||||
return_0;
|
return_0;
|
||||||
}
|
}
|
||||||
@ -2114,7 +2114,7 @@ bad:
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int remove_metadata_area_from_pv(struct physical_volume *pv,
|
static int _remove_metadata_area_from_pv(struct physical_volume *pv,
|
||||||
unsigned mda_index)
|
unsigned mda_index)
|
||||||
{
|
{
|
||||||
if (mda_index >= FMT_TEXT_MAX_MDAS_PER_PV) {
|
if (mda_index >= FMT_TEXT_MAX_MDAS_PER_PV) {
|
||||||
@ -2134,7 +2134,7 @@ static int _text_pv_remove_metadata_area(const struct format_type *fmt,
|
|||||||
struct physical_volume *pv,
|
struct physical_volume *pv,
|
||||||
unsigned mda_index)
|
unsigned mda_index)
|
||||||
{
|
{
|
||||||
return remove_metadata_area_from_pv(pv, mda_index);
|
return _remove_metadata_area_from_pv(pv, mda_index);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int _text_pv_resize(const struct format_type *fmt,
|
static int _text_pv_resize(const struct format_type *fmt,
|
||||||
|
@ -55,14 +55,6 @@ int pvhdr_read(struct device *dev, char *buf);
|
|||||||
int add_da(struct dm_pool *mem, struct dm_list *das,
|
int add_da(struct dm_pool *mem, struct dm_list *das,
|
||||||
uint64_t start, uint64_t size);
|
uint64_t start, uint64_t size);
|
||||||
void del_das(struct dm_list *das);
|
void del_das(struct dm_list *das);
|
||||||
|
|
||||||
int add_metadata_area_to_pv(struct physical_volume *pv,
|
|
||||||
unsigned mda_index,
|
|
||||||
uint64_t mda_start,
|
|
||||||
uint64_t mda_size,
|
|
||||||
unsigned mda_ignored);
|
|
||||||
int remove_metadata_area_from_pv(struct physical_volume *pv,
|
|
||||||
unsigned mda_index);
|
|
||||||
int add_mda(const struct format_type *fmt, struct dm_pool *mem, struct dm_list *mdas,
|
int add_mda(const struct format_type *fmt, struct dm_pool *mem, struct dm_list *mdas,
|
||||||
struct device *dev, uint64_t start, uint64_t size, unsigned ignored);
|
struct device *dev, uint64_t start, uint64_t size, unsigned ignored);
|
||||||
void del_mdas(struct dm_list *mdas);
|
void del_mdas(struct dm_list *mdas);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user