Skip to content

Commit

Permalink
Don't try to format a partition with fs type 'unknown'
Browse files Browse the repository at this point in the history
  • Loading branch information
shundhammer committed Sep 13, 2016
1 parent 2d699c4 commit e14f46c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/Storage.rb
Expand Up @@ -1368,7 +1368,7 @@ def volumeMap(vinfo, p)
Ops.set(p, "used_fs", fs) if fs != :unknown
fs = toSymbol(FileSystems.conv_fs, vinfo.detected_fs)
Ops.set(p, "detected_fs", fs)
Ops.set(p, "format", true) if vinfo.format
Ops.set(p, "format", true) if vinfo.format && fs != :unknown
Ops.set(p, "create", true) if vinfo.create
tmp = vinfo.mount
if !Builtins.isempty(tmp)
Expand Down

0 comments on commit e14f46c

Please sign in to comment.