disk: rename Create{Volume → Mountpoint}

The function is indeed creating a mounpoint not a Volume; the
latter is not even well defined in our "ontology".
This commit is contained in:
Christian Kellner 2022-02-26 20:12:12 +01:00
parent 45f898c05c
commit 7bfd0bb49f
5 changed files with 14 additions and 14 deletions

View file

@ -57,9 +57,9 @@ func (vg *LVMVolumeGroup) GetChild(n uint) Entity {
return &vg.LogicalVolumes[n]
}
func (vg *LVMVolumeGroup) CreateVolume(mountpoint string, size uint64) (Entity, error) {
func (vg *LVMVolumeGroup) CreateMountpoint(mountpoint string, size uint64) (Entity, error) {
if vg == nil {
panic("LVMVolumeGroup.CreateVolume: nil entity")
panic("LVMVolumeGroup.CreateMountpoint: nil entity")
}
filesystem := Filesystem{
Type: "xfs",