* [pve-devel] [PATCH storage] Diskmanage: check for extended partitions
@ 2022-05-03 11:08 Dominik Csapak
2022-05-03 11:39 ` Stoiko Ivanov
0 siblings, 1 reply; 3+ messages in thread
From: Dominik Csapak @ 2022-05-03 11:08 UTC (permalink / raw)
To: pve-devel
those would not get assinged a usage and thus appear in the list
when we want to select a partition (e.g. for creating a zpool)
since we cannot do anything with such a partition, return the usage
'Extended Partition' for these.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
PVE/Diskmanage.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/PVE/Diskmanage.pm b/PVE/Diskmanage.pm
index d67cc6b..f693d00 100644
--- a/PVE/Diskmanage.pm
+++ b/PVE/Diskmanage.pm
@@ -647,6 +647,8 @@ sub get_disks {
if $parttype eq 'c12a7328-f81f-11d2-ba4b-00a0c93ec93b';
return 'ZFS reserved'
if $parttype eq '6a945a3b-1dd2-11b2-99a6-080020736631';
+ return 'Extended Partition'
+ if $parttype eq '0x5';
}
my $fstype = $info->{fstype};
--
2.30.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [pve-devel] [PATCH storage] Diskmanage: check for extended partitions
2022-05-03 11:08 [pve-devel] [PATCH storage] Diskmanage: check for extended partitions Dominik Csapak
@ 2022-05-03 11:39 ` Stoiko Ivanov
2022-05-03 11:41 ` Dominik Csapak
0 siblings, 1 reply; 3+ messages in thread
From: Stoiko Ivanov @ 2022-05-03 11:39 UTC (permalink / raw)
To: Dominik Csapak; +Cc: Proxmox VE development discussion
On Tue, 3 May 2022 13:08:47 +0200
Dominik Csapak <d.csapak@proxmox.com> wrote:
> those would not get assinged a usage and thus appear in the list
> when we want to select a partition (e.g. for creating a zpool)
>
> since we cannot do anything with such a partition, return the usage
> 'Extended Partition' for these.
>
> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
> ---
> PVE/Diskmanage.pm | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/PVE/Diskmanage.pm b/PVE/Diskmanage.pm
> index d67cc6b..f693d00 100644
> --- a/PVE/Diskmanage.pm
> +++ b/PVE/Diskmanage.pm
> @@ -647,6 +647,8 @@ sub get_disks {
> if $parttype eq 'c12a7328-f81f-11d2-ba4b-00a0c93ec93b';
> return 'ZFS reserved'
> if $parttype eq '6a945a3b-1dd2-11b2-99a6-080020736631';
> + return 'Extended Partition'
> + if $parttype eq '0x5';
This looks like a MBR partitiontype (both the length and the concept of
extended partition seem MBR-related) - Do we want to support MBR disks?
(we do not in the installer and when initializing a new disk)
Any pointer to where this could be needed?
Really meant as an expression of my confusion - am fine if we want to
support this and the patch LGTM.
> ..snip..
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [pve-devel] [PATCH storage] Diskmanage: check for extended partitions
2022-05-03 11:39 ` Stoiko Ivanov
@ 2022-05-03 11:41 ` Dominik Csapak
0 siblings, 0 replies; 3+ messages in thread
From: Dominik Csapak @ 2022-05-03 11:41 UTC (permalink / raw)
To: Stoiko Ivanov; +Cc: Proxmox VE development discussion
On 5/3/22 13:39, Stoiko Ivanov wrote:
> On Tue, 3 May 2022 13:08:47 +0200
> Dominik Csapak <d.csapak@proxmox.com> wrote:
>
>> those would not get assinged a usage and thus appear in the list
>> when we want to select a partition (e.g. for creating a zpool)
>>
>> since we cannot do anything with such a partition, return the usage
>> 'Extended Partition' for these.
>>
>> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
>> ---
>> PVE/Diskmanage.pm | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/PVE/Diskmanage.pm b/PVE/Diskmanage.pm
>> index d67cc6b..f693d00 100644
>> --- a/PVE/Diskmanage.pm
>> +++ b/PVE/Diskmanage.pm
>> @@ -647,6 +647,8 @@ sub get_disks {
>> if $parttype eq 'c12a7328-f81f-11d2-ba4b-00a0c93ec93b';
>> return 'ZFS reserved'
>> if $parttype eq '6a945a3b-1dd2-11b2-99a6-080020736631';
>> + return 'Extended Partition'
>> + if $parttype eq '0x5';
> This looks like a MBR partitiontype (both the length and the concept of
> extended partition seem MBR-related) - Do we want to support MBR disks?
> (we do not in the installer and when initializing a new disk)
> Any pointer to where this could be needed?
>
> Really meant as an expression of my confusion - am fine if we want to
> support this and the patch LGTM.
>
i mean we don't have to, i just ran into that when installing
on top of debian10 -> pve6 -> pve7
so it might not be that useful...
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-05-03 11:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-03 11:08 [pve-devel] [PATCH storage] Diskmanage: check for extended partitions Dominik Csapak
2022-05-03 11:39 ` Stoiko Ivanov
2022-05-03 11:41 ` Dominik Csapak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox