[pbs-devel] [PATCH proxmox/proxmox-backup v2] improve proxmox-async dependencies

Dominik Csapak d.csapak at proxmox.com
Mon Feb 21 11:39:14 CET 2022


this series tries to minimize the dependecies for proxmox-async
so that we can more easily argue to depend on it in proxmox-router for [0]

we have to bump proxmox-lang (to 1.1.0?) and update the dependencies
in the relevant crates/packages

also not sure if we have to bump proxmox-sys, since it lost the
io_format_err macros, etc.

changes from v1:
* move io_ macros/helpers to proxmox-lang instead of writing out the code

0: https://lists.proxmox.com/pipermail/pbs-devel/2022-February/004696.html

proxmox:

Dominik Csapak (2):
  move io error helpers to proxmox-lang
  split out compression code into new crate 'proxmox-compression'

 Cargo.toml                                    |  1 +
 Makefile                                      |  1 +
 proxmox-async/Cargo.toml                      | 10 +---
 proxmox-async/src/io/async_channel_writer.rs  |  3 +-
 proxmox-async/src/lib.rs                      |  2 -
 proxmox-compression/Cargo.toml                | 27 +++++++++
 proxmox-compression/debian/changelog          |  5 ++
 proxmox-compression/debian/control            | 56 +++++++++++++++++++
 proxmox-compression/debian/copyright          | 16 ++++++
 proxmox-compression/debian/debcargo.toml      |  7 +++
 .../src/compression.rs                        |  2 +-
 proxmox-compression/src/lib.rs                |  4 ++
 .../src/zip.rs                                |  2 +-
 proxmox-http/Cargo.toml                       |  2 +
 proxmox-http/src/websocket/mod.rs             |  2 +-
 proxmox-lang/src/error.rs                     | 53 ++++++++++++++++++
 proxmox-lang/src/lib.rs                       |  1 +
 proxmox-sys/src/error.rs                      |  7 +--
 proxmox-sys/src/linux/pid.rs                  |  4 +-
 proxmox-sys/src/macros.rs                     | 44 ---------------
 proxmox-sys/src/mmap.rs                       |  4 +-
 21 files changed, 185 insertions(+), 68 deletions(-)
 create mode 100644 proxmox-compression/Cargo.toml
 create mode 100644 proxmox-compression/debian/changelog
 create mode 100644 proxmox-compression/debian/control
 create mode 100644 proxmox-compression/debian/copyright
 create mode 100644 proxmox-compression/debian/debcargo.toml
 rename {proxmox-async => proxmox-compression}/src/compression.rs (99%)
 create mode 100644 proxmox-compression/src/lib.rs
 rename {proxmox-async => proxmox-compression}/src/zip.rs (99%)
 create mode 100644 proxmox-lang/src/error.rs

proxmox-backup:

Dominik Csapak (2):
  depend on new 'proxmox-compression' crate
  use io_format_err,io_bail,io_err_other from proxmox-lang

 pbs-client/Cargo.toml                         |  1 +
 pbs-client/src/pxar/extract.rs                |  2 +-
 pbs-client/src/pxar/fuse.rs                   | 20 ++++----------
 pbs-datastore/src/cached_chunk_reader.rs      |  4 +--
 pbs-tape/src/blocked_reader.rs                | 26 +++++++++----------
 pbs-tape/src/blocked_writer.rs                |  2 +-
 pbs-tape/src/emulate_tape_reader.rs           |  4 +--
 pbs-tape/src/emulate_tape_writer.rs           |  4 +--
 pbs-tape/src/sg_tape.rs                       | 18 ++++++-------
 pbs-tape/src/tape_write.rs                    |  2 +-
 proxmox-rest-server/Cargo.toml                |  1 +
 proxmox-rest-server/src/rest.rs               |  4 +--
 proxmox-restore-daemon/Cargo.toml             |  1 +
 .../src/proxmox_restore_daemon/api.rs         |  2 +-
 src/tape/drive/virtual_tape.rs                |  4 +--
 src/tape/file_formats/catalog_archive.rs      |  4 +--
 src/tape/file_formats/chunk_archive.rs        |  2 +-
 src/tape/file_formats/multi_volume_reader.rs  | 10 +++----
 src/tape/file_formats/multi_volume_writer.rs  | 14 +++++-----
 src/tape/file_formats/snapshot_archive.rs     |  8 +++---
 src/tools/disks/mod.rs                        |  4 +--
 21 files changed, 65 insertions(+), 72 deletions(-)

-- 
2.30.2






More information about the pbs-devel mailing list