Discussion:
[Libstoragemgmt-devel] [SCM] libstoragemgmt branch, master, updated. 1.0.0-2-geb9ec73
Tony Asleson
2014-09-15 18:41:53 UTC
Permalink
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libstoragemgmt".

The branch, master has been updated
via eb9ec7323c556101d4376710448637a38bebfe1e (commit)
from ec8d91da7352449580015afff3317cd9c6c0f0d0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit eb9ec7323c556101d4376710448637a38bebfe1e
Author: Gris Ge <***@redhat.com>
Date: Fri Sep 12 14:18:46 2014 +0800

Target plugin: Fix volume_create() when pass size less than 512

* Targetd is using LibLVM which do 'size / SECTOR_SIZE'. (SECTOR_SIZE == 512)
This will cause two issue:
1. When less than 512, LibLVM will raise error:
Unable to create LV without size.
2. New volume size is always less or equal to requested.
But LVM definition require new volume size bigger or equal than
requested.

* Just do a 512 round up would workaround this issue.

Changes in V2(Thanks to Tony for suggestions)
* Use 512 instead of 1 >> 9.
* Round up size to 512 before passing to targetd.

Signed-off-by: Gris Ge <***@redhat.com>

-----------------------------------------------------------------------

Summary of changes:
plugin/targetd/targetd.py | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)


hooks/post-receive
--
libstoragemgmt
Loading...