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

i) Add the VISIBLE flag to the text format. (Other changes are pending

for lib/activate.)
This commit is contained in:
Joe Thornber 2002-07-11 15:28:49 +00:00
parent 291906a208
commit 7cc602c800
3 changed files with 8 additions and 1 deletions

View File

@ -39,6 +39,7 @@ static struct flag _lv_flags[] = {
{LVM_READ, "READ"},
{LVM_WRITE, "WRITE"},
{FIXED_MINOR, "FIXED_MINOR"},
{VISIBLE_LV, "VISIBLE"},
{0, NULL}
};

View File

@ -43,7 +43,7 @@
#define SPINDOWN_LV BIT(4) /* LV */
#define BADBLOCK_ON BIT(5) /* LV */
#define FIXED_MINOR BIT(6) /* LV */
#define VISIBLE_LV BIT(7) /* LV */
#define VISIBLE_LV BIT(7) /* LV */
/*
* FIXME: do we really set read/write for a whole vg ?

View File

@ -378,6 +378,12 @@ static int _lvcreate(struct cmd_context *cmd, struct lvcreate_params *lp)
return 0;
}
/*
* For now all logical volumes are visible.
*/
status |= VISIBLE_LV;
if (!(lv = lv_create(vg->fid, lp->lv_name, status, alloc,
lp->stripes, lp->stripe_size, lp->extents,
vg, pvh))) return 0;