[pve-devel] applied: [PATCH pve-storage] dismanagement: account for leading white space in serial number

Thomas Lamprecht t.lamprecht at proxmox.com
Sun Apr 6 21:19:51 CEST 2025


did a s/dismanagement/disk management/ for the subject on applying this.

Am 12.03.25 um 09:38 schrieb Shannon Sterz:
> some manufacturer seem to report leading white space in the
> `ID_SERIAL_SHORT` field. the regex failed here, as it just didn't
> match the whitespace at all.
> 
> reported on the forum:
> https://forum.proxmox.com/threads/nvme-drive-serial-unknown.163480/#post-754953
> 
> Signed-off-by: Shannon Sterz <s.sterz at proxmox.com>
> ---
> 
> not sure this is the ideal fix, but i tried to stay on the more
> conservative side here. alternatively the regex could be:
> 
> ^E: ID_SERIAL_SHORT=(.+)$
> 
> but then the whitespace would be considered as part of the serial, not
> sure this is intended or could have negative side effects.

As serials are often printed on labels it would be really error
prone to include spaces in them.

> 
>  src/PVE/Diskmanage.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
>

applied, thanks! What about spaces at the end though, are they already
parsed out and thus allowed?




More information about the pve-devel mailing list