From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <pve-devel-bounces@lists.proxmox.com>
Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9])
	by lore.proxmox.com (Postfix) with ESMTPS id 33D501FF162
	for <inbox@lore.proxmox.com>; Sat, 22 Mar 2025 16:31:02 +0100 (CET)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
	by firstgate.proxmox.com (Proxmox) with ESMTP id 7EC473C485;
	Sat, 22 Mar 2025 16:31:00 +0100 (CET)
To: pve-devel@lists.proxmox.com
Date: Sun, 23 Mar 2025 00:17:17 +0900
In-Reply-To: <20250322152004.1646886-1-jing@jing.rocks>
References: <20250322152004.1646886-1-jing@jing.rocks>
MIME-Version: 1.0
Message-ID: <mailman.90.1742657459.359.pve-devel@lists.proxmox.com>
List-Id: Proxmox VE development discussion <pve-devel.lists.proxmox.com>
List-Post: <mailto:pve-devel@lists.proxmox.com>
From: Jing Luo via pve-devel <pve-devel@lists.proxmox.com>
Precedence: list
Cc: Jing Luo <jing@jing.rocks>
X-Mailman-Version: 2.1.29
X-BeenThere: pve-devel@lists.proxmox.com
List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel>, 
 <mailto:pve-devel-request@lists.proxmox.com?subject=subscribe>
List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pve-devel>, 
 <mailto:pve-devel-request@lists.proxmox.com?subject=unsubscribe>
List-Archive: <http://lists.proxmox.com/pipermail/pve-devel/>
Reply-To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>
List-Help: <mailto:pve-devel-request@lists.proxmox.com?subject=help>
Subject: [pve-devel] [PATCH pve-guest-common] tree-wide: change /var/lock to
 /run/lock
Content-Type: multipart/mixed; boundary="===============3411579299284277510=="
Errors-To: pve-devel-bounces@lists.proxmox.com
Sender: "pve-devel" <pve-devel-bounces@lists.proxmox.com>

--===============3411579299284277510==
Content-Type: message/rfc822
Content-Disposition: inline

Return-Path: <jing@jing.rocks>
X-Original-To: pve-devel@lists.proxmox.com
Delivered-To: pve-devel@lists.proxmox.com
Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by lists.proxmox.com (Postfix) with ESMTPS id 46498C942D
	for <pve-devel@lists.proxmox.com>; Sat, 22 Mar 2025 16:30:59 +0100 (CET)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
	by firstgate.proxmox.com (Proxmox) with ESMTP id 294173C1F9
	for <pve-devel@lists.proxmox.com>; Sat, 22 Mar 2025 16:30:29 +0100 (CET)
Received: from mail-gw3.jing.rocks (mail-gw3.jing.rocks [219.117.250.209])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by firstgate.proxmox.com (Proxmox) with ESMTPS
	for <pve-devel@lists.proxmox.com>; Sat, 22 Mar 2025 16:30:28 +0100 (CET)
Received: from mail-gw3.jing.rocks (localhost [127.0.0.1])
	by mail-gw3.jing.rocks (Proxmox) with ESMTP id 7FA01165F0
	for <pve-devel@lists.proxmox.com>; Sun, 23 Mar 2025 00:20:22 +0900 (JST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jing.rocks; h=cc
	:cc:content-transfer-encoding:date:from:from:in-reply-to
	:message-id:mime-version:references:reply-to:subject:subject:to
	:to; s=mail-gw; bh=VlfOBtVbJu8hIZB3C7Kkn6rqGMAEAX/zsNDFIegsZtA=; b=
	GmnnGcUHqDbgjLQ25+PWCphHYpgyl+vtt3yIvy5VUrUh5JjMSE8bx+qMTxa4KhM1
	9srWV3Iif0cK6C57/ziuHn/VnF6rVlOICZ7L9gioN5RNzivNtbwoF8ukY3dU7M05
	Erp4cQkS+uv1h/1qqv6O/di9vEFFCOyKjXVyczP3dzamjVcVZ/N7Olgzyj4hFwes
	R2IT9q7MKntMiVo39FPix3R+OJGepbHCc4CF2kiRZ1PozXu0XwUvUuGXrjGbZVNC
	EbsOwmkyskYXIYPJPTs9odG5a6A4iBpytu6o9i2YxCY9Is0SmfKVuO6qpxNi1mTq
	NQfggBbBRtBY7w0LW5ZHRA==
Received: from mail.jing.rocks (mail.jing.rocks [192.168.0.222])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by mail-gw3.jing.rocks (Proxmox) with ESMTPS id 89D99165E5
	for <pve-devel@lists.proxmox.com>; Sun, 23 Mar 2025 00:20:21 +0900 (JST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=jing.rocks;
	s=default; t=1742656821;
	bh=8chhI4h/nF5GM/92l0DCbHOQ98xGZHHdf3fmtJiqrko=;
	h=From:To:Cc:Subject:Date:In-Reply-To:References:From;
	b=LufDRHishhI8Lfkr8p5CXPlYz/kcR97Gk4Yeu2mYaJHFLd8UpPXK/nyQXKlHF5HoW
	 sNNWPvVdAA4dwT9dHvfDfmpjbNL0+1mRGfzKlbIbmH0dBL7hbvV1w3bVCUzUwaAIIf
	 w5dsbL192kR3YEALoCpISWq9HS5jNX805ss4dMkQSf8GGjcnfAwYNQ1+AXsBIh9Flt
	 1UZu7Rwi9FDR9Xl5VBa/jjW+GT48xR50DvhAyabF4S0/N+Xsbzt9fgDDlTNgyo6gd+
	 AP4xz6SwhI1yt5epydfoQTq5NarzNBerEyMwUEQBs4v5g12dpmgxBaHNRTTNBbDJv0
	 2DV7XLEWcTpEA==
Received: from X570AM.jing.rocks (X570AM.lan [IPv6:240b:10:f00:1b00::7e82])
	(Authenticated sender: jing@jing.rocks)
	by mail.jing.rocks (Postfix) with ESMTPSA id 7B0DE38204;
	Sun, 23 Mar 2025 00:20:21 +0900 (JST)
From: Jing Luo <jing@jing.rocks>
To: pve-devel@lists.proxmox.com
Cc: Jing Luo <jing@jing.rocks>
Subject: [PATCH pve-guest-common] tree-wide: change /var/lock to /run/lock
Date: Sun, 23 Mar 2025 00:17:17 +0900
Message-ID: <20250322152004.1646886-10-jing@jing.rocks>
X-Mailer: git-send-email 2.49.0
In-Reply-To: <20250322152004.1646886-1-jing@jing.rocks>
References: <20250322152004.1646886-1-jing@jing.rocks>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-SPAM-LEVEL: Spam detection results:  0
	AWL                     0.000 Adjusted score from AWL reputation of From: address
	BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
	DKIM_SIGNED               0.1 Message has a DKIM or DK signature, not necessarily valid
	DKIM_VALID               -0.1 Message has at least one valid DKIM or DK signature
	DKIM_VALID_AU            -0.1 Message has a valid DKIM or DK signature from author's domain
	DKIM_VALID_EF            -0.1 Message has a valid DKIM or DK signature from envelope-from domain
	DMARC_PASS               -0.1 DMARC pass policy
	KAM_INFOUSMEBIZ          0.75 Prevalent use of .info|.us|.me|.me.uk|.biz|xyz|id|rocks|life domains in spam/malware
	KAM_OTHER_BAD_TLD        0.75 Other untrustworthy TLDs
	SPF_HELO_NONE           0.001 SPF: HELO does not publish an SPF Record
	SPF_PASS               -0.001 SPF: sender matches SPF record

"/var/run" and "/var/lock" are deprecated.

This is to comply with Debian Policy 9.1.4 "/run and /run/lock".
(https://www.debian.org/doc/debian-policy/ch-opersys.html#run-and-run-lock)

Signed-off-by: Jing Luo <jing@jing.rocks>
---
 src/PVE/GuestHelpers.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/GuestHelpers.pm b/src/PVE/GuestHelpers.pm
index 592b4a8..5dc4498 100644
--- a/src/PVE/GuestHelpers.pm
+++ b/src/PVE/GuestHelpers.pm
@@ -31,7 +31,7 @@ typesafe_ne
 # We use a separate lock to block migration while a replication job
 # is running.
 
-our $lockdir = '/var/lock/pve-manager';
+our $lockdir = '/run/lock/pve-manager';
 
 # safe variable comparison functions
 
-- 
2.49.0




--===============3411579299284277510==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

--===============3411579299284277510==--