SHA256
1
0
forked from pool/xen

Accepting request 49271 from Virtualization

checked in (request 49271)

OBS-URL: https://build.opensuse.org/request/show/49271
OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=75
This commit is contained in:
OBS User autobuild
2010-09-27 22:07:20 +00:00
committed by Git OBS Bridge
parent 7e89789f0a
commit 06b9899ef9
186 changed files with 5183 additions and 2357 deletions

View File

@@ -98,9 +98,9 @@ function activate_lvm ()
{
# First scan for PVs and VGs; we may then have to activate the VG
# first, but can ignore errors:
# /sbin/pvscan || :
# /sbin/vgscan --mknodes || :
# /sbin/vgchange -ay ${1%/*} || :
/sbin/pvscan || :
/sbin/vgscan --mknodes || :
/sbin/vgchange -ay ${1%/*} || :
/sbin/lvchange -ay $1
return $?
}
@@ -110,9 +110,9 @@ function deactivate_lvm ()
/sbin/lvchange -an $1
if [ $? -eq 0 ]; then
# We may have to deactivate the VG now, but can ignore errors:
# /sbin/vgchange -an ${1%/*} || :
/sbin/vgchange -an ${1%/*} || :
# Maybe we need to cleanup the LVM cache:
# /sbin/vgscan --mknodes || :
/sbin/vgscan --mknodes || :
return 0
fi
return 1