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:
parent
291906a208
commit
7cc602c800
@ -39,6 +39,7 @@ static struct flag _lv_flags[] = {
|
||||
{LVM_READ, "READ"},
|
||||
{LVM_WRITE, "WRITE"},
|
||||
{FIXED_MINOR, "FIXED_MINOR"},
|
||||
{VISIBLE_LV, "VISIBLE"},
|
||||
{0, NULL}
|
||||
};
|
||||
|
||||
|
@ -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 ?
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user