summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* report: provide discard field value in fullAlasdair G Kergon2012-08-072-17/+6
| | | | | | | | | I think it's better not to abbreviate human-readable fields like 'discard' to a single character. Users can truncate it to the first character themselves if they wish. It's confusing to use the variable name discard for different things in different places - use discard_str when it's a string not the enum.
* activation: log target version presentAlasdair G Kergon2012-08-071-0/+5
| | | | Log (very verbose) the target version present in target_version.
* thin: tighten discard string conversionsAlasdair G Kergon2012-08-071-6/+3
| | | | | | | | | Respond with "unknown" rather than a NULL pointer if there's an internal error and the discard value is invalid. Don't accept 'no_passdown' or 'no-passdown' variants in the LVM metadata: this is written by the program so should only ever contain "nopassdown" and should be validated strictly against that.
* thin: order discard enum alphabeticallyAlasdair G Kergon2012-08-071-2/+2
|
* comments: misc updatesAlasdair G Kergon2012-08-074-10/+11
| | | | Miscellaneous clarifications to comments.
* man: document allocation process in lvm.8Alasdair G Kergon2012-08-072-61/+130
|
* args: increase major:minor limit to 4095:1048575Peter Rajnoha2012-08-066-38/+48
| | | | | | | | | Remove the limit for major and minor number arguments used while specifying persistent numbers via -My --major <major> --minor <minor> option which was set to 255 before. Follow the kernel limit instead which is 12 bits for major and 20 bits for minor number (kernel >= 2.6 and LVM formats that does not have FMT_RESTRICTED_LVIDS - so still keep the old limit of 255 for lvm1 format).
* [lvmetad] Continue reading/writing on EINTRMarian Csontos2012-08-021-4/+4
|
* Remove redundant (potentially harmful) semicolonMarian Csontos2012-08-021-1/+1
|
* lvmetad: Skip redundant checks on no inputMarian Csontos2012-08-021-14/+13
|
* make: fix make in scripts dir for --disable-applibPeter Rajnoha2012-08-011-5/+14
|
* Fix dependecy build for scripts dirZdenek Kabelac2012-08-011-0/+1
| | | | Since now scripts builds binaries, build needs to wait for libs.
* systemd: O_CLOEXEC not needed in activation generatorPeter Rajnoha2012-08-011-1/+1
| | | | | O_CLOEXEC not actually needed, this is just a simple program, it is not supposed to fork/exec anywhere and anytime in the future.
* make: use proper libs to make scripts subdirPeter Rajnoha2012-08-011-1/+6
|
* systemd: integrate lvm2 activation generator with conf+makePeter Rajnoha2012-07-316-10/+45
|
* systemd: add lvm2 activation generatorPeter Rajnoha2012-07-311-0/+169
| | | | | | | | | | | | | | | | | | | | The lvm2 activation generator generates systemd units conditionally based on the global/use_lvmetad lvm.conf setting. If use_lvmetad=0, the lvm2-activation-early.service and lvm2-activation.service units will be generated. These units are responsible for direct volume activation by calling "vgchange -aay --sysinit" (this is actually the original on-boot activation as it was used before). If use_lvmetad=1, no units will be generated as we're relying on autoactivation. Important thing to note is that the lvm2-activation units normally bring in the udev-settle ("storage-wait") service that waits for udev to settle (with block devices). We don't need this if lvmetad is used in conjunction with autoactivation feature... but systemd units can't be enabled or disabled (or dependencies added/removed) dynamically based on external configuration. Therefore, we need the unit generator which adds support for such situations: the units as a whole either exist or not based on the external configuration.
* lvm2app: add lvm_config_find_bool functionPeter Rajnoha2012-07-313-0/+28
| | | | To effectively retrieve the setting of anything that could be enabled or disabled.
* lvmetad: Fix an obscure error message.Petr Rockai2012-07-311-2/+1
|
* libdm-string: Add dm_vasprintf.Petr Rockai2012-07-312-2/+13
|
* version: updateAlasdair G Kergon2012-07-301-1/+1
|
* version: updateAlasdair G Kergon2012-07-301-1/+1
|
* version: updateAlasdair G Kergon2012-07-301-1/+1
|
* version: updateAlasdair G Kergon2012-07-302-2/+2
| | | | Update version date.
* TEST: Add lvmetad-test; checks --test with lvmetad.Petr Rockai2012-07-301-0/+34
|
* lvmetad: Implement --test (fixes #832033).Petr Rockai2012-07-302-4/+5
|
* reports: invalid snaps do not capitalise lv_attrAlasdair G Kergon2012-07-272-1/+1
| | | | | No longer capitalise first LV attribute char for invalid snapshots. This state is available from the 5th char now (I or S).
* dmsetup: allow --noflush with status/wait for thinAlasdair G Kergon2012-07-274-8/+21
| | | | | Allow --noflush with dmsetup status and wait (for thin target 1.3.0 / ioctl 4.23.0).
* vgextend: Allow PVs to be added to VGs that have PVs missingJonathan Brassow2012-07-262-2/+8
| | | | | | | | | | | | | | | | | Allowing people to add devices to a VG that has PVs missing helps people avoid the inability to repair RAID LVs in certain cases. For example, if a user creates a RAID 4/5/6 LV using all of the available devices in a VG, there will be no spare devices to repair the LV with if a device should fail. Further, because the VG is missing a device, new devices cannot be added to allow the repair. If 'vgreduce --removemissing' were attempted, the "MISSING" PV could not be removed without also destroying the RAID LV. Allowing vgextend to operate solves the circular dependency. When the PV is added by a vgextend operation, the sequence number is incremented and the 'MISSING' flag is put on the PVs which are missing.
* filters: move device_info_t definition to headerAlasdair G Kergon2012-07-262-7/+7
|
* systemd: ensure monitoring is handled after lvmetadPeter Rajnoha2012-07-261-1/+1
| | | | | | | Monitoring is handled using "vgchange --monitor" call. Ensure that lvmetad is up and running at the time of this call to prevent any fallback to direct scan within the vgchange. The same applies for shutdown sequence but the other way round - switch monitoring off and lvmetad afterwards.
* filters: Add Micron PCIe SSDs (mtip32xx) [part2]Alasdair G Kergon2012-07-261-0/+55
| | | | Recognise Micron PCIe SSDs in filter and move array out to device-types.h.
* filters: Add Micron PCIe SSDs (mtip32xx)Alasdair G Kergon2012-07-262-40/+3
| | | | Recognise Micron PCIe SSDs in filter and move array out to device-types.h.
* TEST: Conditionalize RAID tests on whether the dm-raid module existsJonathan Brassow2012-07-251-21/+23
|
* locking: clarify read-only locking error message v2Peter Rajnoha2012-07-251-1/+1
|
* locking: clarify read-only locking error messagePeter Rajnoha2012-07-251-1/+2
|
* Forgot to update WHATS_NEW for commit 5555d2a000ed4e3d5a694896f3dc6a7290543f43Jonathan Brassow2012-07-241-0/+1
|
* RAID: Fix segfault when attempting to replace RAID 4/5/6 deviceJonathan Brassow2012-07-242-2/+35
| | | | | | | | | | | | | | Commit 8767435ef847831455fadc1f7e8f4d2d94aef0d5 allowed RAID 4/5/6 LV to be extended properly, but introduced a regression in device replacement - a critical component of fault tolerance. When only 1 or 2 drives are being replaced, the 'area_count' needed can be equal to the parity_count. The 'area_multiple' for RAID 4/5/6 was computed as 'area_count - parity_devs', which could result in 'area_multiple' being 0. This would ultimately lead to a division by zero error. Therefore, in calc_area_multiple, it is important to take into account the number of areas that are being requested - just as we already do in _alloc_init.
* TEST: Replace old sync test/wait functions with new library functionsJonathan Brassow2012-07-243-116/+15
| | | | Generic sync test/wait functions have replaced the old mirror/raid functions.
* TEST: Add library functions for checking and waiting for syncJonathan Brassow2012-07-242-0/+57
| | | | | Add 'in_sync' and 'wait_for_sync' to test and wait for synchronization of a mirror or RAID logical volume.
* config: fix one-node dumpconfig, add dm_config_write_one_nodePeter Rajnoha2012-07-205-3/+19
| | | | | | | | | | | | | | | | | | A regression introduced in 2.02.89 (11e520256b3005ed813ce83f8770aaab74edef3f) caused the lvm dumpconfig <node> to print out the node as well as its subsequent siblings. The information about "only_one" mode got lost. Before this patch (just an example node): # lvm dumpconfig global/use_lvmetad use_lvmetad=1 thin_check_executable="/usr/sbin/thin_check" thin_check_options="-q" (...all nodes to the end of the section) With this patch applied: # lvm dumpconfig global/use_lvmetad use_lvmetad=1
* daemon-server: fix error message on daemon shutdownPeter Rajnoha2012-07-192-1/+2
| | | | | | | | | | If a daemon (like lvmetad that is using common daemon-server code) received a kill signal that was supposed to shut the daemon down, a spurious message was issued: "Failed to handle a client connection". This happened if the kill signal came just in the middle of waiting for a client request in "select" - the request that was supposed to be handled was blank at that moment of course.
* thin: add lvchange for discard and zero changeZdenek Kabelac2012-07-184-4/+106
| | | | | | | Update lvchange to allow change of 'zero' flag for thinpool. Add support for changing discard handling. N.B. from/to ignore could be only changed for inactive pool.
* thin: add reporting of discard for thin poolZdenek Kabelac2012-07-185-0/+35
| | | | | | | | | | New field "discard" is added for lvs reporting of lv segment. Reported as one character: (i)gnore (n)opassdown (p)assdown lvs -o+discard
* thin: add discard support for thin poolZdenek Kabelac2012-07-189-1/+115
| | | | | | | | Add arg support for discard. Add discard ignore, nopassdown, passdown (=default) support. Flags could be set per pool. lvcreate [--discard {ignore|no_passdown|passdown}] vg/thinlv
* thin: detect supported features from thinp targetZdenek Kabelac2012-07-183-1/+46
| | | | | Add shell variable to override reported min version for testing: LVM_THIN_VERSION_MIN
* libdm: support reserve and release metadata snap msgZdenek Kabelac2012-07-183-0/+9
| | | | Add support for new message types for thinp target 1.1
* libdm: add support for external origin and discardZdenek Kabelac2012-07-183-21/+134
|
* TEST (lvresize-raid): Don't run test when RAID module doesn't existJonathan Brassow2012-07-171-0/+2
| | | | Check for RAID module and skip test if not there.
* configure: default tmpfile dir in PREFIX/lib/tmpfiles.dPeter Rajnoha2012-07-162-4/+4
| | | | | SYSCONFDIR (the /etc) contains overrides to system-wide settings. System-wide settings are in PREFIX/lib/tmpfiles.d by default
* conf: add a comment about obsolete .cache filePeter Rajnoha2012-07-161-0/+3
|