[pve-devel] applied: [PATCH v2 cluster] cluster: add cfs_lock_acme
Thomas Lamprecht
t.lamprecht at proxmox.com
Fri Apr 27 14:10:43 CEST 2018
applied this cluster patch
On 4/19/18 2:01 PM, Fabian Grünbichler wrote:
> to lock an ACME account config file
>
> Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
> ---
> data/PVE/Cluster.pm | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/data/PVE/Cluster.pm b/data/PVE/Cluster.pm
> index ef7a541..d12c244 100644
> --- a/data/PVE/Cluster.pm
> +++ b/data/PVE/Cluster.pm
> @@ -960,6 +960,14 @@ sub cfs_lock_domain {
> &$cfs_lock($lockid, $timeout, $code, @param);
> }
>
> +sub cfs_lock_acme {
> + my ($account, $timeout, $code, @param) = @_;
> +
> + my $lockid = "acme-$account";
> +
> + &$cfs_lock($lockid, $timeout, $code, @param);
> +}
> +
> my $log_levels = {
> "emerg" => 0,
> "alert" => 1,
>
More information about the pve-devel
mailing list