From 0e160d1030dac9916b32af3607acc9f1466499c3 Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Fri, 3 Dec 2021 10:29:59 -0800 Subject: [PATCH] update docstring to reflect partitionless disk changes Signed-off-by: Tai Groot --- pkg/block/block_linux.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/block/block_linux.go b/pkg/block/block_linux.go index 431d67d7..f43ccfd7 100644 --- a/pkg/block/block_linux.go +++ b/pkg/block/block_linux.go @@ -192,7 +192,9 @@ func diskWWN(paths *linuxpath.Paths, disk string) string { // diskPartitions takes the name of a disk (note: *not* the path of the disk, // but just the name. In other words, "sda", not "/dev/sda" and "nvme0n1" not // "/dev/nvme0n1") and returns a slice of pointers to Partition structs -// representing the partitions in that disk +// representing the partitions in that disk. If a disk has no partitions, +// it returns information on the disk instead, but the Partition UUID is set +// to the empty string (since there isn't one.) func diskPartitions(ctx *context.Context, paths *linuxpath.Paths, disk string) []*Partition { out := make([]*Partition, 0) path := filepath.Join(paths.SysBlock, disk)