Clean up diskLooksUnformatted literal

This commit is contained in:
Dong Liu
2017-08-11 16:11:39 +08:00
parent 35e5197eca
commit a6ff000ea5
2 changed files with 1 additions and 5 deletions

View File

@@ -399,7 +399,7 @@ func (mounter *SafeFormatAndMount) formatAndMount(source string, target string,
return mountErr
}
// diskLooksUnformatted uses 'lsblk' to see if the given disk is unformated
// getDiskFormat uses 'lsblk' to see if the given disk is unformated
func (mounter *SafeFormatAndMount) getDiskFormat(disk string) (string, error) {
args := []string{"-n", "-o", "FSTYPE", disk}
cmd := mounter.Runner.Command("lsblk", args...)