From: Fabian Ebner <f.ebner@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH v2 storage] Diskmanage: also set type for partitions
Date: Tue, 9 Feb 2021 09:04:32 +0100 [thread overview]
Message-ID: <20210209080432.19124-1-f.ebner@proxmox.com> (raw)
In-Reply-To: <20210208142329.23068-1-f.ebner@proxmox.com>
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
---
New in v2
Forgot to include this one yesterday. I chose to simply use the generic
'partition', because the information whether it's GPT or not is already present.
PVE/Diskmanage.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/PVE/Diskmanage.pm b/PVE/Diskmanage.pm
index 78f7865..e356fb3 100644
--- a/PVE/Diskmanage.pm
+++ b/PVE/Diskmanage.pm
@@ -668,6 +668,7 @@ sub get_disks {
$partitions->{$part}->{devpath} = "$partpath/$part";
$partitions->{$part}->{parent} = "$devpath";
$partitions->{$part}->{gpt} = $data->{gpt};
+ $partitions->{$part}->{type} = 'partition';
$partitions->{$part}->{size} =
get_sysdir_size("$sysdir/$part") // 0;
$partitions->{$part}->{used} =
--
2.20.1
next prev parent reply other threads:[~2021-02-09 8:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-08 14:23 [pve-devel] [PATCH-SERIES v2] partially fix #2285: extend Diskmanage to also list partitions Fabian Ebner
2021-02-08 14:23 ` [pve-devel] [PATCH v2 widget-toolkit 1/3] convert disk list to disk tree and conditionally include partitions Fabian Ebner
2021-02-08 14:23 ` [pve-devel] [PATCH v2 widget-toolkit 2/3] move DiskList.js from grid/ to panel/ Fabian Ebner
2021-02-08 14:23 ` [pve-devel] [PATCH v2 manager 3/3] ui: disk list: include partitions Fabian Ebner
2021-02-09 8:04 ` Fabian Ebner [this message]
2021-02-09 10:57 ` [pve-devel] applied: [PATCH v2 storage] Diskmanage: also set type for partitions Thomas Lamprecht
2021-02-09 12:40 ` [pve-devel] applied-series: [PATCH-SERIES v2] partially fix #2285: extend Diskmanage to also list partitions Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210209080432.19124-1-f.ebner@proxmox.com \
--to=f.ebner@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox