Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=c9e8e7c235a14d8a…
Commit: c9e8e7c235a14d8ada78b88d467f659b8e72554b
Parent: bdcfe8c6de26472562a8f907081e0eb94e038488
Author: Peter Rajnoha <prajnoha(a)redhat.com>
AuthorDate: Sun Jun 23 11:14:34 2013 +0200
Committer: Peter Rajnoha <prajnoha(a)redhat.com>
CommitterDate: Sun Jun 23 12:39:35 2013 +0200
dev-type: dev_get_primary_dev: fix ret value if dev is a partition and we used sysfs
---
lib/device/dev-type.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/device/dev-type.c b/lib/device/dev-type.c
index a8340b0..642ee27 100644
--- a/lib/device/dev-type.c
+++ b/lib/device/dev-type.c
@@ -434,7 +434,7 @@ int dev_get_primary_dev(struct dev_types *dt, struct device *dev, dev_t *result)
goto out;
}
*result = MKDEV((dev_t)major, minor);
- ret = 1;
+ ret = 2;
out:
if (fp && fclose(fp))
log_sys_error("fclose", path);
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=8215846aa52b727c…
Commit: 8215846aa52b727c3c639d9b354d611319be26c6
Parent: a6d13308ec0baca9a5bd48f80d02e5c71a54287f
Author: Jonathan Brassow <jbrassow(a)redhat.com>
AuthorDate: Wed Jun 19 19:55:34 2013 -0500
Committer: Jonathan Brassow <jbrassow(a)redhat.com>
CommitterDate: Wed Jun 19 19:55:34 2013 -0500
Clean-up: WHATS_NEW
Choosing between two entries and forgot to remove one.
---
WHATS_NEW | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/WHATS_NEW b/WHATS_NEW
index d527854..c24f576 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,7 +1,6 @@
Version 2.02.99 -
===================================
Use mirror_segtype_default if type not specified for linear->mirror upconvert.
- Make upconvert from linear use mirror_segtype_default to determine segtype.
Fix use of too big chunks of memory when communication with lvmetad.
Fix vgcfgrestore crash when specified incorrect vg name.
Refine lvm.conf and man page documentation for autoactivation feature.
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=155841c349c58e23…
Commit: 155841c349c58e2332802d85f3c39b8933cdd761
Parent: e3d39217794731402cedddb9cbaebf75c08c97ba
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Tue Jun 18 21:58:13 2013 +0200
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Tue Jun 18 22:12:51 2013 +0200
lvmetad: fix compare function
Check for enough space in preallocated buffer.
Fixes problem, when lvm code started to suddenly allocate
too big memory chunks.
TODO: lvmetad protocol should announce needed size ahead,
so if metadata have 1MB we are not reallocating memory...
---
WHATS_NEW | 1 +
libdaemon/client/daemon-io.c | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/WHATS_NEW b/WHATS_NEW
index 1eb440f..19bcf82 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
Version 2.02.99 -
===================================
+ Fix use of too big chunks of memory when communication with lvmetad.
Fix vgcfgrestore crash when specified incorrect vg name.
Refine lvm.conf and man page documentation for autoactivation feature.
Add support for thin volumes in vgsplit.
diff --git a/libdaemon/client/daemon-io.c b/libdaemon/client/daemon-io.c
index 37f2744..6ede8a8 100644
--- a/libdaemon/client/daemon-io.c
+++ b/libdaemon/client/daemon-io.c
@@ -41,7 +41,7 @@ int buffer_read(int fd, struct buffer *buffer) {
buffer->used -= 4;
break; /* success, we have the full message now */
}
- if (buffer->used - buffer->allocated < 32)
+ if (buffer->allocated - buffer->used < 32)
if (!buffer_realloc(buffer, 1024))
goto fail;
continue;