]>
git.proxmox.com Git - proxmox.git/log
Fabian Grünbichler [Tue, 11 Oct 2022 07:47:13 +0000 (09:47 +0200)]
clippy fixes
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Wed, 7 Sep 2022 07:32:29 +0000 (09:32 +0200)]
metrics: bump to 0.2.1
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Wed, 7 Sep 2022 07:31:23 +0000 (09:31 +0200)]
subscription: bump to 0.3.0
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Wed, 7 Sep 2022 11:04:49 +0000 (13:04 +0200)]
subscription: properly forward verification error
when verifying the server response used for offline mirror keys.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Wed, 7 Sep 2022 11:04:44 +0000 (13:04 +0200)]
subscription: use lowercase for Display-ing status
Fabian Grünbichler [Wed, 7 Sep 2022 08:42:51 +0000 (10:42 +0200)]
subscription: properly alias 'notfound'
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Wed, 7 Sep 2022 08:40:45 +0000 (10:40 +0200)]
subscription: conditionalize checks
signed subscription info files should always be checked to catch
attempts of invalid signatures, but the age and serverid checks only
need to apply to "active" files, else the status might switch from a
more meaningful one to "invalid" by accident.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Wed, 7 Sep 2022 07:03:02 +0000 (09:03 +0200)]
subscription: add Expired status
this can be returned by the shop when checking an online subscription.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Mon, 22 Aug 2022 11:59:15 +0000 (13:59 +0200)]
http: bump to 0.7.0
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Fri, 5 Aug 2022 07:42:23 +0000 (09:42 +0200)]
http: client_trait: make request body generic
like the response body, instead of hard-coding Read.
Fabian Grünbichler [Fri, 5 Aug 2022 07:26:03 +0000 (09:26 +0200)]
http: add extra_headers to `post`
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Thu, 4 Aug 2022 13:25:27 +0000 (15:25 +0200)]
http: sync: add HttpClient for Box<dyn Read>
for use cases where the full request body is not available from the
start, or the response doesn't need to be fully read in one go.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Thu, 4 Aug 2022 11:15:47 +0000 (13:15 +0200)]
http: make post() take `Read`, not &str
for more flexibility.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Thu, 4 Aug 2022 08:14:38 +0000 (10:14 +0200)]
http: fix typo
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Thu, 4 Aug 2022 08:03:36 +0000 (10:03 +0200)]
http: rename SimpleHttp to Client
so we have proxmox_http::client::Client for the async, hyper-based
client and proxmox_http::client::sync::Client for the sync, ureq-based
one.
this is a breaking change.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Thu, 4 Aug 2022 09:29:44 +0000 (11:29 +0200)]
http: add "raw" sync client
and switch String one over to use it.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Thu, 4 Aug 2022 08:01:13 +0000 (10:01 +0200)]
http: add ureq-based sync client
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Thu, 4 Aug 2022 07:53:58 +0000 (09:53 +0200)]
http: extend HttpClient trait
to allow get requests with extra headers (such as `Authorization`) and a
generic `request` fn to increase flexibility even more.
this is a breaking change.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Thu, 4 Aug 2022 07:52:45 +0000 (09:52 +0200)]
http: move SimpleHttpOptions to http-helpers feature
and rename it to HttpOptions, since it's not specific to the "Simple"
client at all.
this is a breaking change.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Wed, 7 Sep 2022 07:17:15 +0000 (09:17 +0200)]
router: bump to 1.3.0
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Wed, 3 Aug 2022 12:44:53 +0000 (14:44 +0200)]
router: make hyper/http optional
but enable it by default.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Thomas Lamprecht [Fri, 26 Aug 2022 10:57:57 +0000 (12:57 +0200)]
api-macro: track d/control
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 26 Aug 2022 10:18:44 +0000 (12:18 +0200)]
git: ignore top level *-deb make target files
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 26 Aug 2022 10:07:36 +0000 (12:07 +0200)]
d/control: tree wide update after switch to weak/namespaced dependencies
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Fabian Grünbichler [Mon, 22 Aug 2022 09:24:04 +0000 (11:24 +0200)]
build: use weak and namespaced features
to reduce the creep of optional dependencies being exposed as features.
this requires cargo 0.63 (and debcargo built against at least that
version), but greatly reduces the number of binary packages and provides
generated, while still allowing sensible selection of optional
dependencies via the explicit feature meant for pulling them in.
diff stat for running `make deb` after this change:
proxmox-http/debian/control | 226 ++++--------------------------------
proxmox-router/debian/control | 74 +-----------
proxmox-schema/debian/control | 53 ++-------
proxmox-subscription/debian/control | 17 +--
proxmox-sys/debian/control | 51 +++-----
proxmox-tfa/debian/control | 110 ++----------------
6 files changed, 72 insertions(+), 459 deletions(-)
the 'dep:' prefix marks something on the RHS inside the features section
as dependency, it's only allowed if the string after it is an optional
dependency an no explicit feature of the same name exists. if all
pointers to the optional dependency in the features section are marked
as such, the optional dependency itself will not be exposed as a feature
(either on the cargo or debian/control level).
the '?' suffix marks dependencies as "weak", which only enables the
optional dependency + its feature(s) if the optional dependency itself
is also enabled. it has no effect on d/control since such a relationship
is not encodable in Debian package relations, but it does affect cargo
dependency resolution and allows skipping the build of unneeded optional
dependencies in some cases.
with no packages/crates depending on the no longer exposed automatically
generated features/packages, so these are safe to remove even though
it's technically a breaking change.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Fri, 19 Aug 2022 12:20:58 +0000 (14:20 +0200)]
subscription: add missing path dependencies
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Fri, 19 Aug 2022 12:20:02 +0000 (14:20 +0200)]
make: add proxmox-metrics to crate list
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Fri, 19 Aug 2022 12:19:39 +0000 (14:19 +0200)]
fixup! time: update to nom 7
Fabian Grünbichler [Fri, 19 Aug 2022 10:41:15 +0000 (12:41 +0200)]
schema: bump to 1.3.4
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Fri, 19 Aug 2022 10:26:42 +0000 (12:26 +0200)]
schema: update to textwrap 0.15
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Fri, 19 Aug 2022 10:22:45 +0000 (12:22 +0200)]
time: bump to 1.1.4
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Fri, 19 Aug 2022 10:22:27 +0000 (12:22 +0200)]
time: update to nom 7
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Wolfgang Bumiller [Thu, 28 Jul 2022 11:39:21 +0000 (13:39 +0200)]
bump d/control files
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 28 Jul 2022 11:33:33 +0000 (13:33 +0200)]
bump proxmox-subscription to 0.2.1-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 28 Jul 2022 11:33:06 +0000 (13:33 +0200)]
bump proxmox-shared-memory to 0.2.2-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 28 Jul 2022 11:32:20 +0000 (13:32 +0200)]
bump proxmox-http to 0.6.5-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 28 Jul 2022 11:31:17 +0000 (13:31 +0200)]
http, shared-memory, subscription: bump proxmox-sys dependency to 0.4
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 28 Jul 2022 11:29:42 +0000 (13:29 +0200)]
sys: drop comment from Cargo.toml
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 28 Jul 2022 10:50:06 +0000 (12:50 +0200)]
bump proxmox-sys to 0.4.0
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 27 Jul 2022 08:55:10 +0000 (10:55 +0200)]
sys: doc fixup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 27 Jul 2022 08:52:50 +0000 (10:52 +0200)]
http: clippy fixes
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 27 Jul 2022 08:52:07 +0000 (10:52 +0200)]
api-macro: clippy fixes
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 27 Jul 2022 08:51:22 +0000 (10:51 +0200)]
uuid: clippy fixes
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 26 Jul 2022 12:45:39 +0000 (14:45 +0200)]
sys: another Arc::clone
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 26 Jul 2022 12:44:49 +0000 (14:44 +0200)]
sys: explicit Arc::clone
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 26 Jul 2022 11:21:36 +0000 (13:21 +0200)]
sys: use Iterator::min instead of a manual version
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 26 Jul 2022 11:04:09 +0000 (13:04 +0200)]
sys: bump edition to 2021
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 26 Jul 2022 10:27:44 +0000 (12:27 +0200)]
lang: update c_str
drop the let binding, easier to use in const context since
CStr::from_bytes_with_nul_unchecked is const since 1.59
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 26 Jul 2022 10:24:13 +0000 (12:24 +0200)]
sys: drop proxmox-borrow dependency
nix now has an owning directory iterator, we don't need it
anymore
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 26 Jul 2022 10:24:01 +0000 (12:24 +0200)]
tfa: bump d/control
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 26 Jul 2022 10:23:50 +0000 (12:23 +0200)]
tfa: docs fixup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 25 Jul 2022 11:31:34 +0000 (13:31 +0200)]
bump proxmox-tfa to 2.1.0
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 25 Jul 2022 11:35:43 +0000 (13:35 +0200)]
tfa: bump edition to 2021
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 25 Jul 2022 11:35:08 +0000 (13:35 +0200)]
tfa: clippy fixups
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 25 Jul 2022 11:16:22 +0000 (13:16 +0200)]
tfa: expose 'allow_subdomains' property
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 25 Jul 2022 08:31:35 +0000 (10:31 +0200)]
sys: enable CreateOptions::group_root/root_only
nix now has the required const fns
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 22 Jul 2022 09:58:18 +0000 (11:58 +0200)]
sys: file locking depends on timer feature
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 21 Jul 2022 13:41:46 +0000 (15:41 +0200)]
sys: introduce 'acl', 'crypt' and 'timer' features
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 21 Jul 2022 12:15:45 +0000 (14:15 +0200)]
bump proxmox-subscription to 0.2.0-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Fabian Grünbichler [Thu, 21 Jul 2022 11:29:54 +0000 (13:29 +0200)]
add default signing key path
for use in dependent modules. this file should be shipped via
proxmox-archive-keyring.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Thu, 21 Jul 2022 11:23:57 +0000 (13:23 +0200)]
subscription: make key optional and support multiple keys
this is a breaking change requiring updates in proxmox-perl-rs and
proxmox-backup.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Wolfgang Bumiller [Thu, 21 Jul 2022 10:58:41 +0000 (12:58 +0200)]
http: bump d/control
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 21 Jul 2022 10:58:11 +0000 (12:58 +0200)]
bump proxmox-http to 0.6.4-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Mira Limbeck [Wed, 20 Jul 2022 14:20:40 +0000 (16:20 +0200)]
http: fix proxy authorization header to include type
and encode the username:password string as base64 [0]. This fixes the
error 407 issue when using proxy authentication [1].
[0] https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Proxy-Authorization
[1] https://forum.proxmox.com/threads/checking-the-subscription-behind-a-proxy-fails.112063/
Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
Wolfgang Bumiller [Thu, 21 Jul 2022 10:54:54 +0000 (12:54 +0200)]
subscription: check in d/control
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 20 Jul 2022 11:36:56 +0000 (13:36 +0200)]
proxmox-subscription: initial bump to 0.1.0-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 20 Jul 2022 11:35:58 +0000 (13:35 +0200)]
sys: clippy fixups
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 20 Jul 2022 11:31:58 +0000 (13:31 +0200)]
http: clippy fixups
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 20 Jul 2022 11:28:18 +0000 (13:28 +0200)]
subscription: clippy fixup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 20 Jul 2022 11:26:45 +0000 (13:26 +0200)]
subscription: line-wrap test data
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 20 Jul 2022 11:26:33 +0000 (13:26 +0200)]
subscription: doc comment fixup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Fabian Grünbichler [Wed, 20 Jul 2022 11:07:18 +0000 (13:07 +0200)]
subscription: clippy lints
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Wed, 20 Jul 2022 11:03:56 +0000 (13:03 +0200)]
subscription: properly case status enum values
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Mon, 27 Jun 2022 10:01:31 +0000 (12:01 +0200)]
check signature when reading subscription
and handle signed keys differently w.r.t. age checks, since they will be
refreshed less frequently.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Tue, 21 Jun 2022 11:49:14 +0000 (13:49 +0200)]
add new proxmox-subscription crate
taking over slighlty generified helpers and types:
- subscription info and status
- checking subscription status with shop
- reading/writing local subscription-related files
the perl-based code uses base64 with newlines for the data, and base64
without padding for the checksum. accordingly, calculate the checksum
with and without newlines, and compare the decoded checksum instead of
the encoded one.
furthermore, the perl-based code encodes the subscription status using
Capitalized values instead of lowercase, so alias those for the time
being.
PVE also stores the serverid as 'validdirectory', so add that as alias
as well.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Wolfgang Bumiller [Thu, 7 Jul 2022 09:49:57 +0000 (11:49 +0200)]
bump proxmox-sys to 0.3.2
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 7 Jul 2022 09:45:26 +0000 (11:45 +0200)]
sys: make escape_unit() more flexible, add unescape_unit_path
This adds the ability to use these functions with non-utf8
strings as well.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 5 Jul 2022 11:45:49 +0000 (13:45 +0200)]
bump proxmox-compression to 0.1.2-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 5 Jul 2022 11:23:14 +0000 (13:23 +0200)]
compression: more cleanups
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 5 Jul 2022 10:17:04 +0000 (12:17 +0200)]
compression: indentation cleanup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 5 Jul 2022 10:13:38 +0000 (12:13 +0200)]
compression: minor cleanup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Dominik Csapak [Tue, 31 May 2022 11:17:21 +0000 (13:17 +0200)]
proxmox-compression: add 'tar_directory'
similar to 'zip_directory', this is intended to tar a local directory,
e.g. when we're in a restore vm.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Tue, 31 May 2022 11:17:20 +0000 (13:17 +0200)]
proxmox-compression: make ZstdEncoder stream a bit more generic
by not requiring the 'anyhow::Error' type from the source, but only
that it implements 'Into<Error>'. This way, we can also accept a stream
that produces e.g. an io::Error
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Fabian Grünbichler [Tue, 21 Jun 2022 11:48:52 +0000 (13:48 +0200)]
bump proxmox-http to 0.6.3-1
Fabian Grünbichler [Thu, 23 Jun 2022 09:57:25 +0000 (11:57 +0200)]
http: implement HttpClient for SimpleHttp
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Thu, 23 Jun 2022 09:56:43 +0000 (11:56 +0200)]
http: add HttpClient trait
gated behind feature "client-trait"
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Mon, 27 Jun 2022 07:42:27 +0000 (09:42 +0200)]
http: move TLS helper to client feature
it's only used there and pulls in hyper and tokio, which we don't
want/need in http-helpers.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Tue, 21 Jun 2022 11:47:40 +0000 (13:47 +0200)]
http: take over json_object_to_query
Fabian Grünbichler [Tue, 21 Jun 2022 11:47:09 +0000 (13:47 +0200)]
bump proxmox-serde to 0.1.1
Fabian Grünbichler [Tue, 21 Jun 2022 11:45:27 +0000 (13:45 +0200)]
serde: take over to/write_canonical_json
from PBS' tools module, and feature-guard via optional `serde_json`
dependency.
Fabian Grünbichler [Wed, 29 Jun 2022 08:32:29 +0000 (10:32 +0200)]
cargo fmt
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Wolfgang Bumiller [Wed, 29 Jun 2022 08:14:33 +0000 (10:14 +0200)]
http: clippy fixes
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 29 Jun 2022 08:11:28 +0000 (10:11 +0200)]
section-config: clippy fixes
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 29 Jun 2022 08:10:07 +0000 (10:10 +0200)]
api-macro: clippy fixes
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 29 Jun 2022 08:08:48 +0000 (10:08 +0200)]
compression: clippy fixes
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 29 Jun 2022 08:06:57 +0000 (10:06 +0200)]
lang: clippy fixes
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 29 Jun 2022 08:02:39 +0000 (10:02 +0200)]
time: clippy fixes
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 29 Jun 2022 07:50:51 +0000 (09:50 +0200)]
sys: clippy fixups
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 29 Jun 2022 07:41:06 +0000 (09:41 +0200)]
bump proxmox-sys to 0.3.1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Dominik Csapak [Tue, 28 Jun 2022 13:15:13 +0000 (15:15 +0200)]
partially fix #2915: proxmox-sys: scandir: stat if file_type is unknown
when using readdir/getdents the file type might be 'DT_UNKNOWN'
(depending on the filesystem). Do a fstatat in that case to
get the file type. Since maybe the callback wants to do
a stat anyway, pass it there (if done)
adds two new helpers:
'file_type_from_file_stat': uses a FileStat struct to get the file type
'get_file_type': calls fstatat to determine the file_type
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>