From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id E94646A0DF for ; Wed, 15 Sep 2021 18:36:20 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id D18E01C21E for ; Wed, 15 Sep 2021 18:35:50 +0200 (CEST) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.134]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id B3E6A1C20E for ; Wed, 15 Sep 2021 18:35:49 +0200 (CEST) Received: from [10.137.0.23] ([37.214.36.251]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MFKbB-1mgE3E2Vuz-00Fgtp for ; Wed, 15 Sep 2021 18:30:33 +0200 From: Andrei Perapiolkin To: pve-devel@lists.proxmox.com Message-ID: <2a93c230-0ca3-9a73-914b-5d598a4d6cbb@open-e.com> Date: Wed, 15 Sep 2021 12:30:29 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Provags-ID: V03:K1:CFNZAUtXBb5h/b3GlKYUF77iQMFWz6W/xcrBt/o8Z2RicwVENcE D87rgkCXB1zFeui19jfXVJYK84meYVARN07A6YN+2dzFe0vGiJdOpulZQQmzPJFj2Wg7h3T FtOA76IuZ9tEkucl/H5EYOtniQXTp8KL6SoHzwgxtwSUJJrlxL0ebv/Cnu6kESP0zQ2LEW9 4G84PcmfEChet9L9gG69Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:K+iKqx0ihSE=:3ZBmE0N9gw6XEL2UIHc/50 GceGPvpOd2fsUDkZLn2TDQv9M05LwEOOeBBPZ623XI9usq92qmVNplk5cuf6rULajicjIUf+f nTfYW4Ej3LtCIOqLfYRYm3WC1PreH+QvXwzHJTt8I/pGazutnFD/0sP8p9ZZnDZ6n/zYnYjN2 Ea2i0P9xBn6gZRyKzoKyP+MsZ9a6GW/ySsevStNCxkBwvHS+NOghWTjSk6KwX846H0eF0TwoT 7HI4x7Zozf2u0MJomMCfTZfZrR4oD4IiGY/Rs5SBkLLVTQklCrb45GJqMvTLI2UB7TuuzpV0P +L0feTokOrhqw2TZn4UbaX2ArV4S3sJgpRkyWRUWv24jxdVw3aNmEc0Pyc0Rc9HFA93JE5qWu uq8XH+AtcuwJMeR/NfdDG0lFblnqbFlznz9nS2YX0GOTr62ZmOXAF3q6+n5bWPsjr0oLzPJxY mfXeuYmZn4sTocg0clmEsteADVEDECCN3ConarK1UtGS2FRaPxaQDuAPP7NU39k51r92EZ8LY NGQoxb1E0Jg12wGJwMq3tBcSBV+esPE9JOGk/WkChUwC1rM52VgIQYqtBHwkPb9b25Ukt7Okn hYkqYesv4RG948qKgKifrCZ6o4HfL5+dAml3pkTKBZb/ekjhe8DrJ12DwSwf+wThN1CNFKgGe yDb5rhD9qkbjS2eha5PJdy00rFG4zze/N+74Pm28J/sEvUudLyDOlqOKxdsVn9pWjCeqVNA+t Fi8GJz/VOcawp8vwzIMsVNQ0XMLuZ51ydjEXtgkmAqwldTGBXy1E4L0peX8= X-SPAM-LEVEL: Spam detection results: 0 AWL 1.075 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust RCVD_IN_MSPIKE_H2 -0.001 Average reputation (+2) SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [pve-dev][storage] clone vs import/export X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Sep 2021 16:36:21 -0000 Hi Proxmox Dev's! I am developing plugin for the data storage system and want to avoid/minimize copying data on the proxmox side. And it looks like Im missing something in understanding or copy/clone features. So can you please help me? I was looking on cloning of virtual machines and volumes in proxmox and it seems like it is done through plain copy on the side of proxmox server. At least that is what happens when I press clone button in UI interface. Im talking about: /usr/share/perl5/PVE/Storage system. I do not think that this is the most optimal behavior. And I want to know how to make proxmox delegate data copying to the storage system. In other words I want to make proxmox call for "clone_image" method instead of "volume_import and volume_export" when volumes being cloned/copied to the very same data storage. Is it possible to do so with configuration and plugin code alone? Or it require modification in proxmox code itself? Thanks for your attention, Andrei