1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Add kernel and device-mapper targets versions report to lvmdump.

This commit is contained in:
Milan Broz 2007-07-02 20:18:38 +00:00
parent 13835b5f6c
commit 32998a5e4f
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.27 - Version 2.02.27 -
================================ ================================
Add kernel and device-mapper targets versions report to lvmdump.
Don't use index and rindex functions marked by SUSv3 as legacy. Don't use index and rindex functions marked by SUSv3 as legacy.
Fix vgsplit if splitting all PVs from VG. Fix vgsplit if splitting all PVs from VG.
Fix lvmdiskscan volume reporting when run in the lvm shell Fix lvmdiskscan volume reporting when run in the lvm shell

View File

@ -18,6 +18,7 @@ DD=dd
CUT=cut CUT=cut
DATE=date DATE=date
BASENAME=basename BASENAME=basename
UNAME=uname
# user may override lvm and dmsetup location by setting LVM_BINARY # user may override lvm and dmsetup location by setting LVM_BINARY
# and DMSETUP_BINARY respectively # and DMSETUP_BINARY respectively
@ -131,6 +132,10 @@ echo "LVM VERSION:" > $dir/versions
$LVM lvs --version >> $dir/versions 2>> $log $LVM lvs --version >> $dir/versions 2>> $log
echo "DEVICE MAPPER VERSION:" >> $dir/versions echo "DEVICE MAPPER VERSION:" >> $dir/versions
$DMSETUP --version >> $dir/versions 2>> $log $DMSETUP --version >> $dir/versions 2>> $log
echo "KERNEL VERSION:" >> $dir/versions
$UNAME -a >> $dir/versions 2>> $log
echo "DM TARGETS VERSIONS:" >> $dir/versions
$DMSETUP targets >> $dir/versions 2>> $log
myecho "Gathering dmsetup info..." myecho "Gathering dmsetup info..."
log "$DMSETUP info -c > $dir/dmsetup_info 2>> $log" log "$DMSETUP info -c > $dir/dmsetup_info 2>> $log"