LGTM, thanks

On Mon, May 4, 2015 at 5:48 PM, 'Petr Pudlak' via ganeti-devel <
[email protected]> wrote:

> Similarly to issue #1037, a loopback device was reported busy at the
> time the 'create' scripts attempted to remove it. To prevent that,
> an invocation of 'udevadm settle' is added to the list of cleanup
> commands, to be executed just before 'losetup -d'.
> ---
>  create | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/create b/create
> index 6565176..08a2cb3 100755
> --- a/create
> +++ b/create
> @@ -38,6 +38,7 @@ if [ ! -b $blockdev ]; then
>    ORIGINAL_BLOCKDEV=$blockdev
>    blockdev=$(losetup --show -f $blockdev)
>    CLEANUP+=("losetup -d $blockdev")
> +  CLEANUP+=("udevadm settle")
>  fi
>
>  DEVICE_SIZE=$(blockdev --getsize64 $blockdev)
> --
> 2.2.0.rc0.207.ga3a616c
>
>
Hrvoje Ribicic
Ganeti Engineering
Google Germany GmbH
Dienerstr. 12, 80331, München

Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Graham Law, Christine Elizabeth Flores
Steuernummer: 48/725/00206
Umsatzsteueridentifikationsnummer: DE813741370

Reply via email to