[Ovirt-devel] [PATCH node] always use absolute path for persistent files II

Darryl L. Pierce dpierce at redhat.com
Wed Apr 8 20:04:59 UTC 2009


On Wed, Apr 08, 2009 at 09:54:35PM +0200, Alan Pevec wrote:
> same as ovirt_store_config, unmount_config must use absolute paths
> 
> Signed-off-by: Alan Pevec <apevec at redhat.com>
> ---
>  scripts/ovirt-functions |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions
> index 018cd84..e89898d 100755
> --- a/scripts/ovirt-functions
> +++ b/scripts/ovirt-functions
> @@ -452,7 +452,8 @@ ovirt_store_config() {
>  #
>  unmount_config() {
>      if grep -q " /config ext3" /proc/mounts; then
> -        for f in "$@"; do
> +        for p in "$@"; do
> +            f=$(readlink -f $p)
>              if grep -q " $f ext3" /proc/mounts ; then
>                  umount -n $f
>                  # refresh rootfs copy
> -- 
> 1.6.0.6

ACK.

-- 
Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc.
Virtual Machine Management - http://www.ovirt.org/
Is fearr Gaeilge bhriste ná Béarla cliste.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20090408/e87c6d76/attachment.sig>


More information about the ovirt-devel mailing list