From mboxrd@z Thu Jan 1 00:00:00 1970 From: kupcevic@sourceware.org Date: 30 Mar 2007 14:38:33 -0000 Subject: [Cluster-devel] conga/ricci/modules/storage VG.cpp Message-ID: <20070330143833.10492.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: conga Branch: RHEL5 Changes by: kupcevic at sourceware.org 2007-03-30 15:38:33 Modified files: ricci/modules/storage: VG.cpp Log message: storage module: display unused size left in Volume Groups Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/storage/VG.cpp.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.8.2.3&r2=1.8.2.4 --- conga/ricci/modules/storage/VG.cpp 2007/03/20 16:18:55 1.8.2.3 +++ conga/ricci/modules/storage/VG.cpp 2007/03/30 14:38:33 1.8.2.4 @@ -106,6 +106,10 @@ _props.get("extents_total").get_int() * _props.get("extent_size").get_int(); _props.set(Variable("size", size)); + long long free_size = + _props.get("extents_free").get_int() * _props.get("extent_size").get_int(); + _props.set(Variable("size_free", free_size)); + bool rem = true; for (list >::const_iterator iter = targets.begin(); iter != targets.end(); @@ -128,8 +132,6 @@ // ### new targets ### - long long free_size = - _props.get("extents_free").get_int() * _props.get("extent_size").get_int(); if (free_size == 0) return;