Ganeti 2.4.4 hugepages patch

Without this patch, if you allocate hugepages, Ganeti won't count your free hugepages as available. This patch fix it. Apply in /usr/local/lib/python2.6/dist-packages/ganeti/hypervisor. Restart ganeti after patching.

--- hv_base.py.orig     2011-09-09 13:33:53.629370457 +0800
+++ hv_base.py  2011-09-09 13:38:09.441370720 +0800
@@ -385,6 +385,8 @@
             result['memory_total'] = int(val.split()[0])/1024
           elif key in ('MemFree', 'Buffers', 'Cached'):
             sum_free += int(val.split()[0])/1024
+          elif key == 'HugePages_Free':
+           sum_free += int(val.split()[0])*2
           elif key == 'Active':
             result['memory_dom0'] = int(val.split()[0])/1024
     except (ValueError, TypeError), err: