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 464C661128 for ; Fri, 11 Sep 2020 16:16:24 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 39AB725620 for ; Fri, 11 Sep 2020 16:16:24 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [212.186.127.180]) (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 firstgate.proxmox.com (Proxmox) with ESMTPS id 700FB25614 for ; Fri, 11 Sep 2020 16:16:22 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 3A0AC44B69 for ; Fri, 11 Sep 2020 16:16:22 +0200 (CEST) Date: Fri, 11 Sep 2020 16:15:36 +0200 (CEST) From: Dietmar Maurer To: Proxmox Backup Server development discussion , =?UTF-8?Q?Fabian_Gr=C3=BCnbichler?= Message-ID: <1238718860.1453.1599833737524@webmail.proxmox.com> In-Reply-To: <20200911123439.1876094-7-f.gruenbichler@proxmox.com> References: <20200911123439.1876094-1-f.gruenbichler@proxmox.com> <20200911123439.1876094-7-f.gruenbichler@proxmox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.3-Rev21 X-Originating-Client: open-xchange-appsuite X-SPAM-LEVEL: Spam detection results: 0 AWL 0.076 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium 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, backup.rs, lib.rs] Subject: [pbs-devel] applied: [PATCH proxmox-backup-qemu 6/6] update to new BackupDir constructor X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Sep 2020 14:16:24 -0000 applied (after proxmox-backup version bump) > On 09/11/2020 2:34 PM Fabian Gr=C3=BCnbichler wrote: >=20 > =20 > Signed-off-by: Fabian Gr=C3=BCnbichler > --- > Cargo.toml | 4 ++-- > src/backup.rs | 2 +- > src/lib.rs | 2 +- > 3 files changed, 4 insertions(+), 4 deletions(-) >=20 > diff --git a/Cargo.toml b/Cargo.toml > index 649b4c5..664bba2 100644 > --- a/Cargo.toml > +++ b/Cargo.toml > @@ -25,7 +25,7 @@ libc =3D "0.2" > once_cell =3D "1.3.1" > openssl =3D "0.10" > proxmox =3D { version =3D "0.3.5", features =3D [ "sortable-macro", "api= -macro" ] } > -proxmox-backup =3D { git =3D "git://git.proxmox.com/git/proxmox-backup.g= it", tag =3D "v0.8.15" } > -#proxmox-backup =3D { path =3D "../proxmox-backup" } > +#proxmox-backup =3D { git =3D "git://git.proxmox.com/git/proxmox-backup.= git", tag =3D "v0.8.15" } > +proxmox-backup =3D { path =3D "../proxmox-backup" } > serde_json =3D "1.0" > tokio =3D { version =3D "0.2.9", features =3D [ "blocking", "fs", "io-ut= il", "macros", "rt-threaded", "signal", "stream", "tcp", "time", "uds" ] } > diff --git a/src/backup.rs b/src/backup.rs > index 094f8b3..aa65239 100644 > --- a/src/backup.rs > +++ b/src/backup.rs > @@ -59,7 +59,7 @@ impl BackupTask { > =20 > let (abort, _) =3D tokio::sync::broadcast::channel(16); > =20 > - let snapshot =3D BackupDir::new(&setup.backup_type, &setup.backu= p_id, setup.backup_time.timestamp()); > + let snapshot =3D BackupDir::new(&setup.backup_type, &setup.backu= p_id, setup.backup_time.timestamp())?; > let manifest =3D Arc::new(Mutex::new(BackupManifest::new(snapsho= t))); > =20 > let registry =3D Arc::new(Mutex::new(Registry::= ::new())); > diff --git a/src/lib.rs b/src/lib.rs > index 5bb3685..67f2fe9 100644 > --- a/src/lib.rs > +++ b/src/lib.rs > @@ -98,7 +98,7 @@ pub extern "C" fn proxmox_backup_snapshot_string( > let backup_id: String =3D tools::utf8_c_string_lossy(backup_id) > .ok_or_else(|| format_err!("backup_id must not be NULL"))?; > =20 > - let snapshot =3D BackupDir::new(backup_type, backup_id, backup_t= ime); > + let snapshot =3D BackupDir::new(backup_type, backup_id, backup_t= ime)?; > =20 > Ok(CString::new(format!("{}", snapshot))?) > }); > --=20 > 2.20.1 >=20 >=20 >=20 > _______________________________________________ > pbs-devel mailing list > pbs-devel@lists.proxmox.com > https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel