File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import (
14
14
"strings"
15
15
)
16
16
17
- // SetupMount formats the csi device to ext4 and mounts it to the provided mount point.
17
+ // SetupMount formats the csi device to ext4 in case it is not ext4 formatted and mounts it to the provided mount point.
18
18
func SetupMount (ctx context.Context , logger * slog.Logger , devPath , mountPoint string ) error {
19
19
blk , err := Blkid (ctx , devPath )
20
20
if errors .Is (err , errNotIdentified ) {
@@ -84,11 +84,11 @@ func parseBlkidCommand(out []byte) (*Blk, error) {
84
84
case "TYPE" :
85
85
b .Type = value
86
86
case "BLOCK_SIZE" :
87
- intValue , err := strconv .Atoi (value )
87
+ blockSize , err := strconv .Atoi (value )
88
88
if err != nil {
89
89
return nil , fmt .Errorf ("parsing BLOCK_SIZE of blkid output %q: %w" , value , err )
90
90
}
91
- b .BlockSize = intValue
91
+ b .BlockSize = blockSize
92
92
}
93
93
}
94
94
return b , nil
You can’t perform that action at this time.
0 commit comments