mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 06:09:39 +08:00
feat(region,host,host-deployer): f2fs filesystem support (#23118)
This commit is contained in:
@@ -382,7 +382,7 @@ func FsFormatToDiskType(fsFormat string) string {
|
||||
switch {
|
||||
case fsFormat == "swap":
|
||||
return "linux-swap"
|
||||
case strings.HasPrefix(fsFormat, "ext") || fsFormat == "xfs":
|
||||
case strings.HasPrefix(fsFormat, "ext") || fsFormat == "xfs" || fsFormat == "f2fs":
|
||||
return "ext2"
|
||||
case strings.HasPrefix(fsFormat, "fat"):
|
||||
return "fat32"
|
||||
|
||||
Reference in New Issue
Block a user