mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Add fixed offset to imported pool minor numbers.
This commit is contained in:
parent
6b71063b6d
commit
f1b2dad435
@ -1,5 +1,7 @@
|
||||
Version 2.01.04 -
|
||||
Version 2.01.04 - 9th February 2005
|
||||
===================================
|
||||
Add fixed offset to imported pool minor numbers.
|
||||
Update binary pathnames in clvmd_init_rhel4.
|
||||
lvm2cmd.so should skip the check for open fds.
|
||||
Remove unused -f from pvmove.
|
||||
Gulm clvmd doesn't report "connection refused" errors.
|
||||
|
@ -20,6 +20,8 @@
|
||||
#include "metadata.h"
|
||||
#include "pool.h"
|
||||
|
||||
#define MINOR_OFFSET 65536
|
||||
|
||||
/* From NSP.cf */
|
||||
#define NSPMajorVersion 4
|
||||
#define NSPMinorVersion 1
|
||||
|
@ -108,7 +108,7 @@ int import_pool_lvs(struct volume_group *vg, struct pool *mem, struct list *pls)
|
||||
/* for pool a minor of 0 is dynamic */
|
||||
if (pl->pd.pl_minor) {
|
||||
lv->status |= FIXED_MINOR;
|
||||
lv->minor = pl->pd.pl_minor;
|
||||
lv->minor = pl->pd.pl_minor + MINOR_OFFSET;
|
||||
} else {
|
||||
lv->minor = -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user