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:
parent
45f898c05c
commit
7bfd0bb49f
5 changed files with 14 additions and 14 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue