master - fsadm: fix shell globbing
by Zdenek Kabelac
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=b68235c51970dc3e159...
Commit: b68235c51970dc3e159ebf7aa0ac5f4928414574
Parent: 0021d707fb93a98526bd02c2192d0c1b4ec9cfa1
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Thu Jun 29 13:15:47 2017 +0200
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Thu Jun 29 22:23:15 2017 +0200
fsadm: fix shell globbing
Fixing reported issue for shellcheck.
Use "" properly to avoid having shell variables split.
---
WHATS_NEW | 1 +
scripts/fsadm.sh | 70 +++++++++++++++++++++++++++---------------------------
2 files changed, 36 insertions(+), 35 deletions(-)
diff --git a/WHATS_NEW b/WHATS_NEW
index f1ded2d..2c98f5e 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
Version 2.02.173 -
=================================
+ Fix shellcheck reported issues for script files.
Version 2.02.172 - 28th June 2017
=================================
diff --git a/scripts/fsadm.sh b/scripts/fsadm.sh
index adf9b55..996cd1f 100755
--- a/scripts/fsadm.sh
+++ b/scripts/fsadm.sh
@@ -1,6 +1,6 @@
#!/bin/bash
#
-# Copyright (C) 2007-2012 Red Hat, Inc. All rights reserved.
+# Copyright (C) 2007-2017 Red Hat, Inc. All rights reserved.
#
# This file is part of LVM2.
#
@@ -32,7 +32,7 @@
TOOL=fsadm
_SAVEPATH=$PATH
-PATH=/sbin:/usr/sbin:/bin:/usr/sbin:$PATH
+PATH="/sbin:/usr/sbin:/bin:/usr/sbin:$PATH"
# utilities
TUNE_EXT=tune2fs
@@ -152,11 +152,11 @@ cleanup() {
export _FSADM_YES _FSADM_EXTOFF
unset FSADM_RUNNING
test -n "$LVM_BINARY" && PATH=$_SAVEPATH
- dry exec "$LVM" lvresize $VERB $FORCE -r -L${NEWSIZE}b "$VOLUME_ORIG"
+ dry exec "$LVM" lvresize $VERB $FORCE -r -L"${NEWSIZE}b" "$VOLUME_ORIG"
fi
# error exit status for break
- exit ${1:-1}
+ exit "${1:-1}"
}
# convert parameter from Exa/Peta/Tera/Giga/Mega/Kilo/Bytes and blocks
@@ -173,9 +173,9 @@ decode_size() {
*) NEWSIZE=$(( $1 * $2 )) ;;
esac
#NEWBLOCKCOUNT=$(round_block_size $NEWSIZE $2)
- NEWBLOCKCOUNT=$(( $NEWSIZE / $2 ))
+ NEWBLOCKCOUNT=$(( NEWSIZE / $2 ))
- if [ $DO_LVRESIZE -eq 1 ]; then
+ if [ "$DO_LVRESIZE" -eq 1 ]; then
# start lvresize, but first cleanup mounted dirs
DO_LVRESIZE=2
cleanup 0
@@ -204,13 +204,13 @@ detect_fs() {
case "$RVOLUME" in
# hardcoded /dev since udev does not create these entries elsewhere
/dev/dm-[0-9]*)
- read </sys/block/${RVOLUME#/dev/}/dm/name SYSVOLUME 2>&1 && VOLUME="$DM_DEV_DIR/mapper/$SYSVOLUME"
- read </sys/block/${RVOLUME#/dev/}/dev MAJORMINOR 2>&1 || error "Cannot get major:minor for \"$VOLUME\"."
+ read <"/sys/block/${RVOLUME#/dev/}/dm/name" SYSVOLUME 2>&1 && VOLUME="$DM_DEV_DIR/mapper/$SYSVOLUME"
+ read <"/sys/block/${RVOLUME#/dev/}/dev" MAJORMINOR 2>&1 || error "Cannot get major:minor for \"$VOLUME\"."
MAJOR=${MAJORMINOR%%:*}
MINOR=${MAJORMINOR##*:}
;;
*)
- STAT=$(stat --format "MAJOR=\$((0x%t)) MINOR=\$((0x%T))" ${RVOLUME})
+ STAT=$(stat --format "MAJOR=\$((0x%t)) MINOR=\$((0x%T))" "$RVOLUME")
test -n "$STAT" || error "Cannot get major:minor for \"$VOLUME\"."
eval "$STAT"
MAJORMINOR="${MAJOR}:${MINOR}"
@@ -258,7 +258,7 @@ check_valid_mounted_device() {
case "$VOL" in
# hardcoded /dev since udev does not create these entries elsewhere
/dev/dm-[0-9]*)
- read </sys/block/${VOL#/dev/}/dev MOUNTEDMAJORMINOR 2>&1 || error "Cannot get major:minor for \"$VOLUME\"."
+ read <"/sys/block/${VOL#/dev/}/dev" MOUNTEDMAJORMINOR 2>&1 || error "Cannot get major:minor for \"$VOLUME\"."
;;
*)
STAT=$(stat --format "MOUNTEDMAJORMINOR=\$((0x%t)):\$((0x%T))" "$VOL")
@@ -280,20 +280,20 @@ detect_mounted_with_proc_self_mountinfo() {
# Use 'find' to not fail on to long list of args with too many pids
# only 1st. line is needed
test -z "$MOUNTED" &&
- test $(dmsetup info -c --noheading -o open -j "$MAJOR" -m "$MINOR") -gt 0 &&
+ test "$(dmsetup info -c --noheading -o open -j "$MAJOR" -m "$MINOR")" -gt 0 &&
MOUNTED=$(find "$PROCDIR" -maxdepth 2 -name mountinfo -print0 | xargs -0 "$GREP" "^[0-9]* [0-9]* $MAJORMINOR " 2>/dev/null | head -1 2>/dev/null)
# TODO: for performance compare with sed and stop with 1st. match:
# sed -n "/$MAJORMINOR/ {;p;q;}"
# extract 2nd field after ' - ' separator as mouted device
- MOUNTDEV=$(echo ${MOUNTED##* - } | cut -d ' ' -f 2)
- MOUNTDEV=$(echo -n -e ${MOUNTDEV})
+ MOUNTDEV=$(echo "${MOUNTED##* - }" | cut -d ' ' -f 2)
+ MOUNTDEV=$(echo -n -e "$MOUNTDEV")
# extract 5th field as mount point
# echo -e translates \040 to spaces
- MOUNTED=$(echo ${MOUNTED} | cut -d ' ' -f 5)
- MOUNTED=$(echo -n -e ${MOUNTED})
+ MOUNTED=$(echo "$MOUNTED" | cut -d ' ' -f 5)
+ MOUNTED=$(echo -n -e "$MOUNTED")
test -n "$MOUNTED" || return 1 # Not seen mounted anywhere
@@ -310,11 +310,11 @@ detect_mounted_with_proc_mounts() {
# for empty string try again with real volume name
test -z "$MOUNTED" && MOUNTED=$("$GREP" "^$RVOLUME[ \t]" "$PROCMOUNTS")
- MOUNTDEV=$(echo -n -e ${MOUNTED%% *})
+ MOUNTDEV=$(echo -n -e "${MOUNTED%% *}")
# cut device name prefix and trim everything past mountpoint
# echo translates \040 to spaces
MOUNTED=${MOUNTED#* }
- MOUNTED=$(echo -n -e ${MOUNTED%% *})
+ MOUNTED=$(echo -n -e "${MOUNTED%% *}")
# for systems with different device names - check also mount output
if test -z "$MOUNTED" ; then
@@ -333,13 +333,13 @@ detect_mounted_with_proc_mounts() {
# If still nothing found and volume is in use
# check every known mount point against MAJOR:MINOR
- if test $(dmsetup info -c --noheading -o open -j "$MAJOR" -m "$MINOR") -gt 0 ; then
+ if test "$(dmsetup info -c --noheading -o open -j "$MAJOR" -m "$MINOR")" -gt 0 ; then
while IFS=$'\n' read -r i ; do
- MOUNTDEV=$(echo -n -e ${i%% *})
+ MOUNTDEV=$(echo -n -e "${i%% *}")
MOUNTED=${i#* }
- MOUNTED=$(echo -n -e ${MOUNTED%% *})
- STAT=$(stat --format "%d" $MOUNTED)
- validate_mounted_major_minor $(decode_major_minor "$STAT")
+ MOUNTED=$(echo -n -e "${MOUNTED%% *}")
+ STAT=$(stat --format "%d" "$MOUNTED")
+ validate_mounted_major_minor "$(decode_major_minor "$STAT")"
done < "$PROCMOUNTS"
fi
@@ -370,7 +370,7 @@ detect_device_size() {
test -n "$DEVSIZE" || error "Cannot read size of device \"$VOLUME\"."
SSSIZE=$("$BLOCKDEV" --getss "$VOLUME")
test -n "$SSSIZE" || error "Cannot read sector size of device \"$VOLUME\"."
- DEVSIZE=$(($DEVSIZE * $SSSIZE))
+ DEVSIZE=$(("$DEVSIZE" * "$SSSIZE"))
fi
}
@@ -438,11 +438,11 @@ resize_ext() {
esac
done
validate_parsing "$TUNE_EXT"
- decode_size $1 $BLOCKSIZE
+ decode_size "$1" "$BLOCKSIZE"
FSFORCE=$FORCE
if [ "$NEWBLOCKCOUNT" -lt "$BLOCKCOUNT" -o "$EXTOFF" -eq 1 ]; then
- test $IS_MOUNTED -eq 1 && verbose "$RESIZE_EXT needs unmounted filesystem" && try_umount
+ test "$IS_MOUNTED" -eq 1 && verbose "$RESIZE_EXT needs unmounted filesystem" && try_umount
REMOUNT=$MOUNTED
if test -n "$MOUNTED" ; then
# Forced fsck -f for umounted extX filesystem.
@@ -454,7 +454,7 @@ resize_ext() {
fi
verbose "Resizing filesystem on device \"$VOLUME\" to $NEWSIZE bytes ($BLOCKCOUNT -> $NEWBLOCKCOUNT blocks of $BLOCKSIZE bytes)"
- dry "$RESIZE_EXT" $FSFORCE "$VOLUME" $NEWBLOCKCOUNT
+ dry "$RESIZE_EXT" $FSFORCE "$VOLUME" "$NEWBLOCKCOUNT"
}
#############################
@@ -473,12 +473,12 @@ resize_reiser() {
esac
done
validate_parsing "$TUNE_REISER"
- decode_size $1 $BLOCKSIZE
+ decode_size "$1" "$BLOCKSIZE"
verbose "Resizing \"$VOLUME\" $BLOCKCOUNT -> $NEWBLOCKCOUNT blocks ($NEWSIZE bytes, bs: $NEWBLOCKCOUNT)"
if [ -n "$YES" ]; then
- echo y | dry "$RESIZE_REISER" -s $NEWSIZE "$VOLUME"
+ echo y | dry "$RESIZE_REISER" -s "$NEWSIZE" "$VOLUME"
else
- dry "$RESIZE_REISER" -s $NEWSIZE "$VOLUME"
+ dry "$RESIZE_REISER" -s "$NEWSIZE" "$VOLUME"
fi
}
@@ -503,11 +503,11 @@ resize_xfs() {
BLOCKSIZE=${BLOCKSIZE%%[^0-9]*}
BLOCKCOUNT=${BLOCKCOUNT%%[^0-9]*}
validate_parsing "$TUNE_XFS"
- decode_size $1 $BLOCKSIZE
- if [ $NEWBLOCKCOUNT -gt $BLOCKCOUNT ]; then
+ decode_size "$1" "$BLOCKSIZE"
+ if [ "$NEWBLOCKCOUNT" -gt "$BLOCKCOUNT" ]; then
verbose "Resizing Xfs mounted on \"$MOUNTPOINT\" to fill device \"$VOLUME\""
- dry "$RESIZE_XFS" $MOUNTPOINT
- elif [ $NEWBLOCKCOUNT -eq $BLOCKCOUNT ]; then
+ dry "$RESIZE_XFS" "$MOUNTPOINT"
+ elif [ "$NEWBLOCKCOUNT" -eq "$BLOCKCOUNT" ]; then
verbose "Xfs filesystem already has the right size"
else
error "Xfs filesystem shrinking is unsupported."
@@ -567,7 +567,7 @@ check() {
case "$LASTMOUNT" in
*"n/a") ;; # nothing to do - system was not mounted yet
*)
- LASTDIFF=$(diff_dates $LASTMOUNT $LASTCHECKED)
+ LASTDIFF=$(diff_dates "$LASTMOUNT" "$LASTCHECKED")
if test "$LASTDIFF" -gt 0 ; then
verbose "Filesystem has not been checked after the last mount, using fsck -f"
FORCE="-f"
@@ -617,7 +617,7 @@ $("$READLINK" -e / >"$NULL" 2>&1) || READLINK_E="-f"
TEST64BIT=$(( 1000 * 1000000000000 ))
test "$TEST64BIT" -eq 1000000000000000 || error "Shell does not handle 64bit arithmetic."
$(echo Y | "$GREP" Y >"$NULL") || error "Grep does not work properly."
-test $("$DATE" -u -d"Jan 01 00:00:01 1970" +%s) -eq 1 || error "Date translation does not work."
+test "$("$DATE" -u -d"Jan 01 00:00:01 1970" +%s)" -eq 1 || error "Date translation does not work."
if [ "$#" -eq 0 ] ; then
6 years, 10 months
v2_02_172 annotated tag has been created
by Alasdair Kergon
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=115d3236a2c5283a0b3...
Commit: 115d3236a2c5283a0b312d19d1becf55c459d3ae
Parent: 0000000000000000000000000000000000000000
Author: Alasdair G Kergon <agk(a)redhat.com>
AuthorDate: 2017-06-28 15:39 +0000
Committer: Alasdair G Kergon <agk(a)redhat.com>
CommitterDate: 2017-06-28 15:39 +0000
annotated tag: v2_02_172 has been created
at 115d3236a2c5283a0b312d19d1becf55c459d3ae (tag)
tagging 08ce545449a7076965e153e6a9df1c49f833d33e (commit)
replaces v2_02_171
Release 2.02.172
This release is another development checkpoint which addresses, in
particular, some problems with backwards compatibility of the recent
on-disk metadata extensions and improves some raid device handling.
Please again use this release only for testing and report problems
you discover.
155 files changed, 3197 insertions(+), 961 deletions(-)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
iEYEABECAAYFAllT0SMACgkQIoGRwVZ+LBe2AgCg2DdRNixiRbO3AwnBIBADsEo/
DhAAoIconhw6mtNdlGfyhiRGKEHw9VQa
=Ul+a
-----END PGP SIGNATURE-----
Alasdair G Kergon (10):
post-release
metadata: Fix metadata repair when devs still missing.
lvcreate: Fix mirror percentage size calculations.
lvcreate: Fix last commit for virtual sizes.
format_text: More internal errors if given invalid internal metadata
metadata: Unlock VG on more _vg_make_handle error paths
raid: Drop unnecessary/incorrect use of dm_pool_free
log: fix message prefix truncation
man: regenerate
pre-release
Bryn M. Reeves (5):
dmfilemapd: clear filemap_monitor before calling _parse_args()
dmfilemapd: always initialise 'same' local variable (Coverity)
libdm: allow truncated files in dm_stats_update_regions_from_fd()
dmfilemapd: update file block count at daemon start
dmfilemapd: do not wait if file has been truncated
David Teigland (26):
man lvmlockd: minor wording updates
commands: check for memory failures
man pvchange: add description for --all
man pvchange: mention one option is required
man vgimport: add description for --all
man pvscan: add description for --activate
pvscan: define command as taking only -aay
man lvm.conf: say how to get a description of settings
man: reference other man pages with bold
man clvmd: mention lvmlockd is another option
man lvm fullreport and lvpoll references
man vgexport: reference to vgimport
man lvmconfig: add descriptions for typeconfig and ignorelocal
lvcreate: cachemode writeback and cachepolicy cleaner is invalid
WHATS_NEW: cache pool options
man lvmetad: mention repair as a reason for disabling
vg_read: check for NULL dev to avoid segfault
man lvmcache: add info about metadata formats
config: keep description lines under 80
lvchange: allow changing properties on thin pool data lv
man lvmraid: indirect conversions
man lvmraid: add more indirect conversion info
man lvmsystemid: change some wording
add comment about PV in-use repair
disable repairing in-use flag on orphan PVs
print warning about in-use orphans
Heiko Becker (1):
configure: search for (a possibly prefixed) ar
Heinz Mauelshagen (25):
test: add missing yes option to lvconvert stripe removal
lvconvert: enhance automatic settings of possible (raid) LV types
lvconvert: fix indent and typo in last commit
lvconvert: fix logic in automatic settings of possible (raid) LV types
Fix typo
Proper dm_snprintf return checks
lvconvert: reject changing number of stripes on single core
lvconvert: choose direct path to desired raid level
lvconvert: reject RAID conversions on inactive LVs
raid: add reshape segtype flag support
lvconvert: fix detached SubLV deactivation in cluster
raid: change reshape segtype flags
Revert "lvconvert: reject changing number of stripes on single core
raid: adjust reshape feature flag check
lvconvert: disable reshaping of RAID LVs in the cluster
lvconvert: disable conversion of RAID LV under snapshot
lvconvert: enhance message
lvconvert: disable reshaping of open RAID LV
lvconvert: enhance disable reshaping of open RAID LV
lvconvert: check open count to disable reshaping of open RAID LV
raid: provide clickable URL BZ references
raid: avoid explicit activation of SubLVs on reshape/takeover
lvconvert: provide better reshape reject message for open RaidLV
raid: fix segfault
mirror: reformat conditional
Jonathan Brassow (8):
lvconvert: linear -> raid1 upconvert should cause "recover" not "resync"
lvconvert: Don't require a 'force' option during RAID repair.
RAID (lvconvert/dmeventd): Cleanly handle primary failure during 'recover' op
lvconvert: Disallow removal of primary when up-converting (recovering)
clean-ups: remove unused var, add 'static' for local fn, adjust test
clean-up: Very picky update to comment - hopefully making it clearer
test: New test file for validating kernel status during sync ops
test: New test file for validating kernel status during sync ops
Marian Csontos (9):
test: Update condition for changing RAID regionsize
test: Fix previous commit - skip only RAID6 part
test: Fix skipped cleanup
test: Fix condition
lvmdbusd: Fix notify_dbus mangling config option
lvmdbusd: Fix missed rename
spec: Enable notify-dbus in builds with dbus
test: Use _pv suffix for nested devices
test: Fix dbus testing using testsuite
Tony Asleson (5):
lvmdbustest.py: Add PV symlink testing
lvmdbusd: Correct PV lookups
lvmdbusd: cmdhandler.py vg_reduce, remove extranous '--all'
lvmdbusd: Add background command to flight recorder
lvmdbusd: Prevent stall when update thread gets exception
Zdenek Kabelac (112):
dmeventd: restore multiple warnings
fsadm: fix test of subshell return value
fsadm: some cleanup
fsadm: all path define MAJOR MINOR
tests: better skip
fsadm: always detect mounted fs with extX
fsadm: enhance detection of already mounted volumes
tests: catch some fsadm tricky paths
fsadm: avoid hidden --yes
tests: fix test for fsadm
tests: wait for raid in sync
cleanup: bad flag is internal error here
cleanup: separate type and mask
cleanup: backtrace
flags: add read and print of segtype flag
flags: add segtype flag support
flags: restore same logic with MISSING
flags: improve unknown flags logic
tests: also check new flag with segtype
tests: drop extra debug vvvv
tests: missed to export lvm binary for fsadm
tests: skip reshaping raid10
tests: add some extra udev waits
tests: longer delay
cleanup: rename internal define
cleanup: use DM limit define
thin: disallow creation of too big thin pools
tests: check thin-pool boundary sizes
tests: fix compilation of unit tests
cache: lvcreate --cachepool checks for cache pool
configure: report yes or no for wiping and system
tests: no longer allowed too big thin-pools for small chunks
snapshot: fix reporting for merged old snapshot
cleanup: define really uses KB
cleanup: update message
indent: properly indent goto
configure: warn about older version of cache_check
configure: improve reporting about readline
configure: update
libdm: workarounds reported raid status info
raid: report percent with segtype info
cleanup: use 'dm_get_status_raid'
cleanup: improve debug tracing
cleanup: show what happens when passed prompt
cleanup: drop unused parameter
debug: passing non-raid seg would be internal error
tests: use exclusive activation
fsadm: restore no answer
thin: restore conversion to raid
tests: check conversion of thin-pool
activation: fix usage of origin_only
tests: avoid double lines
tests: test also different lock holder
raid: more origin_only updates
raid: drop debug code
raid: report error when specified devices are not contained
raid: use log_error on error path
debug: missing traces
raid: update path for repair
lvresize: support passing --yes to fsadm
tests: lvresize needs --yes
cache: make syncing abortable by user
cache: drop usage of origin_only
cache: fix lvdisplay --maps
cache: fix lvdisplay output
debug: show message only when origin_only was set
tests: check lvdisplay for cache works
tests: flushing of cache is abortable
raid: improving messages for regionsize change
raid: switch message to verbose
cache: restore origin only reload
debug: add missing internal error message
cleanup: update messages
tests: handle su login difference
tests: request 1.12 for reshaping raid
raid: recognize transient failed raid leg
raid: plugin does not to use --config
tests: require also no 'a' for in-sync
tests: add transient failure test
tests: use allocate policy in raid test
dmeventd: improve more raid status reporting
libdm: implement dm_percent_to_round_float
libdm: use rounded float for percent print
display: add display_percent function
cleanup: use display_percent
tests: unit test for percent printing
tests: correct percent values are reported
raid: allow more sync action for extraction
tests: slightly longer delay
tests: show more debug info
libdm: fix initialization of head for reused structure
cmdline: fix missing NULL at end of array of args
raid: fix write_commit_backup
dev_manager: add missing validation for usable target_name
cleanup: remove unused code
debug: check for fail in id validation
debug: tracing error path
debug: fail in backup is not traced nor error
debug: fix error path
debug: use display_lvname
coverity: add some error path for failed allocs
coverity: validate retval from get_only_segment_using_this_lv
debug: more display_lvname usage
coverity: extra check for find_pool_seg
coverity: use better function
coverity: check malloc results
coverity: validate length of renaming path
coverity: drop unneeded assigns
coverity: move initilization of count variable
coverity: model few more functions
coverity: checked_return of close
command: we don't have all standard macros
6 years, 10 months
master - post-release
by Alasdair Kergon
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=0021d707fb93a98526b...
Commit: 0021d707fb93a98526bd02c2192d0c1b4ec9cfa1
Parent: 08ce545449a7076965e153e6a9df1c49f833d33e
Author: Alasdair G Kergon <agk(a)redhat.com>
AuthorDate: Wed Jun 28 17:00:49 2017 +0100
Committer: Alasdair G Kergon <agk(a)redhat.com>
CommitterDate: Wed Jun 28 17:00:49 2017 +0100
post-release
---
VERSION | 2 +-
VERSION_DM | 2 +-
WHATS_NEW | 3 +++
WHATS_NEW_DM | 3 +++
4 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/VERSION b/VERSION
index 1774a41..e9822e0 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.02.172(2)-git (2017-06-28)
+2.02.173(2)-git (2017-06-28)
diff --git a/VERSION_DM b/VERSION_DM
index 0f1b1a3..d398102 100644
--- a/VERSION_DM
+++ b/VERSION_DM
@@ -1 +1 @@
-1.02.141-git (2017-06-28)
+1.02.142-git (2017-06-28)
diff --git a/WHATS_NEW b/WHATS_NEW
index 895e29c..f1ded2d 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,3 +1,6 @@
+Version 2.02.173 -
+=================================
+
Version 2.02.172 - 28th June 2017
=================================
Add missing NULL to argv array when spliting cmdline arguments.
diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM
index 44d548a..923f25d 100644
--- a/WHATS_NEW_DM
+++ b/WHATS_NEW_DM
@@ -1,3 +1,6 @@
+Version 1.02.142 -
+=================================
+
Version 1.02.141 - 28th June 2017
=================================
Fix reusing of dm_task structure for status reading (used by dmeventd).
6 years, 10 months
master - pre-release
by Alasdair Kergon
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=08ce545449a7076965e...
Commit: 08ce545449a7076965e153e6a9df1c49f833d33e
Parent: 7ba6896962d8fe34139d3d6d49fc08430fbc641a
Author: Alasdair G Kergon <agk(a)redhat.com>
AuthorDate: Wed Jun 28 16:38:46 2017 +0100
Committer: Alasdair G Kergon <agk(a)redhat.com>
CommitterDate: Wed Jun 28 16:38:46 2017 +0100
pre-release
---
VERSION | 2 +-
VERSION_DM | 2 +-
WHATS_NEW | 10 +++++-----
WHATS_NEW_DM | 4 ++--
4 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/VERSION b/VERSION
index 1e823ec..1774a41 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.02.172(2)-git (2017-05-03)
+2.02.172(2)-git (2017-06-28)
diff --git a/VERSION_DM b/VERSION_DM
index 36b0104..0f1b1a3 100644
--- a/VERSION_DM
+++ b/VERSION_DM
@@ -1 +1 @@
-1.02.141-git (2017-05-03)
+1.02.141-git (2017-06-28)
diff --git a/WHATS_NEW b/WHATS_NEW
index 2872dbb..895e29c 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,17 +1,17 @@
-Version 2.02.172 -
-===============================
+Version 2.02.172 - 28th June 2017
+=================================
Add missing NULL to argv array when spliting cmdline arguments.
Add display_percent helper function for printing percent values.
- Lvconvert --repair handles failing raid legs (present but marked 'D'ead).
+ lvconvert --repair handles failing raid legs (present but marked 'D'ead).
Do not lvdisplay --maps unset settings of cache pool.
Fix lvdisplay --maps for cache pool without policy settings.
Support aborting of flushing cache LV.
Reenable conversion of data and metadata thin-pool volumes to raid.
Improve raid status reporting with lvs.
- No longer necessary to '--force' a repair for RAID1
+ No longer necessary to '--force' a repair for RAID1.
Linear to RAID1 upconverts now use "recover" sync action, not "resync".
Improve lvcreate --cachepool arg validation.
- Limit maximal size of thin-pool for specific chunk size.
+ Limit maximum size of thin-pool for specific chunk size.
Print a warning about in-use PVs with no VG using them.
Disable automatic clearing of PVs that look like in-use orphans.
Cache format2 flag is now using segment name type field.
diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM
index 2e31b9a..44d548a 100644
--- a/WHATS_NEW_DM
+++ b/WHATS_NEW_DM
@@ -1,5 +1,5 @@
-Version 1.02.141 -
-===============================
+Version 1.02.141 - 28th June 2017
+=================================
Fix reusing of dm_task structure for status reading (used by dmeventd).
Add dm_percent_to_round_float for adjusted percentage rounding.
Reset array with dead rimage devices once raid gets in sync.
6 years, 10 months
master - command: we don't have all standard macros
by Zdenek Kabelac
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=7ba6896962d8fe34139...
Commit: 7ba6896962d8fe34139d3d6d49fc08430fbc641a
Parent: a533892cd3bcb6abd0d0ee3f35f059850e540238
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Wed Jun 28 15:05:16 2017 +0200
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Wed Jun 28 15:05:16 2017 +0200
command: we don't have all standard macros
So just quite warning
---
tools/command.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/tools/command.c b/tools/command.c
index e2e60a3..afd8831 100644
--- a/tools/command.c
+++ b/tools/command.c
@@ -3304,8 +3304,7 @@ static int include_description_file(char *name, char *des_file)
out_free:
dm_free(buf);
out_close:
- if (close(fd))
- log_sys_debug("close", des_file);
+ (void) close(fd);
return r;
}
6 years, 10 months
master - coverity: checked_return of close
by Zdenek Kabelac
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=a533892cd3bcb6abd0d...
Commit: a533892cd3bcb6abd0d0ee3f35f059850e540238
Parent: b90014addca59b3a40a686fd73b27f7a40511660
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Wed Jun 28 14:40:35 2017 +0200
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Wed Jun 28 14:42:11 2017 +0200
coverity: checked_return of close
Check (or make quiet) close() ret code.
NOTE: there is another duplicated code of daemonize function which
should be converted to libdaemon.
---
daemons/dmfilemapd/dmfilemapd.c | 4 ++--
tools/command.c | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/daemons/dmfilemapd/dmfilemapd.c b/daemons/dmfilemapd/dmfilemapd.c
index a1293dc..a51187a 100644
--- a/daemons/dmfilemapd/dmfilemapd.c
+++ b/daemons/dmfilemapd/dmfilemapd.c
@@ -662,11 +662,11 @@ static int _daemonise(struct filemap_monitor *fm)
return 0;
}
}
-
+ /* TODO: Use libdaemon/server/daemon-server.c _daemonise() */
for (fd = (int) sysconf(_SC_OPEN_MAX) - 1; fd > STDERR_FILENO; fd--) {
if (fd == fm->fd)
continue;
- close(fd);
+ (void) close(fd);
}
return 1;
diff --git a/tools/command.c b/tools/command.c
index 5c2ec26..e2e60a3 100644
--- a/tools/command.c
+++ b/tools/command.c
@@ -3304,7 +3304,8 @@ static int include_description_file(char *name, char *des_file)
out_free:
dm_free(buf);
out_close:
- close(fd);
+ if (close(fd))
+ log_sys_debug("close", des_file);
return r;
}
6 years, 10 months
master - man: regenerate
by Alasdair Kergon
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=b90014addca59b3a40a...
Commit: b90014addca59b3a40a686fd73b27f7a40511660
Parent: 7f1ec681d65001ed3c74a7c7239efa98a8507d88
Author: Alasdair G Kergon <agk(a)redhat.com>
AuthorDate: Tue Jun 27 15:47:00 2017 +0100
Committer: Alasdair G Kergon <agk(a)redhat.com>
CommitterDate: Tue Jun 27 15:47:00 2017 +0100
man: regenerate
---
conf/example.conf.in | 7 ++++---
man/lvchange.8_pregen | 14 ++++++++------
man/lvconvert.8_pregen | 2 ++
man/lvcreate.8_pregen | 12 +++++++-----
man/lvdisplay.8_pregen | 16 +++++++++-------
man/lvextend.8_pregen | 4 +++-
man/lvm-fullreport.8_pregen | 11 ++++++-----
man/lvm-lvpoll.8_pregen | 4 +++-
man/lvmconfig.8_pregen | 40 ++++++++++++++++++++++++++++++++++++++--
man/lvmdiskscan.8_pregen | 2 ++
man/lvreduce.8_pregen | 4 +++-
man/lvremove.8_pregen | 4 +++-
man/lvrename.8_pregen | 4 +++-
man/lvresize.8_pregen | 4 +++-
man/lvs.8_pregen | 10 ++++++----
man/lvscan.8_pregen | 2 ++
man/pvchange.8_pregen | 12 +++++++++---
man/pvck.8_pregen | 2 ++
man/pvcreate.8_pregen | 6 ++++--
man/pvdisplay.8_pregen | 16 +++++++++-------
man/pvmove.8_pregen | 4 +++-
man/pvremove.8_pregen | 2 ++
man/pvresize.8_pregen | 2 ++
man/pvs.8_pregen | 10 ++++++----
man/pvscan.8_pregen | 6 +++++-
man/vgcfgbackup.8_pregen | 4 +++-
man/vgcfgrestore.8_pregen | 2 ++
man/vgchange.8_pregen | 26 ++++++++++++++------------
man/vgck.8_pregen | 2 ++
man/vgconvert.8_pregen | 2 ++
man/vgcreate.8_pregen | 16 +++++++++-------
man/vgdisplay.8_pregen | 16 +++++++++-------
man/vgexport.8_pregen | 4 +++-
man/vgextend.8_pregen | 4 +++-
man/vgimport.8_pregen | 3 +++
man/vgimportclone.8_pregen | 2 ++
man/vgmerge.8_pregen | 4 +++-
man/vgmknodes.8_pregen | 2 ++
man/vgreduce.8_pregen | 4 +++-
man/vgremove.8_pregen | 2 ++
man/vgrename.8_pregen | 4 +++-
man/vgs.8_pregen | 10 ++++++----
man/vgscan.8_pregen | 2 ++
man/vgsplit.8_pregen | 4 +++-
44 files changed, 220 insertions(+), 93 deletions(-)
diff --git a/conf/example.conf.in b/conf/example.conf.in
index ed34b91..b5b0e6a 100644
--- a/conf/example.conf.in
+++ b/conf/example.conf.in
@@ -379,8 +379,9 @@ allocation {
# Configuration option allocation/raid_stripe_all_devices.
# Stripe across all PVs when RAID stripes are not specified.
- # If enabled, all PVs in the VG or on the command line are used for raid0/4/5/6/10
- # when the command does not specify the number of stripes to use.
+ # If enabled, all PVs in the VG or on the command line are used for
+ # raid0/4/5/6/10 when the command does not specify the number of
+ # stripes to use.
# This was the default behaviour until release 2.02.162.
# This configuration option has an automatic default value.
# raid_stripe_all_devices = 0
@@ -939,7 +940,7 @@ global {
use_lvmetad = @DEFAULT_USE_LVMETAD@
# Configuration option global/lvmetad_update_wait_time.
- # The number of seconds a command will wait for lvmetad update to finish.
+ # Number of seconds a command will wait for lvmetad update to finish.
# After waiting for this period, a command will not use lvmetad, and
# will revert to disk scanning.
# This configuration option has an automatic default value.
diff --git a/man/lvchange.8_pregen b/man/lvchange.8_pregen
index e89ad39..68c21d8 100644
--- a/man/lvchange.8_pregen
+++ b/man/lvchange.8_pregen
@@ -598,8 +598,8 @@ If the list is not set, all LVs are considered to match, and if
if the list is set but empty, no LVs match.
Autoactivation should be used during system boot to make it possible
to select which LVs should be automatically activated by the system.
-See lvmlockd(8) for more information about activation options \fBey\fP and \fBsy\fP for shared VGs.
-See clvmd(8) for more information about activation options \fBey\fP, \fBsy\fP, \fBly\fP and \fBln\fP for clustered VGs.
+See \fBlvmlockd\fP(8) for more information about activation options \fBey\fP and \fBsy\fP for shared VGs.
+See \fBclvmd\fP(8) for more information about activation options \fBey\fP, \fBsy\fP, \fBly\fP and \fBln\fP for clustered VGs.
.ad b
.HP
.ad l
@@ -621,7 +621,7 @@ See \fBlvmraid\fP(7) for more information.
\fB--addtag\fP \fITag\fP
.br
Adds a tag to a PV, VG or LV. This option can be repeated to add
-multiple tags at once. See lvm(8) for information about tags.
+multiple tags at once. See \fBlvm\fP(8) for information about tags.
.ad b
.HP
.ad l
@@ -649,7 +649,7 @@ See \fBlvm\fP(8) for more information about allocation.
\fB-A\fP|\fB--autobackup\fP \fBy\fP|\fBn\fP
.br
Specifies if metadata should be backed up automatically after a change.
-Enabling this is strongly advised! See vgcfgbackup(8) for more information.
+Enabling this is strongly advised! See \fBvgcfgbackup\fP(8) for more information.
.ad b
.HP
.ad l
@@ -724,7 +724,7 @@ messages sent to the log file and/or syslog (if configured).
\fB--deltag\fP \fITag\fP
.br
Deletes a tag from a PV, VG or LV. This option can be repeated to delete
-multiple tags at once. See lvm(8) for information about tags.
+multiple tags at once. See \fBlvm\fP(8) for information about tags.
.ad b
.HP
.ad l
@@ -857,7 +857,7 @@ See \fBlvmraid\fP(7) for more information.
Start (yes) or stop (no) monitoring an LV with dmeventd.
dmeventd monitors kernel events for an LV, and performs
automated maintenance for the LV in reponse to specific events.
-See dmeventd(8) for more information.
+See \fBdmeventd\fP(8) for more information.
.ad b
.HP
.ad l
@@ -1173,6 +1173,8 @@ Change LV permission to read-only:
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/lvconvert.8_pregen b/man/lvconvert.8_pregen
index 3a96dc8..6855550 100644
--- a/man/lvconvert.8_pregen
+++ b/man/lvconvert.8_pregen
@@ -1864,6 +1864,8 @@ Detach and remove the cache pool from a cache LV.
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/lvcreate.8_pregen b/man/lvcreate.8_pregen
index 3954026..6b05147 100644
--- a/man/lvcreate.8_pregen
+++ b/man/lvcreate.8_pregen
@@ -931,15 +931,15 @@ The --zero option normally requires the LV to be active.
If autoactivation \fBay\fP is used, the LV is only activated
if it matches an item in lvm.conf activation/auto_activation_volume_list.
\fBay\fP implies --zero n and --wipesignatures n.
-See lvmlockd(8) for more information about activation options for shared VGs.
-See clvmd(8) for more information about activation options for clustered VGs.
+See \fBlvmlockd\fP(8) for more information about activation options for shared VGs.
+See \fBclvmd\fP(8) for more information about activation options for clustered VGs.
.ad b
.HP
.ad l
\fB--addtag\fP \fITag\fP
.br
Adds a tag to a PV, VG or LV. This option can be repeated to add
-multiple tags at once. See lvm(8) for information about tags.
+multiple tags at once. See \fBlvm\fP(8) for information about tags.
.ad b
.HP
.ad l
@@ -967,7 +967,7 @@ See \fBlvm\fP(8) for more information about allocation.
\fB-A\fP|\fB--autobackup\fP \fBy\fP|\fBn\fP
.br
Specifies if metadata should be backed up automatically after a change.
-Enabling this is strongly advised! See vgcfgbackup(8) for more information.
+Enabling this is strongly advised! See \fBvgcfgbackup\fP(8) for more information.
.ad b
.HP
.ad l
@@ -1227,7 +1227,7 @@ See \fBlvmraid\fP(7) for more information.
Start (yes) or stop (no) monitoring an LV with dmeventd.
dmeventd monitors kernel events for an LV, and performs
automated maintenance for the LV in reponse to specific events.
-See dmeventd(8) for more information.
+See \fBdmeventd\fP(8) for more information.
.ad b
.HP
.ad l
@@ -2717,6 +2717,8 @@ then combining the new origin LV with an existing cache pool.
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/lvdisplay.8_pregen b/man/lvdisplay.8_pregen
index a0ca9aa..6df90a0 100644
--- a/man/lvdisplay.8_pregen
+++ b/man/lvdisplay.8_pregen
@@ -201,14 +201,14 @@ the "unknown" value which denotes that the value could not be determined).
\fB-c\fP|\fB--colon\fP
.br
Generate colon separated output for easier parsing in scripts or programs.
-Also see vgs(8) which provides considerably more control over the output.
+Also see \fBvgs\fP(8) which provides considerably more control over the output.
.ad b
.HP
.ad l
\fB-C\fP|\fB--columns\fP
.br
-Display output in columns, the equivalent of vgs(8).
-Options listed are the same as options given in vgs(8).
+Display output in columns, the equivalent of \fBvgs\fP(8).
+Options listed are the same as options given in \fBvgs\fP(8).
.ad b
.HP
.ad l
@@ -230,7 +230,7 @@ See \fBlvm.conf\fP(5) for more information about config.
.ad l
\fB--configreport\fP \fBlog\fP|\fBvg\fP|\fBlv\fP|\fBpv\fP|\fBpvseg\fP|\fBseg\fP
.br
-See lvmreport(7).
+See \fBlvmreport\fP(7).
.ad b
.HP
.ad l
@@ -251,7 +251,7 @@ For testing and debugging.
\fB--foreign\fP
.br
Report/display foreign VGs that would otherwise be skipped.
-See lvmsystemid(7) for more information about foreign VGs.
+See \fBlvmsystemid\fP(7) for more information about foreign VGs.
.ad b
.HP
.ad l
@@ -335,7 +335,7 @@ Use field name \fBlv_all\fP to view all LV fields,
\fBseg_all\fP all LV segment fields, and
\fBpvseg_all\fP all PV segment columns.
See the lvm.conf report section for more config options.
-See lvmreport(7) for more information about reporting.
+See \fBlvmreport\fP(7) for more information about reporting.
.ad b
.HP
.ad l
@@ -406,7 +406,7 @@ String to use to separate each column. Useful if grepping the output.
.br
Report/display shared VGs that would otherwise be skipped when
lvmlockd is not being used on the host.
-See lvmlockd(8) for more information about shared VGs.
+See \fBlvmlockd\fP(8) for more information about shared VGs.
.ad b
.HP
.ad l
@@ -546,6 +546,8 @@ For example, LVM_VG_NAME can generally be substituted for a required VG paramete
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/lvextend.8_pregen b/man/lvextend.8_pregen
index ae631be..9f4f097 100644
--- a/man/lvextend.8_pregen
+++ b/man/lvextend.8_pregen
@@ -350,7 +350,7 @@ See \fBlvm\fP(8) for more information about allocation.
\fB-A\fP|\fB--autobackup\fP \fBy\fP|\fBn\fP
.br
Specifies if metadata should be backed up automatically after a change.
-Enabling this is strongly advised! See vgcfgbackup(8) for more information.
+Enabling this is strongly advised! See \fBvgcfgbackup\fP(8) for more information.
.ad b
.HP
.ad l
@@ -692,6 +692,8 @@ Extend an LV by 16MiB using specific physical extents.
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/lvm-fullreport.8_pregen b/man/lvm-fullreport.8_pregen
index 8104dba..ff0cba7 100644
--- a/man/lvm-fullreport.8_pregen
+++ b/man/lvm-fullreport.8_pregen
@@ -15,7 +15,6 @@ and LV segments. The information is all gathered together for each VG
(under a per-VG lock) so it is consistent. Information gathered from
separate calls to \fBvgs\fP, \fBpvs\fP, and \fBlvs\fP can be inconsistent
if information changes between commands.
-
.SH USAGE
\fBlvm fullreport\fP
.br
@@ -214,7 +213,7 @@ See \fBlvm.conf\fP(5) for more information about config.
.ad l
\fB--configreport\fP \fBlog\fP|\fBvg\fP|\fBlv\fP|\fBpv\fP|\fBpvseg\fP|\fBseg\fP
.br
-See lvmreport(7).
+See \fBlvmreport\fP(7).
.ad b
.HP
.ad l
@@ -235,7 +234,7 @@ For testing and debugging.
\fB--foreign\fP
.br
Report/display foreign VGs that would otherwise be skipped.
-See lvmsystemid(7) for more information about foreign VGs.
+See \fBlvmsystemid\fP(7) for more information about foreign VGs.
.ad b
.HP
.ad l
@@ -317,7 +316,7 @@ Use field name \fBlv_all\fP to view all LV fields,
\fBseg_all\fP all LV segment fields, and
\fBpvseg_all\fP all PV segment columns.
See the lvm.conf report section for more config options.
-See lvmreport(7) for more information about reporting.
+See \fBlvmreport\fP(7) for more information about reporting.
.ad b
.HP
.ad l
@@ -389,7 +388,7 @@ String to use to separate each column. Useful if grepping the output.
.br
Report/display shared VGs that would otherwise be skipped when
lvmlockd is not being used on the host.
-See lvmlockd(8) for more information about shared VGs.
+See \fBlvmlockd\fP(8) for more information about shared VGs.
.ad b
.HP
.ad l
@@ -532,6 +531,8 @@ For example, LVM_VG_NAME can generally be substituted for a required VG paramete
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/lvm-lvpoll.8_pregen b/man/lvm-lvpoll.8_pregen
index 1292a6c..2154b79 100644
--- a/man/lvm-lvpoll.8_pregen
+++ b/man/lvm-lvpoll.8_pregen
@@ -99,7 +99,7 @@ Stop processing a poll operation in lvmpolld.
\fB-A\fP|\fB--autobackup\fP \fBy\fP|\fBn\fP
.br
Specifies if metadata should be backed up automatically after a change.
-Enabling this is strongly advised! See vgcfgbackup(8) for more information.
+Enabling this is strongly advised! See \fBvgcfgbackup\fP(8) for more information.
.ad b
.HP
.ad l
@@ -312,6 +312,8 @@ Continue thin snapshot merge.
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/lvmconfig.8_pregen b/man/lvmconfig.8_pregen
index e7f93cd..3c3e25f 100644
--- a/man/lvmconfig.8_pregen
+++ b/man/lvmconfig.8_pregen
@@ -213,7 +213,10 @@ Exclude advanced configuration settings from the output.
.ad l
\fB--ignorelocal\fP
.br
-Ignore local section.
+Ignore the local section. The local section should be defined in
+the lvmlocal.conf file, and should contain config settings
+specific to the local host which should not be copied to
+other hosts.
.ad b
.HP
.ad l
@@ -315,7 +318,38 @@ back metadata it believes has changed but hasn't.
.ad l
\fB--typeconfig\fP \fBcurrent\fP|\fBdefault\fP|\fBdiff\fP|\fBfull\fP|\fBlist\fP|\fBmissing\fP|\fBnew\fP|\fBprofilable\fP|\fBprofilable-command\fP|\fBprofilable-metadata\fP
.br
-See lvmreport(7).
+\fBcurrent\fP prints the config settings that would be applied
+to an lvm command (assuming the command does not override them
+on the command line.) This includes:
+settings that have been modified in lvm config files,
+settings that get their default values from config files,
+and default settings that have been uncommented in config files.
+\fBdefault\fP prints all settings with their default values.
+Changes made in lvm config files are not reflected in the output.
+Some settings get their default values internally,
+and these settings are printed as comments.
+Other settings get their default values from config files,
+and these settings are not printed as comments.
+\fBdiff\fP prints only config settings that have been modified
+from their default values in config files (the difference between
+current and default.)
+\fBfull\fP prints every setting uncommented and set to the
+current value, i.e. how it would be used by an lvm command.
+This includes settings modified in config files, settings that usually
+get defaults internally, and settings that get defaults from config files.
+\fBlist\fP prints all config names without values.
+\fBmissing\fP prints settings that are missing from the
+lvm config files. A missing setting that usually gets its default
+from config files is printed uncommented and set to the internal default.
+Settings that get their default internally and are not set in config files
+are printed commented with the internal default.
+\fBnew\fP prints config settings that have been added since
+the lvm version specified by --sinceversion. They are printed
+with their default values.
+\fBprofilable\fP prints settings with their default values that can be set from a profile.
+\fBprofilable-command\fP prints settings with their default values that can be set from a command profile.
+\fBprofilable-metadata\fP prints settings with their default values that can be set from a metadata profile.
+Also see \fBlvm.conf\fP(5).
.ad b
.HP
.ad l
@@ -450,6 +484,8 @@ For example, LVM_VG_NAME can generally be substituted for a required VG paramete
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/lvmdiskscan.8_pregen b/man/lvmdiskscan.8_pregen
index b346fde..fe379bb 100644
--- a/man/lvmdiskscan.8_pregen
+++ b/man/lvmdiskscan.8_pregen
@@ -259,6 +259,8 @@ For example, LVM_VG_NAME can generally be substituted for a required VG paramete
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/lvreduce.8_pregen b/man/lvreduce.8_pregen
index 65f3da4..865aef4 100644
--- a/man/lvreduce.8_pregen
+++ b/man/lvreduce.8_pregen
@@ -119,7 +119,7 @@ Common options for lvm:
\fB-A\fP|\fB--autobackup\fP \fBy\fP|\fBn\fP
.br
Specifies if metadata should be backed up automatically after a change.
-Enabling this is strongly advised! See vgcfgbackup(8) for more information.
+Enabling this is strongly advised! See \fBvgcfgbackup\fP(8) for more information.
.ad b
.HP
.ad l
@@ -363,6 +363,8 @@ Reduce the size of an LV by 3 logical extents:
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/lvremove.8_pregen b/man/lvremove.8_pregen
index cc28563..2c9aad1 100644
--- a/man/lvremove.8_pregen
+++ b/man/lvremove.8_pregen
@@ -123,7 +123,7 @@ Common options for lvm:
\fB-A\fP|\fB--autobackup\fP \fBy\fP|\fBn\fP
.br
Specifies if metadata should be backed up automatically after a change.
-Enabling this is strongly advised! See vgcfgbackup(8) for more information.
+Enabling this is strongly advised! See \fBvgcfgbackup\fP(8) for more information.
.ad b
.HP
.ad l
@@ -357,6 +357,8 @@ Remove all LVs the specified VG.
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/lvrename.8_pregen b/man/lvrename.8_pregen
index dfb9247..af39eed 100644
--- a/man/lvrename.8_pregen
+++ b/man/lvrename.8_pregen
@@ -98,7 +98,7 @@ Common options for lvm:
\fB-A\fP|\fB--autobackup\fP \fBy\fP|\fBn\fP
.br
Specifies if metadata should be backed up automatically after a change.
-Enabling this is strongly advised! See vgcfgbackup(8) for more information.
+Enabling this is strongly advised! See \fBvgcfgbackup\fP(8) for more information.
.ad b
.HP
.ad l
@@ -294,6 +294,8 @@ An alternate syntax to rename "lvold" to "lvnew":
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/lvresize.8_pregen b/man/lvresize.8_pregen
index df9d93c..2432495 100644
--- a/man/lvresize.8_pregen
+++ b/man/lvresize.8_pregen
@@ -298,7 +298,7 @@ See \fBlvm\fP(8) for more information about allocation.
\fB-A\fP|\fB--autobackup\fP \fBy\fP|\fBn\fP
.br
Specifies if metadata should be backed up automatically after a change.
-Enabling this is strongly advised! See vgcfgbackup(8) for more information.
+Enabling this is strongly advised! See \fBvgcfgbackup\fP(8) for more information.
.ad b
.HP
.ad l
@@ -618,6 +618,8 @@ Extend an LV by 16MB using specific physical extents:
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/lvs.8_pregen b/man/lvs.8_pregen
index b16bc86..f773750 100644
--- a/man/lvs.8_pregen
+++ b/man/lvs.8_pregen
@@ -220,7 +220,7 @@ See \fBlvm.conf\fP(5) for more information about config.
.ad l
\fB--configreport\fP \fBlog\fP|\fBvg\fP|\fBlv\fP|\fBpv\fP|\fBpvseg\fP|\fBseg\fP
.br
-See lvmreport(7).
+See \fBlvmreport\fP(7).
.ad b
.HP
.ad l
@@ -241,7 +241,7 @@ For testing and debugging.
\fB--foreign\fP
.br
Report/display foreign VGs that would otherwise be skipped.
-See lvmsystemid(7) for more information about foreign VGs.
+See \fBlvmsystemid\fP(7) for more information about foreign VGs.
.ad b
.HP
.ad l
@@ -331,7 +331,7 @@ Use field name \fBlv_all\fP to view all LV fields,
\fBseg_all\fP all LV segment fields, and
\fBpvseg_all\fP all PV segment columns.
See the lvm.conf report section for more config options.
-See lvmreport(7) for more information about reporting.
+See \fBlvmreport\fP(7) for more information about reporting.
.ad b
.HP
.ad l
@@ -409,7 +409,7 @@ String to use to separate each column. Useful if grepping the output.
.br
Report/display shared VGs that would otherwise be skipped when
lvmlockd is not being used on the host.
-See lvmlockd(8) for more information about shared VGs.
+See \fBlvmlockd\fP(8) for more information about shared VGs.
.ad b
.HP
.ad l
@@ -637,6 +637,8 @@ s(k)ip activation: this volume is flagged to be skipped during activation.
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/lvscan.8_pregen b/man/lvscan.8_pregen
index 523de90..7713e53 100644
--- a/man/lvscan.8_pregen
+++ b/man/lvscan.8_pregen
@@ -322,6 +322,8 @@ For example, LVM_VG_NAME can generally be substituted for a required VG paramete
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/pvchange.8_pregen b/man/pvchange.8_pregen
index 85ffcc8..33c49e9 100644
--- a/man/pvchange.8_pregen
+++ b/man/pvchange.8_pregen
@@ -9,6 +9,9 @@ pvchange - Change attributes of physical volume(s)
.br
.SH DESCRIPTION
pvchange changes PV attributes in the VG.
+
+For options listed in parentheses, any one is required, after which the
+others are optional.
.SH USAGE
Change properties of all PVs.
.br
@@ -160,12 +163,13 @@ Common options for lvm:
\fB--addtag\fP \fITag\fP
.br
Adds a tag to a PV, VG or LV. This option can be repeated to add
-multiple tags at once. See lvm(8) for information about tags.
+multiple tags at once. See \fBlvm\fP(8) for information about tags.
.ad b
.HP
.ad l
\fB-a\fP|\fB--all\fP
.br
+Change all visible PVs.
.ad b
.HP
.ad l
@@ -178,7 +182,7 @@ Enable or disable allocation of physical extents on this PV.
\fB-A\fP|\fB--autobackup\fP \fBy\fP|\fBn\fP
.br
Specifies if metadata should be backed up automatically after a change.
-Enabling this is strongly advised! See vgcfgbackup(8) for more information.
+Enabling this is strongly advised! See \fBvgcfgbackup\fP(8) for more information.
.ad b
.HP
.ad l
@@ -208,7 +212,7 @@ messages sent to the log file and/or syslog (if configured).
\fB--deltag\fP \fITag\fP
.br
Deletes a tag from a PV, VG or LV. This option can be repeated to delete
-multiple tags at once. See lvm(8) for information about tags.
+multiple tags at once. See \fBlvm\fP(8) for information about tags.
.ad b
.HP
.ad l
@@ -418,6 +422,8 @@ disk errors, or because it will be removed after freeing it).
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/pvck.8_pregen b/man/pvck.8_pregen
index fe5a030..51b761d 100644
--- a/man/pvck.8_pregen
+++ b/man/pvck.8_pregen
@@ -256,6 +256,8 @@ parameter with a value of 204800 (100 * 1024 * 1024 / 512 = 204800).
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/pvcreate.8_pregen b/man/pvcreate.8_pregen
index d3cb688..6345b28 100644
--- a/man/pvcreate.8_pregen
+++ b/man/pvcreate.8_pregen
@@ -343,11 +343,11 @@ back metadata it believes has changed but hasn't.
Specify a UUID for the device.
Without this option, a random UUID is generated.
This option is needed before restoring a backup of LVM metadata
-onto a replacement device; see vgcfgrestore(8). As such, use of
+onto a replacement device; see \fBvgcfgrestore\fP(8). As such, use of
--restorefile is compulsory unless the --norestorefile is used.
All PVs must have unique UUIDs, and LVM will prevent certain operations
if multiple devices are seen with the same UUID.
-See vgimportclone(8) for more information.
+See \fBvgimportclone\fP(8) for more information.
.ad b
.HP
.ad l
@@ -469,6 +469,8 @@ boundary) manually account for this when initializing for use by LVM.
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/pvdisplay.8_pregen b/man/pvdisplay.8_pregen
index 9434508..1e7ed4b 100644
--- a/man/pvdisplay.8_pregen
+++ b/man/pvdisplay.8_pregen
@@ -196,14 +196,14 @@ the "unknown" value which denotes that the value could not be determined).
\fB-c\fP|\fB--colon\fP
.br
Generate colon separated output for easier parsing in scripts or programs.
-Also see vgs(8) which provides considerably more control over the output.
+Also see \fBvgs\fP(8) which provides considerably more control over the output.
.ad b
.HP
.ad l
\fB-C\fP|\fB--columns\fP
.br
-Display output in columns, the equivalent of vgs(8).
-Options listed are the same as options given in vgs(8).
+Display output in columns, the equivalent of \fBvgs\fP(8).
+Options listed are the same as options given in \fBvgs\fP(8).
.ad b
.HP
.ad l
@@ -225,7 +225,7 @@ See \fBlvm.conf\fP(5) for more information about config.
.ad l
\fB--configreport\fP \fBlog\fP|\fBvg\fP|\fBlv\fP|\fBpv\fP|\fBpvseg\fP|\fBseg\fP
.br
-See lvmreport(7).
+See \fBlvmreport\fP(7).
.ad b
.HP
.ad l
@@ -246,7 +246,7 @@ For testing and debugging.
\fB--foreign\fP
.br
Report/display foreign VGs that would otherwise be skipped.
-See lvmsystemid(7) for more information about foreign VGs.
+See \fBlvmsystemid\fP(7) for more information about foreign VGs.
.ad b
.HP
.ad l
@@ -320,7 +320,7 @@ Use field name \fBlv_all\fP to view all LV fields,
\fBseg_all\fP all LV segment fields, and
\fBpvseg_all\fP all PV segment columns.
See the lvm.conf report section for more config options.
-See lvmreport(7) for more information about reporting.
+See \fBlvmreport\fP(7) for more information about reporting.
.ad b
.HP
.ad l
@@ -386,7 +386,7 @@ String to use to separate each column. Useful if grepping the output.
.br
Report/display shared VGs that would otherwise be skipped when
lvmlockd is not being used on the host.
-See lvmlockd(8) for more information about shared VGs.
+See \fBlvmlockd\fP(8) for more information about shared VGs.
.ad b
.HP
.ad l
@@ -533,6 +533,8 @@ For example, LVM_VG_NAME can generally be substituted for a required VG paramete
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/pvmove.8_pregen b/man/pvmove.8_pregen
index 08f35b9..cfc4549 100644
--- a/man/pvmove.8_pregen
+++ b/man/pvmove.8_pregen
@@ -183,7 +183,7 @@ moved to the destination PV, or none are if the operation is aborted.
\fB-A\fP|\fB--autobackup\fP \fBy\fP|\fBn\fP
.br
Specifies if metadata should be backed up automatically after a change.
-Enabling this is strongly advised! See vgcfgbackup(8) for more information.
+Enabling this is strongly advised! See \fBvgcfgbackup\fP(8) for more information.
.ad b
.HP
.ad l
@@ -482,6 +482,8 @@ extents can also be picked out and moved.
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/pvremove.8_pregen b/man/pvremove.8_pregen
index a913ab3..325654a 100644
--- a/man/pvremove.8_pregen
+++ b/man/pvremove.8_pregen
@@ -267,6 +267,8 @@ For example, LVM_VG_NAME can generally be substituted for a required VG paramete
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/pvresize.8_pregen b/man/pvresize.8_pregen
index 8a03088..09c81e4 100644
--- a/man/pvresize.8_pregen
+++ b/man/pvresize.8_pregen
@@ -274,6 +274,8 @@ appropriate for the intended new partition size).
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/pvs.8_pregen b/man/pvs.8_pregen
index 9b5162a..970c1f9 100644
--- a/man/pvs.8_pregen
+++ b/man/pvs.8_pregen
@@ -215,7 +215,7 @@ See \fBlvm.conf\fP(5) for more information about config.
.ad l
\fB--configreport\fP \fBlog\fP|\fBvg\fP|\fBlv\fP|\fBpv\fP|\fBpvseg\fP|\fBseg\fP
.br
-See lvmreport(7).
+See \fBlvmreport\fP(7).
.ad b
.HP
.ad l
@@ -236,7 +236,7 @@ For testing and debugging.
\fB--foreign\fP
.br
Report/display foreign VGs that would otherwise be skipped.
-See lvmsystemid(7) for more information about foreign VGs.
+See \fBlvmsystemid\fP(7) for more information about foreign VGs.
.ad b
.HP
.ad l
@@ -318,7 +318,7 @@ Use field name \fBlv_all\fP to view all LV fields,
\fBseg_all\fP all LV segment fields, and
\fBpvseg_all\fP all PV segment columns.
See the lvm.conf report section for more config options.
-See lvmreport(7) for more information about reporting.
+See \fBlvmreport\fP(7) for more information about reporting.
.ad b
.HP
.ad l
@@ -398,7 +398,7 @@ String to use to separate each column. Useful if grepping the output.
.br
Report/display shared VGs that would otherwise be skipped when
lvmlockd is not being used on the host.
-See lvmlockd(8) for more information about shared VGs.
+See \fBlvmlockd\fP(8) for more information about shared VGs.
.ad b
.HP
.ad l
@@ -561,6 +561,8 @@ e(x)ported
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/pvscan.8_pregen b/man/pvscan.8_pregen
index 0148c09..4927fcb 100644
--- a/man/pvscan.8_pregen
+++ b/man/pvscan.8_pregen
@@ -141,7 +141,7 @@ Populate the lvmetad cache by scanning PVs.
.ad b
.br
.ad l
-[ \fB-a\fP|\fB--activate\fP \fBy\fP|\fBn\fP|\fBay\fP ]
+[ \fB-a\fP|\fB--activate\fP \fBay\fP ]
.ad b
.br
.ad l
@@ -227,6 +227,8 @@ Common options for lvm:
.ad l
\fB-a\fP|\fB--activate\fP \fBy\fP|\fBn\fP|\fBay\fP
.br
+Auto-activate LVs in a VG when the PVs scanned have completed the VG.
+(Only \fBay\fP is applicable.)
.ad b
.HP
.ad l
@@ -462,6 +464,8 @@ For example, LVM_VG_NAME can generally be substituted for a required VG paramete
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/vgcfgbackup.8_pregen b/man/vgcfgbackup.8_pregen
index 6a7099d..6a56481 100644
--- a/man/vgcfgbackup.8_pregen
+++ b/man/vgcfgbackup.8_pregen
@@ -152,7 +152,7 @@ treated as a template, and %s is replaced by the VG name.
\fB--foreign\fP
.br
Report/display foreign VGs that would otherwise be skipped.
-See lvmsystemid(7) for more information about foreign VGs.
+See \fBlvmsystemid\fP(7) for more information about foreign VGs.
.ad b
.HP
.ad l
@@ -316,6 +316,8 @@ For example, LVM_VG_NAME can generally be substituted for a required VG paramete
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/vgcfgrestore.8_pregen b/man/vgcfgrestore.8_pregen
index d15859e..f4fe2e4 100644
--- a/man/vgcfgrestore.8_pregen
+++ b/man/vgcfgrestore.8_pregen
@@ -399,6 +399,8 @@ missing PV. Repeat for all other missing PVs in the VG. Then use
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/vgchange.8_pregen b/man/vgchange.8_pregen
index 6d95335..b08c2f9 100644
--- a/man/vgchange.8_pregen
+++ b/man/vgchange.8_pregen
@@ -536,8 +536,8 @@ If the list is not set, all LVs are considered to match, and if
if the list is set but empty, no LVs match.
Autoactivation should be used during system boot to make it possible
to select which LVs should be automatically activated by the system.
-See lvmlockd(8) for more information about activation options \fBey\fP and \fBsy\fP for shared VGs.
-See clvmd(8) for more information about activation options \fBey\fP, \fBsy\fP, \fBly\fP and \fBln\fP for clustered VGs.
+See \fBlvmlockd\fP(8) for more information about activation options \fBey\fP and \fBsy\fP for shared VGs.
+See \fBclvmd\fP(8) for more information about activation options \fBey\fP, \fBsy\fP, \fBly\fP and \fBln\fP for clustered VGs.
.ad b
.HP
.ad l
@@ -559,7 +559,7 @@ See \fBlvmraid\fP(7) for more information.
\fB--addtag\fP \fITag\fP
.br
Adds a tag to a PV, VG or LV. This option can be repeated to add
-multiple tags at once. See lvm(8) for information about tags.
+multiple tags at once. See \fBlvm\fP(8) for information about tags.
.ad b
.HP
.ad l
@@ -587,14 +587,14 @@ See \fBlvm\fP(8) for more information about allocation.
\fB-A\fP|\fB--autobackup\fP \fBy\fP|\fBn\fP
.br
Specifies if metadata should be backed up automatically after a change.
-Enabling this is strongly advised! See vgcfgbackup(8) for more information.
+Enabling this is strongly advised! See \fBvgcfgbackup\fP(8) for more information.
.ad b
.HP
.ad l
\fB-c\fP|\fB--clustered\fP \fBy\fP|\fBn\fP
.br
Change the clustered property of a VG using clvmd.
-See clvmd(8) for more information about clustered VGs.
+See \fBclvmd\fP(8) for more information about clustered VGs.
.ad b
.HP
.ad l
@@ -624,7 +624,7 @@ messages sent to the log file and/or syslog (if configured).
\fB--deltag\fP \fITag\fP
.br
Deletes a tag from a PV, VG or LV. This option can be repeated to delete
-multiple tags at once. See lvm(8) for information about tags.
+multiple tags at once. See \fBlvm\fP(8) for information about tags.
.ad b
.HP
.ad l
@@ -686,7 +686,7 @@ without clustered locking and clustered VGs are skipped.
\fB--lockopt\fP \fIString\fP
.br
Used to pass options for special cases to lvmlockd.
-See lvmlockd(8) for more information.
+See \fBlvmlockd\fP(8) for more information.
.ad b
.HP
.ad l
@@ -694,7 +694,7 @@ See lvmlockd(8) for more information.
.br
Start the lockspace of a shared VG in lvmlockd.
lvmlockd locks becomes available for the VG, allowing LVM to use the VG.
-See lvmlockd(8) for more information.
+See \fBlvmlockd\fP(8) for more information.
.ad b
.HP
.ad l
@@ -702,14 +702,14 @@ See lvmlockd(8) for more information.
.br
Stop the lockspace of a shared VG in lvmlockd.
lvmlockd locks become unavailable for the VG, preventing LVM from using the VG.
-See lvmlockd(8) for more information.
+See \fBlvmlockd\fP(8) for more information.
.ad b
.HP
.ad l
\fB--locktype\fP \fBsanlock\fP|\fBdlm\fP|\fBnone\fP
.br
Change the VG lock type to or from a shared lock type used with lvmlockd.
-See lvmlockd(8) for more information.
+See \fBlvmlockd\fP(8) for more information.
.ad b
.HP
.ad l
@@ -746,7 +746,7 @@ See \fBlvm.conf\fP(5) for more information about profiles.
Start (yes) or stop (no) monitoring an LV with dmeventd.
dmeventd monitors kernel events for an LV, and performs
automated maintenance for the LV in reponse to specific events.
-See dmeventd(8) for more information.
+See \fBdmeventd\fP(8) for more information.
.ad b
.HP
.ad l
@@ -879,7 +879,7 @@ vgchange/lvchange skip autoactivation, and defer to pvscan autoactivation.
Changes the system ID of the VG. Using this option requires caution
because the VG may become foreign to the host running the command,
leaving the host unable to access it.
-See lvmsystemid(7) for more information.
+See \fBlvmsystemid\fP(7) for more information.
.ad b
.HP
.ad l
@@ -1032,6 +1032,8 @@ Change the maximum number of LVs for an inactive VG.
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/vgck.8_pregen b/man/vgck.8_pregen
index 235c3cc..9e3c2ef 100644
--- a/man/vgck.8_pregen
+++ b/man/vgck.8_pregen
@@ -254,6 +254,8 @@ For example, LVM_VG_NAME can generally be substituted for a required VG paramete
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/vgconvert.8_pregen b/man/vgconvert.8_pregen
index 60b474b..c63bd50 100644
--- a/man/vgconvert.8_pregen
+++ b/man/vgconvert.8_pregen
@@ -332,6 +332,8 @@ For example, LVM_VG_NAME can generally be substituted for a required VG paramete
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/vgcreate.8_pregen b/man/vgcreate.8_pregen
index 6311e42..82d341c 100644
--- a/man/vgcreate.8_pregen
+++ b/man/vgcreate.8_pregen
@@ -165,7 +165,7 @@ Common options for lvm:
\fB--addtag\fP \fITag\fP
.br
Adds a tag to a PV, VG or LV. This option can be repeated to add
-multiple tags at once. See lvm(8) for information about tags.
+multiple tags at once. See \fBlvm\fP(8) for information about tags.
.ad b
.HP
.ad l
@@ -193,7 +193,7 @@ See \fBlvm\fP(8) for more information about allocation.
\fB-A\fP|\fB--autobackup\fP \fBy\fP|\fBn\fP
.br
Specifies if metadata should be backed up automatically after a change.
-Enabling this is strongly advised! See vgcfgbackup(8) for more information.
+Enabling this is strongly advised! See \fBvgcfgbackup\fP(8) for more information.
.ad b
.HP
.ad l
@@ -203,7 +203,7 @@ Create a clustered VG using clvmd if LVM is compiled with cluster support.
This allows multiple hosts to share a VG on shared devices.
clvmd and a lock manager must be configured and running.
(A clustered VG using clvmd is different from a shared VG using lvmlockd.)
-See clvmd(8) for more information about clustered VGs.
+See \fBclvmd\fP(8) for more information about clustered VGs.
.ad b
.HP
.ad l
@@ -278,14 +278,14 @@ in the source). Use with care.
\fB--lockopt\fP \fIString\fP
.br
Used to pass options for special cases to lvmlockd.
-See lvmlockd(8) for more information.
+See \fBlvmlockd\fP(8) for more information.
.ad b
.HP
.ad l
\fB--locktype\fP \fBsanlock\fP|\fBdlm\fP|\fBnone\fP
.br
Specify the VG lock type directly in place of using --shared.
-See lvmlockd(8) for more information.
+See \fBlvmlockd\fP(8) for more information.
.ad b
.HP
.ad l
@@ -389,7 +389,7 @@ lvmlockd will select lock type sanlock or dlm depending on which lock
manager is running. This allows multiple hosts to share a VG on shared
devices. lvmlockd and a lock manager must be configured and running.
(A shared VG using lvmlockd is different from a clustered VG using clvmd.)
-See lvmlockd(8) for more information about shared VGs.
+See \fBlvmlockd\fP(8) for more information about shared VGs.
.ad b
.HP
.ad l
@@ -401,7 +401,7 @@ without this option, in which case the new VG is given the system ID of
the host creating it. Using this option requires caution because the
system ID of the new VG may not match the system ID of the host running
the command, leaving the VG inaccessible to the host.
-See lvmsystemid(7) for more information.
+See \fBlvmsystemid\fP(7) for more information.
.ad b
.HP
.ad l
@@ -548,6 +548,8 @@ Create a VG with two PVs, using the default physical extent size.
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/vgdisplay.8_pregen b/man/vgdisplay.8_pregen
index 9b99936..2fffacb 100644
--- a/man/vgdisplay.8_pregen
+++ b/man/vgdisplay.8_pregen
@@ -191,14 +191,14 @@ the "unknown" value which denotes that the value could not be determined).
\fB-c\fP|\fB--colon\fP
.br
Generate colon separated output for easier parsing in scripts or programs.
-Also see vgs(8) which provides considerably more control over the output.
+Also see \fBvgs\fP(8) which provides considerably more control over the output.
.ad b
.HP
.ad l
\fB-C\fP|\fB--columns\fP
.br
-Display output in columns, the equivalent of vgs(8).
-Options listed are the same as options given in vgs(8).
+Display output in columns, the equivalent of \fBvgs\fP(8).
+Options listed are the same as options given in \fBvgs\fP(8).
.ad b
.HP
.ad l
@@ -220,7 +220,7 @@ See \fBlvm.conf\fP(5) for more information about config.
.ad l
\fB--configreport\fP \fBlog\fP|\fBvg\fP|\fBlv\fP|\fBpv\fP|\fBpvseg\fP|\fBseg\fP
.br
-See lvmreport(7).
+See \fBlvmreport\fP(7).
.ad b
.HP
.ad l
@@ -241,7 +241,7 @@ For testing and debugging.
\fB--foreign\fP
.br
Report/display foreign VGs that would otherwise be skipped.
-See lvmsystemid(7) for more information about foreign VGs.
+See \fBlvmsystemid\fP(7) for more information about foreign VGs.
.ad b
.HP
.ad l
@@ -309,7 +309,7 @@ Use field name \fBlv_all\fP to view all LV fields,
\fBseg_all\fP all LV segment fields, and
\fBpvseg_all\fP all PV segment columns.
See the lvm.conf report section for more config options.
-See lvmreport(7) for more information about reporting.
+See \fBlvmreport\fP(7) for more information about reporting.
.ad b
.HP
.ad l
@@ -375,7 +375,7 @@ String to use to separate each column. Useful if grepping the output.
.br
Report/display shared VGs that would otherwise be skipped when
lvmlockd is not being used on the host.
-See lvmlockd(8) for more information about shared VGs.
+See \fBlvmlockd\fP(8) for more information about shared VGs.
.ad b
.HP
.ad l
@@ -516,6 +516,8 @@ For example, LVM_VG_NAME can generally be substituted for a required VG paramete
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/vgexport.8_pregen b/man/vgexport.8_pregen
index 6d2c6ca..ed292f8 100644
--- a/man/vgexport.8_pregen
+++ b/man/vgexport.8_pregen
@@ -10,7 +10,7 @@ vgexport - Unregister volume group(s) from the system
.SH DESCRIPTION
vgexport makes inactive VGs unknown to the system. In this state, all the
PVs in the VG can be moved to a different system, from which
-\fBvgimport\fP can then be run.
+\fBvgimport\fP(8) can then be run.
Most LVM tools ignore exported VGs.
@@ -301,6 +301,8 @@ For example, LVM_VG_NAME can generally be substituted for a required VG paramete
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/vgextend.8_pregen b/man/vgextend.8_pregen
index 5445f6c..bc6d959 100644
--- a/man/vgextend.8_pregen
+++ b/man/vgextend.8_pregen
@@ -132,7 +132,7 @@ Common options for lvm:
\fB-A\fP|\fB--autobackup\fP \fBy\fP|\fBn\fP
.br
Specifies if metadata should be backed up automatically after a change.
-Enabling this is strongly advised! See vgcfgbackup(8) for more information.
+Enabling this is strongly advised! See \fBvgcfgbackup\fP(8) for more information.
.ad b
.HP
.ad l
@@ -405,6 +405,8 @@ Add two PVs to a VG.
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/vgimport.8_pregen b/man/vgimport.8_pregen
index ffd237c..7e0c3d6 100644
--- a/man/vgimport.8_pregen
+++ b/man/vgimport.8_pregen
@@ -106,6 +106,7 @@ Common options for lvm:
.ad l
\fB-a\fP|\fB--all\fP
.br
+Import all visible VGs.
.ad b
.HP
.ad l
@@ -309,6 +310,8 @@ For example, LVM_VG_NAME can generally be substituted for a required VG paramete
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/vgimportclone.8_pregen b/man/vgimportclone.8_pregen
index ea326f7..96c95f9 100644
--- a/man/vgimportclone.8_pregen
+++ b/man/vgimportclone.8_pregen
@@ -273,6 +273,8 @@ Rename the VG associated with "/dev/sdc" and "/dev/sdd" from "vg00" to "vg00_sna
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/vgmerge.8_pregen b/man/vgmerge.8_pregen
index c2a071b..c3a9bc8 100644
--- a/man/vgmerge.8_pregen
+++ b/man/vgmerge.8_pregen
@@ -84,7 +84,7 @@ Common options for lvm:
\fB-A\fP|\fB--autobackup\fP \fBy\fP|\fBn\fP
.br
Specifies if metadata should be backed up automatically after a change.
-Enabling this is strongly advised! See vgcfgbackup(8) for more information.
+Enabling this is strongly advised! See \fBvgcfgbackup\fP(8) for more information.
.ad b
.HP
.ad l
@@ -258,6 +258,8 @@ Merge an inactive VG named "vg00" into the active or inactive VG named
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/vgmknodes.8_pregen b/man/vgmknodes.8_pregen
index d23ecaf..b50b3dc 100644
--- a/man/vgmknodes.8_pregen
+++ b/man/vgmknodes.8_pregen
@@ -287,6 +287,8 @@ For example, LVM_VG_NAME can generally be substituted for a required VG paramete
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/vgreduce.8_pregen b/man/vgreduce.8_pregen
index d5cdac3..44a6ae0 100644
--- a/man/vgreduce.8_pregen
+++ b/man/vgreduce.8_pregen
@@ -198,7 +198,7 @@ Removes all empty PVs if none are named on the command line.
\fB-A\fP|\fB--autobackup\fP \fBy\fP|\fBn\fP
.br
Specifies if metadata should be backed up automatically after a change.
-Enabling this is strongly advised! See vgcfgbackup(8) for more information.
+Enabling this is strongly advised! See \fBvgcfgbackup\fP(8) for more information.
.ad b
.HP
.ad l
@@ -409,6 +409,8 @@ For example, LVM_VG_NAME can generally be substituted for a required VG paramete
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/vgremove.8_pregen b/man/vgremove.8_pregen
index 22e778c..5399848 100644
--- a/man/vgremove.8_pregen
+++ b/man/vgremove.8_pregen
@@ -304,6 +304,8 @@ For example, LVM_VG_NAME can generally be substituted for a required VG paramete
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/vgrename.8_pregen b/man/vgrename.8_pregen
index 5a5b8fa..3570e87 100644
--- a/man/vgrename.8_pregen
+++ b/man/vgrename.8_pregen
@@ -111,7 +111,7 @@ Common options for lvm:
\fB-A\fP|\fB--autobackup\fP \fBy\fP|\fBn\fP
.br
Specifies if metadata should be backed up automatically after a change.
-Enabling this is strongly advised! See vgcfgbackup(8) for more information.
+Enabling this is strongly advised! See \fBvgcfgbackup\fP(8) for more information.
.ad b
.HP
.ad l
@@ -300,6 +300,8 @@ Rename the VG with the specified UUID to "myvg".
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/vgs.8_pregen b/man/vgs.8_pregen
index 7909af9..6bef89d 100644
--- a/man/vgs.8_pregen
+++ b/man/vgs.8_pregen
@@ -210,7 +210,7 @@ See \fBlvm.conf\fP(5) for more information about config.
.ad l
\fB--configreport\fP \fBlog\fP|\fBvg\fP|\fBlv\fP|\fBpv\fP|\fBpvseg\fP|\fBseg\fP
.br
-See lvmreport(7).
+See \fBlvmreport\fP(7).
.ad b
.HP
.ad l
@@ -231,7 +231,7 @@ For testing and debugging.
\fB--foreign\fP
.br
Report/display foreign VGs that would otherwise be skipped.
-See lvmsystemid(7) for more information about foreign VGs.
+See \fBlvmsystemid\fP(7) for more information about foreign VGs.
.ad b
.HP
.ad l
@@ -313,7 +313,7 @@ Use field name \fBlv_all\fP to view all LV fields,
\fBseg_all\fP all LV segment fields, and
\fBpvseg_all\fP all PV segment columns.
See the lvm.conf report section for more config options.
-See lvmreport(7) for more information about reporting.
+See \fBlvmreport\fP(7) for more information about reporting.
.ad b
.HP
.ad l
@@ -385,7 +385,7 @@ String to use to separate each column. Useful if grepping the output.
.br
Report/display shared VGs that would otherwise be skipped when
lvmlockd is not being used on the host.
-See lvmlockd(8) for more information about shared VGs.
+See \fBlvmlockd\fP(8) for more information about shared VGs.
.ad b
.HP
.ad l
@@ -549,6 +549,8 @@ Allocation policy: (c)ontiguous, c(l)ing, (n)ormal, (a)nywhere
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/vgscan.8_pregen b/man/vgscan.8_pregen
index ccc2f29..bd2f4d9 100644
--- a/man/vgscan.8_pregen
+++ b/man/vgscan.8_pregen
@@ -284,6 +284,8 @@ For example, LVM_VG_NAME can generally be substituted for a required VG paramete
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
diff --git a/man/vgsplit.8_pregen b/man/vgsplit.8_pregen
index 400cdcd..d02e68a 100644
--- a/man/vgsplit.8_pregen
+++ b/man/vgsplit.8_pregen
@@ -152,7 +152,7 @@ See \fBlvm\fP(8) for more information about allocation.
\fB-A\fP|\fB--autobackup\fP \fBy\fP|\fBn\fP
.br
Specifies if metadata should be backed up automatically after a change.
-Enabling this is strongly advised! See vgcfgbackup(8) for more information.
+Enabling this is strongly advised! See \fBvgcfgbackup\fP(8) for more information.
.ad b
.HP
.ad l
@@ -378,6 +378,8 @@ For example, LVM_VG_NAME can generally be substituted for a required VG paramete
.BR lvs (8)
.BR lvscan (8)
+.BR lvm-fullreport (8)
+.BR lvm-lvpoll (8)
.BR lvm2-activation-generator (8)
.BR blkdeactivate (8)
.BR lvmdump (8)
6 years, 10 months
master - log: fix message prefix truncation
by Alasdair Kergon
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=7f1ec681d65001ed3c7...
Commit: 7f1ec681d65001ed3c74a7c7239efa98a8507d88
Parent: 3fe67217d46d2bb496b5c09b0314c7260ed6c24f
Author: Alasdair G Kergon <agk(a)redhat.com>
AuthorDate: Tue Jun 27 12:41:59 2017 +0100
Committer: Alasdair G Kergon <agk(a)redhat.com>
CommitterDate: Tue Jun 27 12:41:59 2017 +0100
log: fix message prefix truncation
Restore the 29-character prefix limit that commit
e907535ab977ea29319aeb015cec6c06729f7ce4 ("coverity: use better
function") accidentally reduced to 28 characters.
---
lib/log/log.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/log/log.c b/lib/log/log.c
index 8f52623..8ca60e4 100644
--- a/lib/log/log.c
+++ b/lib/log/log.c
@@ -376,7 +376,7 @@ void fin_syslog(void)
void init_msg_prefix(const char *prefix)
{
if (prefix)
- dm_strncpy(_msg_prefix, prefix, sizeof(_msg_prefix) - 1);
+ dm_strncpy(_msg_prefix, prefix, sizeof(_msg_prefix));
}
void init_indent(int indent)
6 years, 10 months
master - coverity: model few more functions
by Zdenek Kabelac
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=3fe67217d46d2bb496b...
Commit: 3fe67217d46d2bb496b5c09b0314c7260ed6c24f
Parent: 5ff6260071ef2465ba33ce6dd9b7c7b3168f4c88
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Tue Jun 27 09:23:22 2017 +0200
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Tue Jun 27 12:17:16 2017 +0200
coverity: model few more functions
Reduce amount of FP.
---
coverity/coverity_model.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/coverity/coverity_model.c b/coverity/coverity_model.c
index 250aadf..24a6afe 100644
--- a/coverity/coverity_model.c
+++ b/coverity/coverity_model.c
@@ -41,6 +41,19 @@ struct lv_segment *last_seg(const struct logical_volume *lv)
return ((struct lv_segment **)lv)[0];
}
+const char *find_config_tree_str(struct cmd_context *cmd, int id, struct profile *profile)
+{
+ return "STRING";
+}
+
+struct logical_volume *origin_from_cow(const struct logical_volume *lv)
+{
+ if (lv)
+ return lv;
+
+ __coverity_panic__();
+}
+
/* simple_memccpy() from glibc */
void *memccpy(void *dest, const void *src, int c, size_t n)
{
6 years, 10 months
master - coverity: move initilization of count variable
by Zdenek Kabelac
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=5ff6260071ef2465ba3...
Commit: 5ff6260071ef2465ba33ce6dd9b7c7b3168f4c88
Parent: 0349b6d889551b33d4bf26ffaa71dc6c0eb88198
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Tue Jun 27 12:05:27 2017 +0200
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Tue Jun 27 12:16:33 2017 +0200
coverity: move initilization of count variable
Make code more understandble for Coverity, so it sees connection
between 'extents' and 'count' and in fact code is more readable.
---
libdm/libdm-stats.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/libdm/libdm-stats.c b/libdm/libdm-stats.c
index b0c9e4b..5cb7c2c 100644
--- a/libdm/libdm-stats.c
+++ b/libdm/libdm-stats.c
@@ -4606,6 +4606,7 @@ static uint64_t *_stats_map_file_regions(struct dm_stats *dms, int fd,
struct stat buf;
int update;
+ *count = 0;
update = _stats_group_id_present(dms, group_id);
#ifdef BTRFS_SUPER_MAGIC
@@ -4771,7 +4772,7 @@ uint64_t *dm_stats_create_regions_from_fd(struct dm_stats *dms, int fd,
struct dm_histogram *bounds,
const char *alias)
{
- uint64_t *regions, count = 0;
+ uint64_t *regions, count;
int regroup = 1;
if (alias && !group) {
6 years, 10 months