5
0
mirror of git://git.proxmox.com/git/pxar.git synced 2025-01-19 18:03:35 +03:00

237 Commits

Author SHA1 Message Date
Thomas Lamprecht
d48ed56b48 update builbot.yml for tokio 1.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-01-14 16:30:57 +01:00
Fabian Grünbichler
5db2e175b2 bump version to 0.7.0-1
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-01-14 15:26:40 +01:00
Fabian Grünbichler
43c585cd83 build: fix --no-default-features
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-01-14 15:26:16 +01:00
Wolfgang Bumiller
a5b958d10c fix example
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-01-13 10:58:15 +01:00
Fabian Grünbichler
7aee9c1f6b remove futures-io feature
we don't use it, and it adds unnecessary duplication/complexity.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-01-12 11:35:39 +01:00
Fabian Grünbichler
8de202d4c4 clippy: use matches! instead of match
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-01-11 14:48:15 +01:00
Fabian Grünbichler
6e02c1221c update to tokio 1.0
unfortunately, futures::io::AsyncRead and tokio::io::AsyncRead no longer
share a do_poll_read signature, so we need to adapt one to the other
(and also no longer generate some wrapper implementations via macro).

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2020-12-29 13:58:38 +01:00
Wolfgang Bumiller
379043a0b9 bump version to 0.6.2-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-12-15 13:12:01 +01:00
Wolfgang Bumiller
318462ea3d fix decode_entry on special files
When using the random accessor to access FIFOs or sockets,
the ranged reader limits the data to only that entry, and
the `decode_entry` will never see a `PAYLOAD` or
`GOODBYE_TABLE` item to finish the entry.
Instead, it'll reach EOF and we need to handle this.
The accessor now tells the decoder to expect EOF as a valid
condition for ending the entry.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-12-15 11:34:15 +01:00
Wolfgang Bumiller
9e7287abc1 clippy
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-11-27 11:55:07 +01:00
Dietmar Maurer
4f2d271a96 bump version to 0.6.1-1 2020-09-18 11:35:35 +02:00
Dietmar Maurer
1568a7546d Decoder<StandardReader<T>>: allow access to input
We need this to query the status of the input when decode fails.
2020-09-18 11:32:43 +02:00
Wolfgang Bumiller
3acfbd6133 more build dep fixups for buildbot
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-08-28 10:18:18 +02:00
Wolfgang Bumiller
175eff9ff0 have the buildbot install anyhow for now
there are some build/test/dev dependencies issues with
debcargo still open, once those are resolved we can maybe
revert this

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-08-28 09:46:05 +02:00
Wolfgang Bumiller
420639374d formatting fixup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-08-28 09:00:13 +02:00
Wolfgang Bumiller
67ba385ce1 d/control bump
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-08-27 12:14:39 +02:00
Wolfgang Bumiller
aef2fafe27 bump version to 0.6.0-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-08-27 12:12:42 +02:00
Wolfgang Bumiller
84a1926f44 encoder: let finish return writer, add into_writer
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-08-27 12:04:18 +02:00
Wolfgang Bumiller
e18ccaa084 bump version to 0.5.0-2
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-08-25 12:46:07 +02:00
Wolfgang Bumiller
1137f325da fixup d/control
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-08-25 12:44:21 +02:00
Wolfgang Bumiller
93a98da448 bump version to 0.5.0-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-08-25 12:26:16 +02:00
Wolfgang Bumiller
2ea8aff22d rename Entry to Stat, add Metadata::builder_from_stat
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-08-25 12:25:07 +02:00
Wolfgang Bumiller
ffbe3ebce6 fixup build and test dependencies
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-08-25 10:12:31 +02:00
Wolfgang Bumiller
fe30eb1670 generate and check-in d/control
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-08-25 09:30:55 +02:00
Wolfgang Bumiller
37cb182613 bump version to 0.4.0-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-08-24 12:00:39 +02:00
Wolfgang Bumiller
ec4a53edce drop poll_close and poll_position from SeqWrite
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-08-24 12:00:39 +02:00
Wolfgang Bumiller
fc2f1b9f20 doc fixup
This is a SignedDuration now instead of a Result

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-08-24 12:00:39 +02:00
Wolfgang Bumiller
bb6779b5a0 introduce StatxTimestamp helper type
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-08-24 12:00:39 +02:00
Dietmar Maurer
2ba7b74269 Makefile: fix dinstzall target 2020-07-29 08:10:21 +02:00
Dietmar Maurer
1bcc42bd85 Makefile: build packages inside build/ directory 2020-07-29 08:07:47 +02:00
Dietmar Maurer
b3c43dad2e Makefile: add upload target 2020-07-29 07:49:45 +02:00
Wolfgang Bumiller
10086ac539 bump version to 0.3.0-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-07-29 07:40:12 +02:00
Wolfgang Bumiller
3a7b42d0ef add entry v1 compatiblity test
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-07-29 07:39:58 +02:00
Wolfgang Bumiller
644e844d49 implement Entry v2
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-07-29 07:33:41 +02:00
Wolfgang Bumiller
57bee6f8f0 update mk-format-hashes for a new ENTRY
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-07-29 07:31:22 +02:00
Wolfgang Bumiller
939f24689f introduce StatxTimestamp helper type
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-07-29 07:23:53 +02:00
Wolfgang Bumiller
f0279c01e0 add format description to format module
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-07-29 07:23:17 +02:00
Wolfgang Bumiller
cbf1b17b00 bump version to 0.2.1-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-07-16 11:44:15 +02:00
Wolfgang Bumiller
1b25fc0820 more clippy lints
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-07-16 11:40:41 +02:00
Wolfgang Bumiller
93fef2fd8a clippy: fix bad cast in max allowed content size
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-07-16 11:21:06 +02:00
Wolfgang Bumiller
c81b2e4e21 add some random access tests with hardlinks
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-06-26 14:12:57 +02:00
Wolfgang Bumiller
cde0236c1c accessor: impl ReadAt for byte slices
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-06-26 13:54:16 +02:00
Wolfgang Bumiller
807a4fd6ba tests: add some ACLs
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-06-26 13:05:22 +02:00
Wolfgang Bumiller
4c3318a28e acl: User/Group::new method
with some convenience to not require the Permissions type
wraparound.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-06-26 13:05:05 +02:00
Wolfgang Bumiller
b4d3fe517f buildsys: pass --all-features to cargo test
Otherwise tests which depend on optional dependencies won't
be run. Particularly the one in the `tests/` subdir.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-06-26 12:27:43 +02:00
Wolfgang Bumiller
08bc9bbc6c rustc compat fixup
lowers crate's rustc requirement to << 1.43

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-06-26 11:44:25 +02:00
Wolfgang Bumiller
1feb04d7b8 tests: cleanup warnings
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-06-26 11:20:45 +02:00
Wolfgang Bumiller
650070b0e6 tests: add fifos and sockets
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-06-26 11:12:00 +02:00
Wolfgang Bumiller
bb74cbfa21 document test helpers a bit
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-06-26 10:08:45 +02:00
Wolfgang Bumiller
ea8ff6368b remove custom PartialEq impl
Hardlink targets are now compared, but only the parts we
also actually decode, not the chosen names in
`Entry.link_key`.

This way we can just `==` compare entries as long as the
files we use for hardlinking use their canonical path as
key.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-06-26 09:57:35 +02:00