-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #424 from ancorgs/better_proposals
Enhance criteria to choose the best partitions distribution
- Loading branch information
Showing
10 changed files
with
362 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
# | ||
|
||
Name: yast2-storage-ng | ||
Version: 4.0.29 | ||
Version: 4.0.30 | ||
Release: 0 | ||
BuildArch: noarch | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<?xml version="1.0"?> | ||
<productDefines xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns"> | ||
|
||
<partitioning> | ||
<proposal> | ||
<windows_delete_mode config:type="symbol">all</windows_delete_mode> | ||
<linux_delete_mode config:type="symbol">all</linux_delete_mode> | ||
<other_delete_mode config:type="symbol">ondemand</other_delete_mode> | ||
</proposal> | ||
|
||
<volumes config:type="list"> | ||
<volume> | ||
<mount_point>/</mount_point> | ||
<fs_type>xfs</fs_type> | ||
<desired_size config:type="disksize">10 GiB</desired_size> | ||
<min_size config:type="disksize">5 GiB</min_size> | ||
<max_size config:type="disksize">30 GiB</max_size> | ||
<weight config:type="integer">20</weight> | ||
|
||
<snapshots config:type="boolean">false</snapshots> | ||
<snapshots_configurable config:type="boolean">true</snapshots_configurable> | ||
<snapshots_percentage config:type="integer">300</snapshots_percentage> | ||
|
||
<!-- Disable snapshots for / if disabling /var/lib/libvirt is not enough | ||
to fit in the disk --> | ||
<disable_order config:type="integer">2</disable_order> | ||
</volume> | ||
|
||
<!-- The libvirt partition/lv --> | ||
<volume> | ||
<mount_point>/var/lib/libvirt</mount_point> | ||
<fs_type>xfs</fs_type> | ||
<fs_types>xfs,ext3,ext4</fs_types> | ||
|
||
<proposed config:type="boolean">true</proposed> | ||
<proposed_configurable config:type="boolean">true</proposed_configurable> | ||
<!-- Disable it in first place if we don't fit in the disk --> | ||
<disable_order config:type="integer">1</disable_order> | ||
|
||
<desired_size config:type="disksize">15 GiB</desired_size> | ||
<min_size config:type="disksize">5 GiB</min_size> | ||
<max_size config:type="disksize">unlimited</max_size> | ||
<weight config:type="integer">70</weight> | ||
<!-- If this volume is disabled, we want "/" to become greedy (unlimited | ||
max), since it will contain /var/lib/libvirt --> | ||
<fallback_for_max_size>/</fallback_for_max_size> | ||
</volume> | ||
|
||
<!-- swap partition --> | ||
<volume> | ||
<mount_point>swap</mount_point> | ||
<fs_type>swap</fs_type> | ||
|
||
<desired_size config:type="disksize">1 GiB</desired_size> | ||
<min_size config:type="disksize">512 MiB</min_size> | ||
<max_size config:type="disksize">2 GiB</max_size> | ||
<weight config:type="integer">10</weight> | ||
</volume> | ||
</volumes> | ||
</partitioning> | ||
</productDefines> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
- disk: | ||
name: "/dev/sda" | ||
size: 26 GiB | ||
partition_table: gpt | ||
partitions: | ||
- partition: | ||
size: 6622 MiB (6.47 GiB) | ||
name: "/dev/sda1" | ||
id: linux | ||
file_system: ext4 | ||
- partition: | ||
size: 10376 MiB (10.13 GiB) | ||
name: "/dev/sda2" | ||
id: linux | ||
file_system: xfs | ||
- partition: | ||
size: 1262 MiB (1.23 GiB) | ||
name: "/dev/sda4" | ||
id: swap | ||
file_system: swap | ||
- partition: | ||
size: 1 MiB | ||
name: "/dev/sda3" | ||
id: bios_boot | ||
- free: | ||
size: 8362 MiB (8.17 GiB) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
- disk: | ||
name: "/dev/sda" | ||
size: 26 GiB | ||
partition_table: gpt | ||
partitions: | ||
- partition: | ||
size: 16212 MiB (15.83 GiB) | ||
name: "/dev/sda2" | ||
id: linux | ||
file_system: xfs | ||
mount_point: "/var/lib/libvirt" | ||
- partition: | ||
size: 2 GiB | ||
name: "/dev/sda4" | ||
id: swap | ||
file_system: swap | ||
mount_point: swap | ||
- partition: | ||
size: 1 MiB | ||
name: "/dev/sda3" | ||
id: bios_boot | ||
- partition: | ||
size: 8562671.5 KiB (8.17 GiB) | ||
name: "/dev/sda1" | ||
id: linux | ||
file_system: xfs | ||
mount_point: "/" | ||
- free: | ||
size: 16.5 KiB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
- disk: | ||
name: /dev/sda | ||
size: 400 GiB | ||
partition_table: gpt | ||
partitions: | ||
|
||
- partition: | ||
size: 100 GiB | ||
name: /dev/sda1 | ||
id: windows_basic_data | ||
file_system: ntfs | ||
label: data1 | ||
|
||
- free: | ||
size: 5 GiB | ||
|
||
- partition: | ||
size: 94 GiB | ||
name: /dev/sda2 | ||
file_system: ntfs | ||
label: data2 | ||
|
||
- free: | ||
size: 5 GiB | ||
|
||
- partition: | ||
size: 92 GiB | ||
name: /dev/sda3 | ||
file_system: ntfs | ||
label: data3 | ||
|
||
- free: | ||
size: 10 GiB | ||
|
||
- partition: | ||
size: unlimited | ||
name: /dev/sda4 | ||
file_system: ntfs | ||
label: data4 |
Oops, something went wrong.