1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Reinstate correct permissions when creating mirrors.

This commit is contained in:
Alasdair Kergon 2011-06-29 17:05:53 +00:00
parent 7cc4a70487
commit 1d7649f36b
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.86 -
=================================
Reinstate correct permissions when creating mirrors. [2.02.85]
Append 'm' attribute to pv_attr for missing PVs.
Annotate CLVMD_CMD_SYNC_NAMES in decode_cmd.
Remove enforcement of udev verification when using non-standard /dev location.

View File

@ -2157,7 +2157,8 @@ static int _lv_insert_empty_sublvs(struct logical_volume *lv,
for (i = 0; i < devices; i++) {
sub_lv = lv_create_empty(img_name, NULL,
MIRROR_IMAGE, lv->alloc, lv->vg);
LVM_READ | LVM_WRITE | MIRROR_IMAGE,
lv->alloc, lv->vg);
if (!sub_lv)
return_0;
if (!set_lv_segment_area_lv(mapseg, i, sub_lv, 0, status))