mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvmdump: replace individual redirects
Consider using { cmd1; cmd2; } >> file instead of individual redirects.
This commit is contained in:
parent
df57845f61
commit
030912ec03
@ -198,14 +198,16 @@ if (( clustered )); then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
myecho "Gathering LVM & device-mapper version info..."
|
myecho "Gathering LVM & device-mapper version info..."
|
||||||
echo "LVM VERSION:" >> "$dir/versions"
|
{
|
||||||
"$LVM" lvs --version >> "$dir/versions" 2>> "$log"
|
echo "LVM VERSION:"
|
||||||
echo "DEVICE MAPPER VERSION:" >> "$dir/versions"
|
"$LVM" lvs --version
|
||||||
"$DMSETUP" --version >> "$dir/versions" 2>> "$log"
|
echo "DEVICE MAPPER VERSION:"
|
||||||
echo "KERNEL VERSION:" >> "$dir/versions"
|
"$DMSETUP" --version
|
||||||
"$UNAME" -a >> "$dir/versions" 2>> "$log"
|
echo "KERNEL VERSION:"
|
||||||
echo "DM TARGETS VERSIONS:" >> "$dir/versions"
|
"$UNAME" -a
|
||||||
"$DMSETUP" targets >> "$dir/versions" 2>> "$log"
|
echo "DM TARGETS 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\""
|
||||||
|
Loading…
Reference in New Issue
Block a user