]> sourceware.org Git - lvm2.git/commit
python-lvm: Implement proper refcounting for parent objects
authorAndy Grover <agrover@redhat.com>
Wed, 17 Oct 2012 19:55:25 +0000 (12:55 -0700)
committerAndy Grover <agrover@redhat.com>
Wed, 17 Oct 2012 19:55:25 +0000 (12:55 -0700)
commit0e47639a44e1630250ea10643f5a440281edfdce
tree4bfce18d0ca2f2036b9301a7d3cc27d2e56a6124
parentbf2741376d47411994d4065863acab8e405ff5c7
python-lvm: Implement proper refcounting for parent objects

Our object nesting:

lib -> VG -> LV -> lvseg
          -> PV -> pvseg

Implement refcounting and checks to ensure parent objects are not
dealloced before their children. Also ensure calls to self or child's
methods are handled cleanly for objects that have been closed or removed.

Ensure all functions that are object methods have a first parameter named
'self', for consistency

Rename local vars that reference a Python object to '*obj', in order to
differentiate from liblvm handles

Fix a misspelled pv method name

Signed-off-by: Andy Grover <agrover@redhat.com>
python/liblvm.c
This page took 0.040925 seconds and 5 git commands to generate.