[pbs-devel] applied: [PATCH proxmox-backup v3 4/6] fix #3690: cli: add function wipe_disk
Thomas Lamprecht
t.lamprecht at proxmox.com
Tue Nov 28 18:43:35 CET 2023
Am 28/11/2023 um 14:23 schrieb Markus Frank:
> A new cli subcommand which calls the api wipe_disk function
> to wipe a disk/partition with a specified dev name.
>
> Examples:
> proxmox-backup-manager disk wipe sda2
> proxmox-backup-manager disk wipe sda
> proxmox-backup-manager disk wipe nvme0n1p1
>
> The complete_partition_name from tools/disks/mod.rs is used for
> command completion.
>
> Signed-off-by: Markus Frank <m.frank at proxmox.com>
> ---
> src/bin/proxmox_backup_manager/disk.rs | 38 ++++++++++++++++++++++++--
> 1 file changed, 35 insertions(+), 3 deletions(-)
>
>
applied, with slight subject reword, thanks!
As this has no confirmation and is just taking any partition name without a
/dev/ (e.g., disk by-id) path, can we at least add a query if stdin is a tty?
More information about the pbs-devel
mailing list