From 680f15f1c4f19f798add16f3ece882b320a5e320 Mon Sep 17 00:00:00 2001 From: Doctor Vince Date: Thu, 14 Nov 2024 15:25:52 -0500 Subject: [PATCH] returns are treated as 32-bit --- utils/nvme.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/nvme.go b/utils/nvme.go index ecda9974..e17bc004 100644 --- a/utils/nvme.go +++ b/utils/nvme.go @@ -465,7 +465,7 @@ func (n *Nvme) createNS(ctx context.Context, logicalName string, size, blocksize if len(parts) != 3 { return 0, fmt.Errorf("unable to parse nsid: %w", io.ErrUnexpectedEOF) } - nsid, err := strconv.ParseUint(string(parts[2]), 10, 64) + nsid, err := strconv.ParseUint(string(parts[2]), 10, 32) return uint(nsid), err }