From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 526AE1FF0B3 for ; Wed, 11 Nov 2026 18:34:02 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id A933D215FE; Wed, 11 Nov 2026 18:34:01 +0100 (CET) From: Jonas Theisen To: pbs-devel@lists.proxmox.com Subject: [PATCH proxmox-backup] docs: lto barcode generator: allow digits in the label prefix or no prefix at all Date: Wed, 11 Nov 2026 18:33:11 +0100 Message-ID: <20261111173346.497452-1-j.theisen@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1794418435189 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.091 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: WKCBJS2R2L47VMDN44HRFB7CU77YZDYE X-Message-ID-Hash: WKCBJS2R2L47VMDN44HRFB7CU77YZDYE X-MailFrom: j.theisen@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Backup Server development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The prefix field only accepted letters, but the LTO Ultrium cartridge label specification [0] allows both letters and digits in the six character volume serial. Since the generator just appends a zero-padded counter to the prefix, digits need no special handling. Allowing an empty prefix also enables users to just generate basic incrementing number labels. This was already possible by adding a config entry and then removing the prefix in the edit window. Dropping the end of line "$" for clarity since the maskRe property is matched against single characters. [0] https://www.ibm.com/support/pages/system/files/inline-files/19P0034_N99211B_LTOCARTRIDGELABELSPEC.pdf Came up in: https://forum.proxmox.com/threads/187519/ Signed-off-by: Jonas Theisen --- docs/lto-barcode/prefix-field.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/lto-barcode/prefix-field.js b/docs/lto-barcode/prefix-field.js index e12f1bda2..208e9efb5 100644 --- a/docs/lto-barcode/prefix-field.js +++ b/docs/lto-barcode/prefix-field.js @@ -3,9 +3,8 @@ Ext.define('PrefixField', { alias: 'widget.prefixfield', maxLength: 6, - allowBlank: false, - maskRe: /([A-Za-z]+)$/, + maskRe: /[A-Za-z0-9]/, listeners: { change: function(field) { -- 2.47.3