1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

lv_info_by_lvid

This commit is contained in:
Alasdair Kergon 2004-03-26 15:35:01 +00:00
parent 09c1404182
commit 4bd9480dce
2 changed files with 18 additions and 0 deletions

View File

@ -51,6 +51,11 @@ int lv_info(const struct logical_volume *lv, struct lvinfo *info)
{
return 0;
}
int lv_info_by_lvid(struct cmd_context *cmd, const char *lvid_s,
struct lvinfo *info)
{
return 0;
}
int lv_snapshot_percent(struct logical_volume *lv, float *percent)
{
return 0;
@ -290,6 +295,17 @@ int lv_info(const struct logical_volume *lv, struct lvinfo *info)
return _lv_info(lv, 0, info);
}
int lv_info_by_lvid(struct cmd_context *cmd, const char *lvid_s,
struct lvinfo *info)
{
struct logical_volume *lv;
if (!(lv = lv_from_lvid(cmd, lvid_s)))
return 0;
return _lv_info(lv, 0, info);
}
/*
* Returns 1 if percent set, else 0 on failure.
*/

View File

@ -44,6 +44,8 @@ int lv_mknodes(struct cmd_context *cmd, const struct logical_volume *lv);
* Returns 1 if info structure has been populated, else 0.
*/
int lv_info(const struct logical_volume *lv, struct lvinfo *info);
int lv_info_by_lvid(struct cmd_context *cmd, const char *lvid_s,
struct lvinfo *info);
/*
* Returns 1 if activate_lv has been set: 1 = activate; 0 = don't.