From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>,
Filip Schauer <f.schauer@proxmox.com>
Subject: Re: [pve-devel] [PATCH storage v8 4/9] api: content: implement copying volumes between storages
Date: Fri, 14 Nov 2025 00:19:23 +0100 [thread overview]
Message-ID: <9a5e31d0-fa6d-4001-b7bd-1bfdd4c322f6@proxmox.com> (raw)
In-Reply-To: <20250916123257.107491-5-f.schauer@proxmox.com>
Am 16.09.25 um 14:36 schrieb Filip Schauer:
> @@ -532,29 +540,52 @@ __PACKAGE__->register_method({
> name => 'copy',
> path => '{volume}',
> method => 'POST',
> - description => "Copy a volume. This is experimental code - do not use.",
> + description => "Copy a volume.",
> + permissions => {
> + description => "If the --delete option is used, the 'Datastore.Allocate' privilege is"
> + . " required on the source storage."
> + . " Without --delete, 'Datastore.AllocateSpace' is required on the target storage.",
> + user => 'all',
> + },
> protected => 1,
> proxyto => 'node',
> parameters => {
> additionalProperties => 0,
> properties => {
> node => get_standard_option('pve-node'),
> - storage => get_standard_option('pve-storage-id', { optional => 1 }),
> + storage => get_standard_option(
> + 'pve-storage-id',
> + {
> + optional => 1,
> + completion => \&PVE::Storage::complete_storage_enabled,
> + },
> + ),
> volume => {
> description => "Source volume identifier",
> type => 'string',
> + completion => \&PVE::Storage::complete_volume,
> },
> - target => {
> - description => "Target volume identifier",
> - type => 'string',
> - },
> - target_node => get_standard_option(
> + 'target-storage' => get_standard_option(
> + 'pve-storage-id',
> + {
> + description => "Target storage",
> + completion => \&PVE::Storage::complete_storage_enabled,
> + },
> + ),
> + 'target-node' => get_standard_option(
> 'pve-node',
> {
> description => "Target node. Default is local node.",
> optional => 1,
> },
> ),
> + delete => {
> + type => 'boolean',
> + description => "Delete the original volume after a successful copy."
> + . " By default the original is kept.",
> + optional => 1,
> + default => 0,
> + },
> },
> },
Can be fine to do due to this being marked as experimental in the description,
but would be really good to argue that in the commit message as it still is
exposed in the API since a long time. If something made this completely useless
until now it would be fine as is, otherwise it might make sense to keep the
"target" param as fallback?
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
next prev parent reply other threads:[~2025-11-13 23:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-16 12:32 [pve-devel] [PATCH storage v8 0/9] support " Filip Schauer
2025-09-16 12:32 ` [pve-devel] [PATCH storage v8 1/9] storage migrate: remove remnant from rsync-based migration Filip Schauer
2025-09-16 12:32 ` [pve-devel] [PATCH storage v8 2/9] storage migrate: avoid ssh when moving a volume locally Filip Schauer
2025-09-16 12:32 ` [pve-devel] [PATCH storage v8 3/9] plugin: allow volume import of iso, snippets, vztmpl and import Filip Schauer
2025-09-16 12:32 ` [pve-devel] [PATCH storage v8 4/9] api: content: implement copying volumes between storages Filip Schauer
2025-11-13 23:19 ` Thomas Lamprecht [this message]
2025-09-16 12:32 ` [pve-devel] [PATCH storage v8 5/9] introduce $vtype+meta export formats Filip Schauer
2025-09-16 12:32 ` [pve-devel] [PATCH storage v8 6/9] api: content: support copying backups between path based storages Filip Schauer
2025-09-16 12:32 ` [pve-devel] [PATCH storage v8 7/9] storage: introduce decompress_archive_into_pipe helper Filip Schauer
2025-09-16 12:32 ` [pve-devel] [PATCH storage v8 8/9] support copying VMA backups to PBS Filip Schauer
2025-09-16 12:32 ` [pve-devel] [PATCH storage v8 9/9] pvesm: add a copy-volume command Filip Schauer
2025-11-13 23:19 ` [pve-devel] applied: [PATCH storage v8 0/9] support copying volumes between storages 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=9a5e31d0-fa6d-4001-b7bd-1bfdd4c322f6@proxmox.com \
--to=t.lamprecht@proxmox.com \
--cc=f.schauer@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