summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* man-generator: add option to check for repeated command definitionsdev-dct-cmd-defs-checkDavid Teigland2021-04-201-5/+218
| | | | | | | | | | | | | | | Compares cmd defs based on two principles for avoiding repeated commands (where a given command could match more than one cmd def): . a cmd def should be a unique combination of required option args and position args . avoid adding optional options to a cmd def that if used would make the command match a different cmd def FIXME: record when repeated cmd defs are found so we can avoid reporting them twice, e.g. once for A vs B and second time for B vs A.
* config: improve description for event_activationDavid Teigland2021-04-191-7/+8
|
* make: generateZdenek Kabelac2021-04-1945-12063/+4733
|
* man: replace empty linesZdenek Kabelac2021-04-1954-223/+256
|
* man: typography for raid and reportZdenek Kabelac2021-04-192-1259/+1252
| | | | Some enhancements for better man page rendering.
* man: typography fixesZdenek Kabelac2021-04-1921-264/+314
| | | | | | | | Correcting some usage of Bold and Italics (files). Adding some missing SEE ALSO. Fixing missed replaceable paths that are configurable. Be careful about .P in .TP sections - need to use .sp for space line. Use .UR/.UE for URL references.
* args: documentation enhancementsZdenek Kabelac2021-04-191-24/+24
| | | | | | | Use #DEFAULT_SYS_DIR# replaceable string for devicesfile so the man pages installation respects configured settings. Update some missing lvm.conf(5) references.
* commands: update definitions for thin creationZdenek Kabelac2021-04-191-74/+60
| | | | | | | | | | | | | | | | | | Add missing VG into description of thin pool creation command. Remove one duplicated thin-pool creation command. Remove options --discards and --errorwhenfull from the list when the command describes only creation of a thin volume - as these options do apply for thin-pool. Also use here more correct name OO_LVCONVERT_THINPOOL instead of OO_LVCONVERT_THIN. Reorder extra options for cache & thin-pool before common pool options. Order consistenly --stripes and --stripesize after --extents option so the options related to pools are better together. Remove invalid snapshot creation description - since this case is handled through our configurable spare volume creation. Add some missing optional --type parameters for few command instancies.
* tools: correct units descriptionZdenek Kabelac2021-04-191-1/+1
| | | | | Option --units takes also [Number] to express size in configurable units.
* man-generator: markup updatesZdenek Kabelac2021-04-191-82/+84
| | | | | | | | | | | | | | | | | | | | | | Emit .ad l / .ad b less frequently around larger blocks we want to keep left aligned. Avoid emittting empty lines. Reduce .HP usage and replace it with .TP. However keep .HP for all option listings, as i.e. html rendering can't handle well combintion of .TP an .HP together and .TP alone is not indenting 2nd. line of long option line. (For .TP line we don't need to emit .br) Surround .SH with dots for better look. For some .TP use plain more readable .I for a line. Support rendering of optional [Number] (for --units). Use better markup for units and instead of long markup string, show individual units with markup.
* man-generator: use \(emZdenek Kabelac2021-04-191-4/+4
| | | | Use \(em in command title description and command multidefs.
* man-generator: decorate optional option prefixesZdenek Kabelac2021-04-191-0/+20
| | | | | | Enhance man typography decoration of optional option prefixes like --[raid]writebeind and use regular font to render [] as these are not part of the option name itself.
* man: with internal build install cache, thin, vdoZdenek Kabelac2021-04-193-2/+26
| | | | | Do not install .7 man pages when building --without internal segtype support for types: cache, thin, vdo.
* man: use editline referenceZdenek Kabelac2021-04-192-6/+16
| | | | | When compiled with editline, refer this in man page as well instead of readline.
* makefiles: generate only needed textZdenek Kabelac2021-04-191-6/+8
| | | | | Avoid storing see_also & _end parts in generated doc, since these we can easily 'cat' while making man pages.
* makefiles: improved hyphenation replacementZdenek Kabelac2021-04-191-32/+48
| | | | | | | | Sed replacements script missed to properly replace several '-' to '\-'. Replace it with simpler set of regexes. Also add new target 'make checksed' for testing with examples, where the replacement should or should not occure for easier testing.
* remove unused flag DEV_UDEV_INFO_MISSINGDavid Teigland2021-04-163-11/+4
|
* man/help: change LV type listingDavid Teigland2021-04-141-31/+60
| | | | | | | | | | | | | | | | | | | | | | | | | Previously, accepted LV types were presented as a series of suffixes after the "LV" on the command line. The addition of many new types resulted in this becoming too long, e.g lvconvert --type cache --cachepool LV LV_linear_striped_thinpool_vdo_vdopool_vdopooldata_raid For man pages, move these types from the command line to a new line dedicated to listing accepted LV types: lvconvert --type cache --cachepool LV LV1 ... LV1 types: linear striped thinpool vdo vdopool vdopooldata raid The special "LV1" is used as a reference to avoid confusion with other LVs that may appear on the command line. There are currently no commands with more than one typed LV, but if there are cases with more, then "LV2" could also be used. For command line usage/-h output, drop the LV types from the command line specification. The more detailed is not needed in the help output and can be found in the man page.
* man: typographyZdenek Kabelac2021-04-1422-2063/+1972
| | | | | | | | | | | | | | | | | | | | | | | | | | | With to use .TP where it's easy and doesn't change layout (since .HP is marked as deprecated) - but .TP is not always perfetc match. Avoid submitting empty lines to troff and replace them mostly with .P and use '.' at line start to preserve 'visual' presence of empty line while editing man page manually when there is no extra space needed. Fix some markup. Add some missing SEE ALSO section. Drop some white-space at end-of-lines. Improve hyphenation logic so we do not split options. Use '.IP numbers' only with first one the row (others in row automatically derive this value) Use automatic enumeration for .SH titles. Guidelines in-use: https://man7.org/linux/man-pages/man7/groff.7.html https://www.gnu.org/software/groff/manual/html_node/Man-usage.html https://www.gnu.org/software/groff/manual/html_node/Lists-in-ms.html
* makefiles: fix replacing path for LVM_PATHZdenek Kabelac2021-04-141-1/+1
| | | | Man pages were generated with incorrect LVM_PATH.
* WHATS_NEW: updateZdenek Kabelac2021-04-141-1/+0
|
* Revert "thinpool: support lvconvert without zeroing"Zdenek Kabelac2021-04-141-4/+4
| | | | | | | | | | This reverts commit 8e7690b7980ad3bc6e7c38d6e2028f885751c355. Actully this was bad idea - to make it on pair. -Zn for thin-pools is already used - so here user must have create new pool and swap existing thin-pool metadata into. So reverting this commit to avoid any possible regression.
* Revert "tests: add check for lvconvert without zeroing"Zdenek Kabelac2021-04-141-18/+0
| | | | This reverts commit accf324ccba681ad06cd8bcb27ead17ec191a471.
* tests: race on md raid still being hit on 5.12-rc6Zdenek Kabelac2021-04-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Still hits the race in initialization: kernel BUG at drivers/md/raid5.c:7549! invalid opcode: 0000 [#1] SMP PTI CPU: 0 PID: 525149 Comm: dmsetup Tainted: G OEi --------- --- 5.12.0-0.rc6.184.fc35.x86_64 #1 Hardware name: Red Hat KVM, BIOS 0.5.1 01/01/2007 RIP: 0010:raid5_run+0x40b/0x4b0 [raid456] Code: 00 8b 83 3c 01 00 00 39 83 bc 00 00 00 0f 85 ac 00 00 00 48 c7 44 24 08 00 00 00 00 8b bb 30 01 00 00 85 ff 0f 84 88 fd ff ff <0f> 0b 48 8b 43 48 48 c7 c6 40 93 92 c0 48 c7 c7 70 2c 93 c0 48 85 Call Trace: md_run+0x4d6/0xbc0 ? super_validate+0x2e1/0x4b0 [dm_raid] raid_ctr+0x133e/0x281b [dm_raid] dm_table_add_target+0x167/0x330 table_load+0x103/0x350 ctl_ioctl+0x1b4/0x430 ? dev_suspend+0x2c0/0x2c0 dm_ctl_ioctl+0xa/0x10 __x64_sys_ioctl+0x82/0xb0 do_syscall_64+0x33/0x40 entry_SYSCALL_64_after_hwframe+0x44/0xae
* make: generateZdenek Kabelac2021-04-1245-1468/+1468
| | | | Oops, previous generate was not correct.
* tests: enable for 5.12+ kernelsZdenek Kabelac2021-04-121-1/+1
| | | | Should not longer kill kernel.
* makefiles: add devmapper for devmapper-eventZdenek Kabelac2021-04-121-1/+1
| | | | | Older linkers do not take this dependency automatically from libdevmapper-event so need to be passed with linker command.
* WHATS_NEW: updatesZdenek Kabelac2021-04-122-0/+5
|
* make: generateZdenek Kabelac2021-04-1246-5662/+5843
|
* man: hyphenation improvementsZdenek Kabelac2021-04-122-17/+43
|
* man-generator: spacesZdenek Kabelac2021-04-121-4/+1
|
* man-generator: option description indentedZdenek Kabelac2021-04-121-3/+3
| | | | | Left indention is needed only for options, but is actually unwanted for decription itself.
* man-generator: remove ',' between some optionsZdenek Kabelac2021-04-121-8/+2
| | | | | | It would be complicated to handle ',' alignment after hyphenation changes ATM, but these commas seems to be there rather unneeded so remove them and make the man output more clear.
* man-generator: improve hyphenation for longer option listZdenek Kabelac2021-04-121-13/+34
| | | | | | | | | | | Disable hyphenation around longer option lists (>42 chars) and use \: to markup places for line splits. The code ATM is somewhat mixtured so it's not easy to encapsulate section .nh ... .hy. ATM global _was_hyphen is used to properly finish sections after disabled hyphenation.
* man: use commas in SEE ALSOZdenek Kabelac2021-04-123-121/+123
| | | | | Add ',' between each ref. Use left alignment and no hyphenation.
* makefiles: no need for double QZdenek Kabelac2021-04-121-2/+2
| | | | We already use $(Q) while calling macros
* makefiles: reuse CSCOPE_DIRS for ctagsZdenek Kabelac2021-04-121-3/+3
| | | | Create ctags only from real source files.
* makefiles: deps also for cxxZdenek Kabelac2021-04-123-7/+2
| | | | | Generate deps also for .cxx. Remove include dir deps - there is nothing to build.
* libdm: replace deprecated security_context_tZdenek Kabelac2021-04-122-6/+6
| | | | | | | Use 'char *' instead of deprecated security_context_t. In more details i.e.: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1776
* configure: make aio optionalZdenek Kabelac2021-04-123-5/+46
| | | | | | Add support for external AIO_CFLAGS and AIO_LIBS so user can point to his own build - this might be useful when user wants to use own libaio library.
* configure: better support for use of --withoutZdenek Kabelac2021-04-122-34/+37
| | | | | | | When --with-... option is used as --without-... it gets assigned value 'no' - so support it better where we can. Also remove 'shared' from help as it's not supported.
* makefiles: static linking enhancementsZdenek Kabelac2021-04-1210-47/+45
|
* tests: skip autoactivation-metadata with lvmlockdDavid Teigland2021-04-081-7/+8
| | | | shared vgs are not autoactivated
* Add metadata-based autoactivation property for VG and LVDavid Teigland2021-04-0715-31/+486
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The autoactivation property can be specified in lvcreate or vgcreate for new LVs/VGs, and the property can be changed by lvchange or vgchange for existing LVs/VGs. --setautoactivation y|n enables|disables autoactivation of a VG or LV. Autoactivation is enabled by default, which is consistent with past behavior. The disabled state is stored as a new flag in the VG metadata, and the absence of the flag allows autoactivation. If autoactivation is disabled for the VG, then no LVs in the VG will be autoactivated (the LV autoactivation property will have no effect.) When autoactivation is enabled for the VG, then autoactivation can be controlled on individual LVs. The state of this property can be reported for LVs/VGs using the "-o autoactivation" option in lvs/vgs commands, which will report "enabled", or "" for the disabled state. Previous versions of lvm do not recognize this property. Since autoactivation is enabled by default, the disabled setting will have no effect in older lvm versions. If the VG is modified by older lvm versions, the disabled state will also be dropped from the metadata. The autoactivation property is an alternative to using the lvm.conf auto_activation_volume_list, which is still applied to to VGs/LVs in addition to the new property. If VG or LV autoactivation is disabled either in metadata or in auto_activation_volume_list, it will not be autoactivated. An autoactivation command will silently skip activating an LV when the autoactivation property is disabled. To determine the effective autoactivation behavior for a specific LV, multiple settings would need to be checked: the VG autoactivation property, the LV autoactivation property, the auto_activation_volume_list. The "activation skip" property would also be relevant, since it applies to both normal and auto activation.
* libdm: fix compiling with older gccZdenek Kabelac2021-04-061-1/+4
|
* WHATS_NEW: updatesZdenek Kabelac2021-04-062-0/+4
|
* tests: pvmove updatesZdenek Kabelac2021-04-064-59/+41
| | | | | | | | | | | Switch to plain 'kill' we should no longer need SIGKILL as polling can be interrupted. Resolve problem in aux wait_pvmove_lv_ready() that was using lvm command to check for UUID - but this was interferring with VG lock and it's been delaying confirmation. So reducing slow-down of test - so it can run faster.
* lib: remove unused macrosZdenek Kabelac2021-04-061-54/+0
| | | | Internally lvm2 is not using versioning for device-mapper.
* makefiles: remove unneeded var changesZdenek Kabelac2021-04-061-3/+0
|
* makefiles: cscope only predefined dirsZdenek Kabelac2021-04-061-1/+2
| | | | Avoid scanning for source duplicates in various build dirs.