Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend documentation for lib/partition_setup.pm #8674

Merged
merged 1 commit into from Nov 6, 2019
Merged

Extend documentation for lib/partition_setup.pm #8674

merged 1 commit into from Nov 6, 2019

Conversation

Zaoliang
Copy link
Contributor

@Zaoliang Zaoliang changed the title Write documentation for lib/partition_setup.pm Extend documentation for lib/partition_setup.pm Oct 16, 2019
@Zaoliang Zaoliang requested a review from asdil12 November 4, 2019 14:44
@@ -209,7 +210,7 @@ sub set_partition_size {

resize_partition();

Method assumes that correct disk is already selected
Method assumes that correct disk is already selected.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Method assumes that correct disk is already selected.
Method assumes that correct disk is already selected.

@@ -396,9 +400,12 @@ sub addlv {

=head2 addboot

addboot();
addboot($part_size, [%default_boot_sizes]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
addboot($part_size, [%default_boot_sizes]);
addboot($part_size);

%default_boot_sizes is not a parameter.


Adds a boot partition, calls C<addpart> for this
C<$part_size> is the size of partition.
C<%default_boot_sizes> is pre-defined default boot size.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
C<%default_boot_sizes> is pre-defined default boot size.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still there?
%default_boot_sizes is not a parameter.


Example:

take_first_disk iscsi => 1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
take_first_disk iscsi => 1;
take_first_disk(iscsi => 1);


Selects the first disk in the list to be partitioned
Take the first disk to be partitioned. Take first storage ng if it is C<is_storage_ng>.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you rephrase that?
I don't really understand what you want to say in the 2nd sentence.

@Zaoliang
Copy link
Contributor Author

Zaoliang commented Nov 6, 2019

updated now

Deletes all existing partitions in the expert partitioner
Despite the name it does not check if it is run on a storage ng system
Deletes all existing partitions in the expert partitioner.
Despite the name it does not check if it is run on a storage ng system,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Despite the name it does not check if it is run on a storage ng system,
Despite the name it does not check if it is run on a storage ng system,

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing space

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed now


Adds a boot partition, calls C<addpart> for this
C<$part_size> is the size of partition.
C<%default_boot_sizes> is pre-defined default boot size.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still there?
%default_boot_sizes is not a parameter.

@asdil12 asdil12 merged commit 8e672c1 into os-autoinst:master Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants