From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <pve-devel-bounces@lists.proxmox.com>
Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9])
	by lore.proxmox.com (Postfix) with ESMTPS id AF34F1FF176
	for <inbox@lore.proxmox.com>; Fri,  7 Feb 2025 10:02:49 +0100 (CET)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
	by firstgate.proxmox.com (Proxmox) with ESMTP id 0B85F6C5B;
	Fri,  7 Feb 2025 10:02:47 +0100 (CET)
Date: Fri, 7 Feb 2025 10:02:04 +0100
To: pve-devel@lists.proxmox.com
MIME-Version: 1.0
Message-ID: <mailman.122.1738918965.293.pve-devel@lists.proxmox.com>
List-Id: Proxmox VE development discussion <pve-devel.lists.proxmox.com>
List-Post: <mailto:pve-devel@lists.proxmox.com>
From: Roland Kammerer via pve-devel <pve-devel@lists.proxmox.com>
Precedence: list
Cc: Roland Kammerer <roland.kammerer@linbit.com>
X-Mailman-Version: 2.1.29
X-BeenThere: pve-devel@lists.proxmox.com
List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel>, 
 <mailto:pve-devel-request@lists.proxmox.com?subject=subscribe>
List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pve-devel>, 
 <mailto:pve-devel-request@lists.proxmox.com?subject=unsubscribe>
List-Archive: <http://lists.proxmox.com/pipermail/pve-devel/>
Reply-To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>
List-Help: <mailto:pve-devel-request@lists.proxmox.com?subject=help>
Subject: [pve-devel] storage plugins: what is plugindata()->{content}[1]
Content-Type: multipart/mixed; boundary="===============0364339460551690523=="
Errors-To: pve-devel-bounces@lists.proxmox.com
Sender: "pve-devel" <pve-devel-bounces@lists.proxmox.com>

--===============0364339460551690523==
Content-Type: message/rfc822
Content-Disposition: inline

Return-Path: <roland.kammerer@linbit.com>
X-Original-To: pve-devel@lists.proxmox.com
Delivered-To: pve-devel@lists.proxmox.com
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) server-digest SHA256)
	(No client certificate requested)
	by lists.proxmox.com (Postfix) with ESMTPS id 834B7CB213
	for <pve-devel@lists.proxmox.com>; Fri,  7 Feb 2025 10:02:45 +0100 (CET)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
	by firstgate.proxmox.com (Proxmox) with ESMTP id 65A686BBA
	for <pve-devel@lists.proxmox.com>; Fri,  7 Feb 2025 10:02:15 +0100 (CET)
Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
	(No client certificate requested)
	by firstgate.proxmox.com (Proxmox) with ESMTPS
	for <pve-devel@lists.proxmox.com>; Fri,  7 Feb 2025 10:02:14 +0100 (CET)
Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-543d8badc30so2199043e87.0
        for <pve-devel@lists.proxmox.com>; Fri, 07 Feb 2025 01:02:14 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=linbit-com.20230601.gappssmtp.com; s=20230601; t=1738918927; x=1739523727; darn=lists.proxmox.com;
        h=user-agent:content-disposition:mime-version:message-id:subject:to
         :from:date:from:to:cc:subject:date:message-id:reply-to;
        bh=H3synB4PoPln0314+4aWTntd8NzYgn/mSlHJNVKyIas=;
        b=Jm5bW8hxndEfptodI3XQrXNVs8NAz3FceWEKSpjFomYhu5HFNMGeKPYb3kq8T/juda
         E9a0CQ8yVQLV9DRZZZKKa9USgetLicqRP5qgfAJ5RbPDnPBPmEbBAVX/bof1xgozBbiA
         4hjsluZ7P4qRJyukADjU0+u5uSEGlRq7BiKYcQXSZjAO4RLcg9pvMH2lB6s/tcyRYBUU
         BgIZirOxrS+heDtL+xCWwkjSiDFD08sb/inASdV2YxVxLoXL0h3RPrX3Wtp6EpuWVAWy
         Z7W3Y8YVj5Rf6JN/6OIkTfufZGHF1TnpodS5sBLOz7he+gBDgs+c7RwMTrd/5Obty3Yn
         Y4/g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1738918927; x=1739523727;
        h=user-agent:content-disposition:mime-version:message-id:subject:to
         :from:date:x-gm-message-state:from:to:cc:subject:date:message-id
         :reply-to;
        bh=H3synB4PoPln0314+4aWTntd8NzYgn/mSlHJNVKyIas=;
        b=J67B697bmaAVwEBNBpkve863iejfS0DkoQ6+wnaU7SIh/pxMfvxp2vbdhOa+kgGSaJ
         OGD3pyVxWOrdsBZhCbcCZTzbMCF7d6xP1X7CtPVg5MBD96Fd8dWnQsxPDvv38R8r5zY8
         gmf47mi+QMKAd3WUiXyd3vz1sX8FKWIZhJZF4fEBddzpFtZhVEjfBMr8InYzkLX0W+hB
         ll+dL4e6/0oYZeamKEHBKiRO+/j+qYw6DaoRSP4odQ5BSjdrtbyWMGN1VXujN5X+SSJf
         e+a18iQXA09CX1jq4mjWU7hWhTh+Cs2yA4doQSPRkNi3/KJ0K7whA77J8D2asrZLplDm
         Px8Q==
X-Gm-Message-State: AOJu0YyqOONqYkW2k0GZAml9GOL+0oukuog/lUwlgSngprUiX7GFan2n
	t434qxQ/p3Cc8Qd8f9RUMjqHbnpr6KwZFOQUf34ycrMlML1qeegNrQmBOAOxWyyfqeZJ9ZNHthu
	udzE=
X-Gm-Gg: ASbGncunZb6nV7PjAnKoQKB4S15i57nQ8koppti3NLkrF4+uT2Hv/Xbw3qbxFGlh32P
	zz4J74IUhwO8AquUGANWJnJr3vk8cmoGTmpH5g/oSFTBN4uliyRf71I6XvPr1URWXhTD9w/f0eA
	Qc32JylplZv11En7O18etC16LV9tZVAWWr/hHsaQc13MploznnjuljCvavyU7TH134/hOc4cG7f
	lO3YdhtyvXSsThi2Esl7NTS531ayzwICb2MuLF6h04+rsmRuvWVq/p/0kyjYrWlWvdepcB8o06K
	ljiF/QHu3MwrOVbnHjJjDFoy79S426VsZeeoDDgwFE1pSSlK5pq+wInvaZma2dXFRSiD2Q==
X-Google-Smtp-Source: AGHT+IExE1dfAz7Qc/rKviml+PAtZU6HjJbofQ0bqZHNpdHisUVf2JwUV7C5J+14P/mHTpt/XzY92w==
X-Received: by 2002:a05:6512:2019:b0:542:87c5:66da with SMTP id 2adb3069b0e04-54414af5716mr476190e87.37.1738918926959;
        Fri, 07 Feb 2025 01:02:06 -0800 (PST)
Received: from localhost (static.57.82.181.135.clients.your-server.de. [135.181.82.57])
        by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5441055422csm383149e87.61.2025.02.07.01.02.05
        for <pve-devel@lists.proxmox.com>
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Fri, 07 Feb 2025 01:02:06 -0800 (PST)
Date: Fri, 7 Feb 2025 10:02:04 +0100
From: Roland Kammerer <roland.kammerer@linbit.com>
To: pve-devel@lists.proxmox.com
Subject: storage plugins: what is plugindata()->{content}[1]
Message-ID: <Z6XMDGbw9qml59Jh@arm64>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/2.2.13 (2024-03-09)
X-SPAM-LEVEL: Spam detection results:  0
	AWL                    -0.005 Adjusted score from AWL reputation of From: address
	BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
	DKIM_SIGNED               0.1 Message has a DKIM or DK signature, not necessarily valid
	DKIM_VALID               -0.1 Message has at least one valid DKIM or DK signature
	DMARC_PASS               -0.1 DMARC pass policy
	RCVD_IN_DNSWL_NONE     -0.0001 Sender listed at https://www.dnswl.org/, no trust
	SPF_HELO_NONE           0.001 SPF: HELO does not publish an SPF Record
	SPF_PASS               -0.001 SPF: sender matches SPF record
	URIBL_BLOCKED           0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked.  See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [proxmox.com]

Hi all,

rather simple question I guess, but I could not find the answer in
https://pve.proxmox.com/wiki/Storage_Plugin_Development and linked
documents and looks like my grep foo is lacking today, so here we go:
I guess I know what the first hash in the 'content' array is, but what
is the second? Actually, why is there a second one?

Storage/LVMPlugin.pm:
content => [ {images => 1, rootdir => 1}, { images => 1 }]

vs.

Storage/LvmThinPlugin.pm:
content => [ {images => 1, rootdir => 1}, { images => 1, rootdir => 1}]

Best, rck


--===============0364339460551690523==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

--===============0364339460551690523==--