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:
committed by
Git OBS Bridge
parent
7e89789f0a
commit
06b9899ef9
10
block-dmmd
10
block-dmmd
@@ -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
|
||||
|
Reference in New Issue
Block a user