[lvmd] wipe filesystem signatures upon LV creation
@@ -253,7 +253,8 @@ func (g *VolumeGroup) ListVolumes() ([]*LogicalVolume, error) {
// CreateVolume creates logical volume in this volume group.
// name is a name of creating volume. size is volume size in bytes.
func (g *VolumeGroup) CreateVolume(name string, size uint64) (*LogicalVolume, error) {
- if err := CallLVM("lvcreate", "-n", name, "-L", fmt.Sprintf("%vg", size>>30), g.Name()); err != nil {
+ if err := CallLVM("lvcreate", "-n", name, "-L", fmt.Sprintf("%vg", size>>30),
+ "-W", "y", "-y", g.Name()); err != nil {
return nil, err
}
return g.FindVolume(name)
