[pve-devel] [RFC storage] dir: allow a path as is_mountpoint value

Dietmar Maurer dietmar at proxmox.com
Thu Jul 27 20:08:42 CEST 2017


> +    return $path if $is_mp =~ m/^(1|on|yes|true)$/i;
> +    return undef if $is_mp =~ m/^(0|off|no|false)$/i;

Don't we have a parse_boolean() helper somewhere? If not, can we
add one? I would like to avoid multiple definition of what we 
accept for boolean values.




More information about the pve-devel mailing list