1
0
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:
Alasdair Kergon 2005-02-09 17:49:36 +00:00
parent 6b71063b6d
commit f1b2dad435
4 changed files with 7 additions and 3 deletions

View File

@ -1 +1 @@
2.01.04-cvs (2005-02-01) 2.01.04-cvs (2005-02-09)

View File

@ -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. lvm2cmd.so should skip the check for open fds.
Remove unused -f from pvmove. Remove unused -f from pvmove.
Gulm clvmd doesn't report "connection refused" errors. Gulm clvmd doesn't report "connection refused" errors.

View File

@ -20,6 +20,8 @@
#include "metadata.h" #include "metadata.h"
#include "pool.h" #include "pool.h"
#define MINOR_OFFSET 65536
/* From NSP.cf */ /* From NSP.cf */
#define NSPMajorVersion 4 #define NSPMajorVersion 4
#define NSPMinorVersion 1 #define NSPMinorVersion 1

View File

@ -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 */ /* for pool a minor of 0 is dynamic */
if (pl->pd.pl_minor) { if (pl->pd.pl_minor) {
lv->status |= FIXED_MINOR; lv->status |= FIXED_MINOR;
lv->minor = pl->pd.pl_minor; lv->minor = pl->pd.pl_minor + MINOR_OFFSET;
} else { } else {
lv->minor = -1; lv->minor = -1;
} }