public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Jonas Theisen <j.theisen@proxmox.com>
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	[thread overview]
Message-ID: <20261111173346.497452-1-j.theisen@proxmox.com> (raw)

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 <j.theisen@proxmox.com>
---
 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





                 reply	other threads:[~2026-11-11 17:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261111173346.497452-1-j.theisen@proxmox.com \
    --to=j.theisen@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal