1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 18:55:19 +03:00
LVM2 mirror repository https://sourceware.org/lvm2/
Go to file
Tony Asleson 20ffb0f721 python-lvm: Ensure library handle is correct after python gc() call
In a previous commit we added the ability for the library to do garbage
collection, to free all the memory used by the library handle buffer by closing
and re-opening the library handle.  When we introduced this functionality we
also opened up the opportunity that the user of the python bindings to have
an object that references the old library handle.  In this case if the user
tried to use the old object a segmentation fault could occur because the
memory had been previously freed.

This patch tries to mitigate this by storing a copy of the library handle that
was used when the object was created so that it can compare the current in
use pointer with what existed when the object was created.  In the case where
they match the operation is permitted to continue, otherwise an exception is
throw, thus avoiding a segmentation fault.

Signed-off-by: Tony Asleson <tasleson@redhat.com>
2013-11-19 14:40:27 -06:00
autoconf Using Fedora 14's autoreconf. 2011-01-07 14:38:34 +00:00
conf Makefile: fix build in non src dir 2013-11-19 10:55:11 +01:00
daemons gcc: replace #ifdef linux with __linux__ 2013-11-13 13:56:29 +00:00
doc conf: add separate 'conf' dir for config files 2013-07-02 15:22:11 +02:00
include reporting: Add devtypes command. 2013-09-18 01:09:15 +01:00
lib metadata: Make the fid mda routines a little more resilient. 2013-11-18 18:00:49 +01:00
libdaemon gcc: replace #ifdef linux with __linux__ 2013-11-13 13:56:29 +00:00
libdm cleanup: do not pass uninitialized space to selinux. 2013-11-15 12:38:37 +01:00
liblvm lvm2app: lvm_list_pvs_free seg. fault when no PVs 2013-08-14 15:17:39 -05:00
man pvscan: use major:minor as short form of --major and --minor arg for pvscan --cache 2013-10-22 13:52:18 +02:00
old-tests Add .gitignore files for an in-source-tree build. 2012-06-08 16:26:21 +01:00
po INSTALL rules updates 2010-04-09 21:42:48 +00:00
python python-lvm: Ensure library handle is correct after python gc() call 2013-11-19 14:40:27 -06:00
report-generators add copyright notices to new files 2010-07-28 12:20:38 +00:00
reports [REPORT-GENERATORS] cut down stylsheet.css to what we actually use 2010-07-21 10:00:38 +00:00
scripts cleanup: for commit 546db1c 2013-10-23 09:48:33 +02:00
test tests: skip raid test on 3.12.0 2013-11-19 11:49:33 +01:00
tools report: Print UUIDs for missing PVs when possible. 2013-11-17 22:36:13 +01:00
udev udev: wrong line in previous commit 2013-10-30 14:28:43 +01:00
unit-tests cleanup: replace memset with struct initilization 2012-06-22 13:23:03 +02:00
.gitignore gitignore: Ignore files ending in ~ 2012-06-11 16:13:02 +01:00
acinclude.m4 configure: check more compile flags 2013-10-25 01:00:10 +02:00
aclocal.m4 configure: detect compiler flag 2013-10-25 00:41:36 +02:00
configure configure: check more compile flags 2013-10-25 01:00:10 +02:00
configure.in configure: check more compile flags 2013-10-25 01:00:10 +02:00
COPYING Outline docs 2001-12-31 16:12:40 +00:00
COPYING.LIB Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
INSTALL quick review of docs 2008-11-04 17:49:22 +00:00
make.tmpl.in configure: check more compile flags 2013-10-25 01:00:10 +02:00
Makefile.in Makefile: add missing deps 2013-09-23 12:13:51 +02:00
README Rename git report from LVM2.git to lvm2.git. 2012-06-08 17:41:43 +01:00
VERSION post-release 2013-11-13 14:11:11 +00:00
VERSION_DM post-release 2013-11-13 14:11:11 +00:00
WHATS_NEW Makefile: fix build in non src dir 2013-11-19 10:55:11 +01:00
WHATS_NEW_DM libdm: catch wrongly reported values 2013-11-15 12:38:37 +01:00

This tree contains the LVM2 and device-mapper tools and libraries.

For more information about LVM2 read the changelog in the WHATS_NEW file.
Installation instructions are in INSTALL.

There is no warranty - see COPYING and COPYING.LIB.

Tarballs are available from:
  ftp://sources.redhat.com/pub/lvm2/

The source code is stored in git:
  http://git.fedorahosted.org/git/lvm2.git
  git clone git://git.fedorahosted.org/git/lvm2.git

Mailing list for general discussion related to LVM2:
  linux-lvm@redhat.com
  Subscribe from https://www.redhat.com/mailman/listinfo/linux-lvm

Mailing lists for LVM2 development, patches and commits:
  lvm-devel@redhat.com
  Subscribe from https://www.redhat.com/mailman/listinfo/linux-lvm

  lvm2-commits@lists.fedorahosted.org (Read-only archive of commits)
  Subscribe from https://fedorahosted.org/mailman/listinfo/lvm2-commits

Mailing list for device-mapper development, including kernel patches
and multipath-tools:
  dm-devel@redhat.com
  Subscribe from https://www.redhat.com/mailman/listinfo/dm-devel

The source code repository used until 7th June 2012 is accessible here:
  http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/?cvsroot=lvm2.