summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* python-lvm: Properly cleanup when interpreter exitsdevAndy Grover2012-10-091-0/+8
| | | | Signed-off-by: Andy Grover <agrover@redhat.com>
* python-lvm: Remove percent_to_floatAndy Grover2012-10-091-16/+0
| | | | | | Not supported in liblvm. Signed-off-by: Andy Grover <agrover@redhat.com>
* python-lvm: Remove liblvm objectAndy Grover2012-10-091-172/+89
| | | | | | | | | | Instead of requiring users to create a liblvm object, and then calling methods on it, the module acquires a liblvm handle as part of initialization. This makes it impossible to instantiate a liblvm object with a different systemdir, but there is an alternate envvar method for that obscure use case. Signed-off-by: Andy Grover <agrover@redhat.com>
* python-lvm: Remove Yoda conditionalsAndy Grover2012-10-091-3/+3
| | | | | | Coding style. Signed-off-by: Andy Grover <agrover@redhat.com>
* python-lvm: Add example code for python-lvm.Andy Grover2012-10-091-0/+107
| | | | | | | | Basic example code for using python-lvm. Originally written by agrover but fixed and improved by tasleson. Signed-off-by: Andy Grover <agrover@redhat.com>
* python-lvm: build infrastructureAndy Grover2012-10-095-1/+65
| | | | | | | | | | | Add a Makefile.in and setup.py.in, along with changes to upper build files as necessary. Add --enable-python-bindings configure option Add install_python_bindings target to toplevel makefile Signed-off-by: Andy Grover <agrover@redhat.com>
* python-lvm: feature parity with liblvmTony Asleson2012-10-091-1/+496
| | | | | | | | | | This patch set brings python-lvm up to date with the features that are currently in lvm2app.h. Minimal unit testing has been done at this time. Signed-off-by: Tony Asleson <tasleson@redhat.com> Signed-off-by: Andy Grover <agrover@redhat.com>
* python-lvm: initial checkin of liblvm.c in liblvm/python/Andy Grover2012-10-091-0/+1217
| | | | | | | | | | | This is a Python C module that wraps liblvm2app's functionality. Originally written by Lars Sjostrom, I have cleaned it up extensively, and it's working well for me. It encapsulates liblvm objects in Python objects, and the object methods are very thin wrappers around the base liblvm library calls. Signed-off-by: Andy Grover <agrover@redhat.com>
* test: more thin testsZdenek Kabelac2012-10-093-0/+168
|
* test: move raid10 test into separate test filesZdenek Kabelac2012-10-094-57/+89
| | | | New features tested in new files.
* test: split raid testsZdenek Kabelac2012-10-092-33/+58
| | | | | | | Separate original raid test and new raid10 test, so the old could be tested on platforms without raid10 support. Replace test-unfriendly `ls /dev/mapper` with dmsetup ls
* lvchange: do not start dmevent for resynZdenek Kabelac2012-10-092-2/+5
| | | | | If monitoring is disabled in lvm.conf, avoid its starting and preserve DMEVENTD_MONITOR_IGNORE settings internally.
* example.conf: Warn about running lvmetad with use_lvmetad = 0.Petr Rockai2012-10-091-0/+3
|
* test: ignore modprobe failureZdenek Kabelac2012-10-091-1/+1
| | | | | If the system doesn't have modprobe but happens to have modules loaded, allow version testing.
* TEST: Check that LVM1 VGs work when using lvmetad (BZ 863401).Petr Rockai2012-10-091-0/+21
|
* lvmetad: Fix a leak on duplicated PVs (same PVID, different device).Petr Rockai2012-10-091-8/+25
|
* lvmetad: Fix a leak in an error path in update_metadata.Petr Rockai2012-10-081-0/+2
|
* TEST: Give lvmetad a chance to exit gracefully upon teardown.Petr Rockai2012-10-081-1/+3
|
* TEST: Wait for lvmetad socket to appear in "aux prepare_lvmetad".Petr Rockai2012-10-081-2/+2
|
* TEST: When INTERACTIVE=1, allow scripts to control a TTY.Petr Rockai2012-10-081-6/+13
|
* lvmetad: Fix a typo-induced leak in destroy_metadata_hashes.Petr Rockai2012-10-081-0/+1
|
* libdaemon-client: Fix a memory leak in daemon_send.Petr Rockai2012-10-081-4/+8
|
* libdaemon-server: Optimize logging for a fast no-output path.Petr Rockai2012-10-081-0/+16
|
* libdaemon-server: Fix a memory leak in daemon_log_multi.Petr Rockai2012-10-081-0/+1
|
* systemd: remove ExecStartPost from lvm2-lvmetad.service.Peter Rajnoha2012-10-082-1/+1
| | | | | | The ExecStartPost with pvscan --cache in lvm2-lvmetad.service is not needed now as this is called transparently within the first LVM command that queries lvmetad.
* dev-cache: Make dev_iter_create work with a NULL filter.Petr Rockai2012-10-081-2/+6
|
* test: move raid test to separate testsZdenek Kabelac2012-10-083-56/+120
| | | | | | Revert changes to origin lvcreate-large test and use separate test scripts for raid - so they can be properly skipped when kernel doesn't support raid targets.
* lvmetad: In pvscan --cache, update the token directly.Petr Rockai2012-10-081-15/+18
|
* test: check snap_percent returns invalidZdenek Kabelac2012-10-081-0/+4
| | | | For thin_volumes snap_percent is meaningless.
* report: call snapshot percent with cow onlyZdenek Kabelac2012-10-082-1/+4
| | | | Ensure lv_snapshot_percent is used only with snapshot LVs.
* lvconvert: disable convertion of thin to mirrorsZdenek Kabelac2012-10-082-0/+8
| | | | | | For now this convertions is not supported, thus disabled. The only supported conversion for now is to create mirrored thin pools from mirrored devices.
* lvmetad: Avoid overlapping locks that could cause a deadlock (BZ 862253).Petr Rockai2012-10-081-4/+12
|
* TEST: Only run the pvscan --cache test with lvmetad active.Petr Rockai2012-10-081-0/+2
|
* TEST: Add lvmetad-pvscan-cache to check that pvscan --cache works.Petr Rockai2012-10-071-0/+21
|
* test: lvm2api thin data_percentZdenek Kabelac2012-10-053-3/+112
|
* test: check data_percent is equal to snap_percentZdenek Kabelac2012-10-051-0/+5
|
* lvm2api: fix data percent reporting for thin, snapZdenek Kabelac2012-10-052-0/+7
| | | | | Use same logic for lvm2api as we use lvs reporting. data_percent is meant to be superset for snap_percent.
* RAID: Do not allow RAID LVs in a cluster volume group.Jonathan Brassow2012-10-033-3/+30
| | | | | | | | | It would be possible to activate a RAID LV exclusively in a cluster volume group, but for now we do not allow RAID LVs to exist in a clustered volume group at all. This has two components: 1) Do not allow RAID LVs to be created in a clustered VG 2) Do not allow changing a VG from single-machine to clustered if there are RAID LVs present.
* thin: lvconvertZdenek Kabelac2012-10-035-76/+119
| | | | | | | | | | | Update code for lvconvert. Change the lvconvert user interface a bit - now we require 2 specifiers --thinpool takes LV name for data device (and makes the name) --poolmetadata takes LV name for metadata device. Fix type in thin help text -z -> -Z. Supported is also new flag --discards for thinpools.
* thin: lvchange allows to change perms of thin snapZdenek Kabelac2012-10-032-1/+2
| | | | | Thin snapshots are individual thin volumes so they can have its own control for rw permissions.
* liblvm: insert layer with subvolume renamesZdenek Kabelac2012-10-032-0/+14
| | | | | Rename also subvolumes if we are inserting _tdata layer. (Currently it breaks mirrors if it would be generic, needs fixing).
* cleanup: add proper cast for force_tZdenek Kabelac2012-10-031-1/+1
|
* thin: origin only suspendZdenek Kabelac2012-10-032-1/+2
| | | | Skip tree creating when used with origin_only flag.
* libdm: reset delay flag for devs used by thinZdenek Kabelac2012-10-032-1/+6
| | | | | | | | Patch clears the flag if thin pool is stacked over mirror. Since thin pool could be used to stack device over mirrors, it needs resume properly i.e. mirrors with corelog which are otherwise unconditionally skipped (for pvmove functionality).
* liblvm: add lv_rename_updateZdenek Kabelac2012-10-033-3/+19
| | | | | | Support lv_rename without directly updating metatata. It can save some metadata commits in some cases, i.e. when LVs are offline.
* liblvm2cmd: ensure standard descriptors are readyZdenek Kabelac2012-10-032-1/+39
| | | | | Check if FDs 0,1,2 are available, and in case they are missing, use /dev/null for them.
* liblvm2cmd: add return code for _close_stray_fdsZdenek Kabelac2012-10-032-11/+37
| | | | | | Close fds via /proc/self/fd parsing Return error code if _close_stray_fds fails and quit application if system is in some nonstandard state.
* configure: fix --enable-testingZdenek Kabelac2012-10-033-0/+7
| | | | Add missing pkg init for configure --enable-testing.
* RAID: Fix problems with creating, extending and converting large RAID LVsJonathan Brassow2012-09-274-10/+74
| | | | | | | | | | | | | | | | MD's bitmaps can handle 2^21 regions at most. The RAID code has always used a region_size of 1024 sectors. That means the size of a RAID LV was limited to 1TiB. (The user can adjust the region_size when creating a RAID LV, which can affect the maximum size.) Thus, creating, extending or converting to a RAID LV greater than 1TiB would result in a failure to load the new device-mapper table. Again, the size of the RAID LV is not limited by how much space is allocated for the metadata area, but by the limitations of the MD bitmap. Therefore, we must adjust the 'region_size' to ensure that the number of regions does not exceed the limit. I've added code to do this when extending a RAID LV (which covers 'create' and 'extend' operations) and when up-converting - specifically from linear to RAID1.
* libdaemon: Split daemon-shared.[hc] into daemon-io.[hc] and config-util.[hc].Petr Rockai2012-09-2610-94/+143
|