Skip to content

Commit

Permalink
Documented some proposal functions
Browse files Browse the repository at this point in the history
  • Loading branch information
shundhammer committed Aug 27, 2018
1 parent 3db4782 commit 233caec
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/modules/StorageProposal.rb
Expand Up @@ -387,6 +387,9 @@ def GetControlCfg
end


# Return the name of the LVM volume group if the product is configured to
# create an LVM-based proposal and an empty string if it should be a
# partition-based proposal.
def GetProposalVM
ret = ""
ret = "system" if @proposal_lvm
Expand Down Expand Up @@ -4583,6 +4586,8 @@ def any_dasd?(disk_names)
disk_names.any? { |disk| is_dasd?(disk) }
end

# Make a partition-based storage proposal.
# This is called from get_inst_prop().
def get_inst_proposal(target)
target = deep_copy(target)
Builtins.y2milestone("get_inst_proposal start")
Expand Down Expand Up @@ -5684,6 +5689,8 @@ def modify_vm(vm, opts, need_swap)
end


# Make an LVM-based (VM: "Volume Manager") storage proposal.
# This is called from get_inst_prop().
def get_inst_prop_vm(target, key)
target = deep_copy(target)
Builtins.y2milestone("get_inst_prop_vm start key %1", key)
Expand Down Expand Up @@ -6066,6 +6073,7 @@ def get_inst_prop_vm(target, key)
end


# Make a storage proposal for AutoYaST.
def get_proposal_vm(target, key, disk)
target = deep_copy(target)
disk = deep_copy(disk)
Expand Down Expand Up @@ -6191,6 +6199,9 @@ def get_proposal_vm(target, key, disk)
end


# Toplevel entry function for a storage proposal during installation.
# For a partition-based proposal, this will call get_inst_proposal().
# For an LVM-based proposal, this will call get_inst_prop_vm().
def get_inst_prop(target)
# initialize data from control file earlier, it is needed in this function
# to decide whether to use LVM proposal (bsc#957913)
Expand Down

0 comments on commit 233caec

Please sign in to comment.