On Sun, Jan 18, 2015 at 02:11:42PM +0200, Alex Pyrgiotis wrote:
> Add disk template set for file-based disks called
> "dtsInstanceDependentPath", which groups all disk templates whose disk
> paths are dependent from the instance name.
>
> Signed-off-by: Alex Pyrgiotis <apyr...@grnet.gr>
>
> diff --git a/src/Ganeti/Constants.hs b/src/Ganeti/Constants.hs
> index 1d1fcef..0c11871 100644
> --- a/src/Ganeti/Constants.hs
> +++ b/src/Ganeti/Constants.hs
> @@ -967,6 +967,13 @@ dtsFilebased =
>    ConstantUtils.mkSet $ map Types.diskTemplateToRaw
>    [DTSharedFile, DTFile, DTGluster]
>
> +-- | The set of file based disk templates whose path is tied to the instance
> +-- name
> +dtsInstanceDependentPath :: FrozenSet String
> +dtsInstanceDependentPath =
> +  ConstantUtils.mkSet $ map Types.diskTemplateToRaw
> +  [DTSharedFile, DTFile]
> +
>  -- | The set of disk templates that can be moved by copying
>  --
>  -- Note: a requirement is that they're not accessed externally or
> --
> 1.7.10.4
>

LGTM

-- 
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

Reply via email to