From 3e9587997f9647e928b50fd99a0144e50871ce9f Mon Sep 17 00:00:00 2001 From: Sami Wagiaalla Date: Fri, 18 Sep 2015 17:35:14 -0400 Subject: [PATCH] Correct comments in mount.go Signed-off-by: Sami Wagiaalla --- pkg/util/mount/mount.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/util/mount/mount.go b/pkg/util/mount/mount.go index 7a9e2d372c..ac5f9a57a9 100644 --- a/pkg/util/mount/mount.go +++ b/pkg/util/mount/mount.go @@ -75,7 +75,7 @@ func (mounter *SafeFormatAndMount) formatAndMount(source string, target string, // Try to mount the disk err := mounter.Interface.Mount(source, target, fstype, options) if err != nil { - // It is possible that this disk is not formatted. Double check using 'file' + // It is possible that this disk is not formatted. Double check using diskLooksUnformatted notFormatted, err := mounter.diskLooksUnformatted(source) if err == nil && notFormatted { // Disk is unformatted so format it. @@ -96,7 +96,7 @@ func (mounter *SafeFormatAndMount) formatAndMount(source string, target string, return err } -// diskLooksUnformatted uses 'file' to see if the given disk is unformated +// diskLooksUnformatted uses 'lsblk' to see if the given disk is unformated func (mounter *SafeFormatAndMount) diskLooksUnformatted(disk string) (bool, error) { args := []string{"-nd", "-o", "FSTYPE", disk} cmd := mounter.Runner.Command("lsblk", args...)