174 Commits

Author SHA1 Message Date
Fabian Grünbichler
bc80a46b72 move .cargo/config to .cargo/config.toml
the old location has been deprecated for a while, and rustc 1.78 will start to warn about it.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-06-20 12:37:36 +02:00
Fabian Grünbichler
7fbad39f5c build: force debug symbols in release build
they then get stripped into their own package anyway, but without this we don't
get debug symbols at all with rustc >= 1.77

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-06-20 10:32:01 +02:00
Wolfgang Bumiller
7ecf79161c fix id mapping code
this is only used in the quotactl syscall which is not currently
exposed in pve and only affected non-default mappings

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-11-14 09:04:31 +01:00
Wolfgang Bumiller
8a3c5add8c use OwnedFd for all remaining custom file descriptors
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-10-16 13:23:52 +02:00
Wolfgang Bumiller
9bd083764a clippy fixes
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-10-16 13:23:14 +02:00
Wolfgang Bumiller
e3501427d8 clippy: mutability fixup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-10-16 13:22:59 +02:00
Wolfgang Bumiller
a14430f3e7 bump version to 1.3.0
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-05-24 14:10:42 +02:00
Wolfgang Bumiller
e0b6be1417 buildsys: cleanup, derive upload dist, drop debcargo usage
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-05-24 14:10:42 +02:00
Fabian Grünbichler
b9db6c2e91 build: add libsystemd-dev to build-depends
pve-lxcsyscalld is linked with it..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-01-19 10:53:05 +01:00
Fabian Grünbichler
701a8fe74d update nix to 0.26
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-01-19 10:38:05 +01:00
Wolfgang Bumiller
d463e3b4ba clippy fixes
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-12-09 11:21:29 +01:00
Wolfgang Bumiller
160bdc64d5 drop custom 'ready' macro, require 1.64
In 1.64, std::task::ready was stabilized, use it.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-10-21 14:06:39 +02:00
Wolfgang Bumiller
caeb967524 replace custom Fd with std OwnedFd
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-10-21 14:03:30 +02:00
Wolfgang Bumiller
2c58f78507 prepare to drop Fd type for OwnedFd (std io_safety)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-10-21 13:59:28 +02:00
Wolfgang Bumiller
0bad4328cc cleanup fd macros
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-10-21 13:55:10 +02:00
Wolfgang Bumiller
87ba060774 bump version to 1.2.2-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-18 12:15:47 +02:00
Wolfgang Bumiller
7d6927b680 drop EventedFd/PolledFd helpers
And use tokio's AsyncFd correctly.

And restore SOCK_NONBLOCK on the receiver.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-18 12:13:59 +02:00
Wolfgang Bumiller
7b1d2aa594 fix compiler compat issue (missing type annotation)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-18 12:13:42 +02:00
Wolfgang Bumiller
7d20b692df add track_caller to spawn
so the tokio console shows the caller instead

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-18 12:13:16 +02:00
Wolfgang Bumiller
a72f5d3342 Revert "Revert "seq_packet: set SOCK_NONBLOCK on accept""
This reverts commit 4275498bbc69ab8eb7849b71f6e4683f71ed29eb.
2022-07-18 11:26:31 +02:00
Wolfgang Bumiller
61eed599e4 bump version to 1.2.1-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-18 11:18:36 +02:00
Wolfgang Bumiller
4275498bbc Revert "seq_packet: set SOCK_NONBLOCK on accept"
This reverts commit ff22261dde605a4826023c2bc4bdd19733d0e563.

This causes issues with lxc blocking on recvmsg.
2022-07-18 11:17:30 +02:00
Wolfgang Bumiller
bf111d7e15 bump version to 1.2.0-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-07 15:20:31 +02:00
Wolfgang Bumiller
ff22261dde seq_packet: set SOCK_NONBLOCK on accept
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-07 15:17:10 +02:00
Wolfgang Bumiller
a747328ef3 cleanup: explicitly use Arc::clone
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-21 10:35:20 +02:00
Wolfgang Bumiller
53d40ceeab rt: set worker thread count
use at least 2 but at most 4 worker threads

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-21 10:09:54 +02:00
Wolfgang Bumiller
b8cb8723bd update to nix 0.24
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-01 14:35:05 +02:00
Wolfgang Bumiller
bd5301dc58 drop IoVec/Mut in favor of std IoSlice/Mut
These used to not be Send + Sync, but they are now.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-01 14:26:13 +02:00
Wolfgang Bumiller
3715458fce clippy fixups
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-01 09:52:29 +02:00
Wolfgang Bumiller
8bc22e3879 bump edition to 2021
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-01 09:51:23 +02:00
Wolfgang Bumiller
15c6eb2221 bump version to 1.1.1-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-01 09:46:08 +02:00
Wolfgang Bumiller
7564d55dad make clippy happy
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-05-27 10:21:13 +02:00
Wolfgang Bumiller
9202081202 remove Todo.md
Just had 1 entry:

Fetching the notify fd isn't terribly useful right now, for
this optimization it's better to wait for the new 'handler'
approach once that's ready.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-01-10 16:18:25 +01:00
Wolfgang Bumiller
dc562b1121 remove rust-toolchain file
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-01-10 16:13:33 +01:00
Wolfgang Bumiller
96bc57d5f5 rework AT_FDCWD handling
this one's negative, actually

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-01-07 14:37:50 +01:00
Wolfgang Bumiller
9f86697d3b bump version to 1.1.0-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-01-07 14:21:16 +01:00
Wolfgang Bumiller
092824889d accept negative file descriptors
since for instance mknodat(-1, ...) may be used to
explicitly prevent relative paths we need to pass those
along instead of immediately failing with EINVAL

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-01-07 14:12:49 +01:00
Wolfgang Bumiller
4032c6699f deny unsafe_op_in_unsafe_fn
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-01-07 12:19:16 +01:00
Wolfgang Bumiller
cff598eb29 clippy fixups
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-01-07 12:17:52 +01:00
Wolfgang Bumiller
8261331958 cargo fmt
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-01-07 11:51:48 +01:00
Wolfgang Bumiller
a03af34bb5 clippy fixes
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-06-11 10:55:47 +02:00
Wolfgang Bumiller
69eff2a1b2 add 'make upload' target
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-06-10 13:08:38 +02:00
Wolfgang Bumiller
fb2ec93c4f bump version to 1.0.0-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-06-10 12:05:43 +02:00
Wolfgang Bumiller
fe73c2fb92 support pure cgroupv2 environments
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-06-10 12:03:28 +02:00
Wolfgang Bumiller
b5019f1a23 fix Pipe ReadBuf usage
this wasn't advancing the ReadBuf state

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-06-10 12:01:55 +02:00
Thomas Lamprecht
a8a175ea0b bump version to 0.9.2-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-12 21:05:23 +02:00
Thomas Lamprecht
4b8278231b buildsys: add CARGO_BUILD_ARGS to test target to avoid full rebuild
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-12 21:03:24 +02:00
Fabian Grünbichler
7a1ab2b21e update to tokio 1.0
and switch from PollEvented to AsyncFd, dropping the direct mio
dependency in turn.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-02-17 11:57:21 +01:00
Fabian Grünbichler
29219349a6 debcargo: fix maintainer directive
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-02-01 11:24:07 +01:00
Fabian Grünbichler
c7db073eb9 update nix dependency
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2020-12-02 13:26:51 +01:00