Skip to content

Commit

Permalink
fix: btrfs volumes can not be formatted (#421) (#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixscheinost committed Jun 28, 2023
1 parent 3490dec commit be3fbc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/e2e/kubernetes/testdriver-1.23.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ DriverInfo:
SupportedFsType:
ext4:
xfs:
btrfs:
3 changes: 3 additions & 0 deletions volumes/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ func (s *LinuxMountService) FormatDisk(disk string, fstype string) error {
case "xfs":
_, _, err := command("mkfs.xfs", disk)
return err
case "btrfs":
_, _, err := command("mkfs.btrfs", disk)
return err
default:
return fmt.Errorf("unsupported disk format %s", fstype)
}
Expand Down

0 comments on commit be3fbc9

Please sign in to comment.