]> git.proxmox.com Git - pxar.git/log
pxar.git
3 years agosome clippy fixes
Wolfgang Bumiller [Fri, 7 May 2021 09:57:28 +0000 (11:57 +0200)]
some clippy fixes

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agobump version to 0.10.1-1
Wolfgang Bumiller [Wed, 31 Mar 2021 11:56:22 +0000 (13:56 +0200)]
bump version to 0.10.1-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agorustfmt
Wolfgang Bumiller [Wed, 31 Mar 2021 11:54:18 +0000 (13:54 +0200)]
rustfmt

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agodecoder/aio: add contents() and content_size() calls
Stefan Reiter [Wed, 31 Mar 2021 10:21:43 +0000 (12:21 +0200)]
decoder/aio: add contents() and content_size() calls

Returns a decoder::Contents without a wrapper type, since in this case
we don't want to hide the SeqRead implementation (as done in
decoder::sync). For conviencience also implement AsyncRead if "tokio-io"
is enabled.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agorustfmt
Wolfgang Bumiller [Wed, 31 Mar 2021 11:52:09 +0000 (13:52 +0200)]
rustfmt

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoencoder: only flush owned outputs in 'finish'
Wolfgang Bumiller [Wed, 31 Mar 2021 11:51:46 +0000 (13:51 +0200)]
encoder: only flush owned outputs in 'finish'

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoencoder: flush after writing last entry
Dominik Csapak [Wed, 24 Mar 2021 10:56:38 +0000 (11:56 +0100)]
encoder: flush after writing last entry

some writers may need to be flushed to write out all data

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agorustfmt
Wolfgang Bumiller [Fri, 12 Mar 2021 09:42:14 +0000 (10:42 +0100)]
rustfmt

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agobump version to 0.10.0-1
Wolfgang Bumiller [Fri, 12 Mar 2021 09:38:03 +0000 (10:38 +0100)]
bump version to 0.10.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoexplicitly pad StatxTimestamp with zeros
Wolfgang Bumiller [Fri, 12 Mar 2021 09:34:17 +0000 (10:34 +0100)]
explicitly pad StatxTimestamp with zeros

otherwise we can have random data in there

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoupdate d/control
Wolfgang Bumiller [Wed, 17 Feb 2021 08:55:26 +0000 (09:55 +0100)]
update d/control

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agobump version to 0.9.0-1
Wolfgang Bumiller [Wed, 17 Feb 2021 08:54:38 +0000 (09:54 +0100)]
bump version to 0.9.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoadd EncoderOutput::to_borrowed()
Wolfgang Bumiller [Wed, 17 Feb 2021 08:50:10 +0000 (09:50 +0100)]
add EncoderOutput::to_borrowed()

may more "explicit" than using `.as_mut().into()`, but
otherwise just seems like a useful addition to show the
lifetime constraints on this

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agorevert Send requirement from previous patch
Wolfgang Bumiller [Wed, 17 Feb 2021 08:23:29 +0000 (09:23 +0100)]
revert Send requirement from previous patch

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agomake aio::Encoder actually behave with async
Stefan Reiter [Tue, 9 Feb 2021 12:03:47 +0000 (13:03 +0100)]
make aio::Encoder actually behave with async

To really use the encoder with async/await, it needs to support
SeqWrite implementations that are Send. This requires changing a whole
bunch of '&mut dyn SeqWrite' trait objects to instead take a 'T:
SeqWrite' generic parameter directly instead. Most of this is quite
straightforward, though incurs a lot of churn (FileImpl needs a generic
parameter now for example).

The trickiest part is returning a new Encoder instance in
create_directory, as the trait object trick with
SeqWrite::as_trait_object doesn't work if SeqWrite is implemented for
generic '&mut S'.

Instead, work with the generic object directly, and express the
owned/borrowed state in the Encoder (to avoid nested borrowing) as an
enum EncoderOutput.

Add to the aio test to ensure the Encoder is now actually useable.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agocargo fmt
Wolfgang Bumiller [Tue, 2 Feb 2021 09:54:36 +0000 (10:54 +0100)]
cargo fmt

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agomake Send test not depend on tokio
Wolfgang Bumiller [Tue, 2 Feb 2021 09:54:11 +0000 (10:54 +0100)]
make Send test not depend on tokio

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agobump version to 0.8.0-1
Wolfgang Bumiller [Tue, 2 Feb 2021 09:50:03 +0000 (10:50 +0100)]
bump version to 0.8.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agofix Encoder to be Send + Sync
Wolfgang Bumiller [Tue, 2 Feb 2021 09:47:56 +0000 (10:47 +0100)]
fix Encoder to be Send + Sync

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agodebcargo: fix maintainer directive
Fabian Grünbichler [Mon, 1 Feb 2021 10:21:17 +0000 (11:21 +0100)]
debcargo: fix maintainer directive

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agodrop futures dependency
Wolfgang Bumiller [Fri, 15 Jan 2021 13:59:29 +0000 (14:59 +0100)]
drop futures dependency

we're not actually using it anymore now

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agotypo fix: this was supposed to be from_tokio
Wolfgang Bumiller [Fri, 15 Jan 2021 13:42:31 +0000 (14:42 +0100)]
typo fix: this was supposed to be from_tokio

it's on `tokio-io` after all and there previously used to be
a `form_futures` for the `Async*` traits from `futures`

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoclippy fixups
Wolfgang Bumiller [Fri, 15 Jan 2021 13:24:50 +0000 (14:24 +0100)]
clippy fixups

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agomove extra build-dependencies from .builtbot.yml to d/control
Thomas Lamprecht [Fri, 15 Jan 2021 09:07:53 +0000 (10:07 +0100)]
move extra build-dependencies from .builtbot.yml to d/control

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoadd futures to builbot.yml
Thomas Lamprecht [Thu, 14 Jan 2021 15:45:57 +0000 (16:45 +0100)]
add futures to builbot.yml

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoupdate builbot.yml for tokio 1.0
Thomas Lamprecht [Thu, 14 Jan 2021 15:30:53 +0000 (16:30 +0100)]
update builbot.yml for tokio 1.0

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 0.7.0-1
Fabian Grünbichler [Thu, 14 Jan 2021 14:26:40 +0000 (15:26 +0100)]
bump version to 0.7.0-1

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agobuild: fix --no-default-features
Fabian Grünbichler [Thu, 14 Jan 2021 14:26:16 +0000 (15:26 +0100)]
build: fix --no-default-features

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agofix example
Wolfgang Bumiller [Wed, 13 Jan 2021 08:59:58 +0000 (09:59 +0100)]
fix example

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoremove futures-io feature
Fabian Grünbichler [Mon, 11 Jan 2021 12:59:49 +0000 (13:59 +0100)]
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>
3 years agoclippy: use matches! instead of match
Fabian Grünbichler [Mon, 11 Jan 2021 13:47:45 +0000 (14:47 +0100)]
clippy: use matches! instead of match

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agoupdate to tokio 1.0
Fabian Grünbichler [Fri, 4 Dec 2020 10:39:55 +0000 (11:39 +0100)]
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>
3 years agobump version to 0.6.2-1
Wolfgang Bumiller [Tue, 15 Dec 2020 12:10:50 +0000 (13:10 +0100)]
bump version to 0.6.2-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agofix `decode_entry` on special files
Wolfgang Bumiller [Tue, 15 Dec 2020 10:34:15 +0000 (11:34 +0100)]
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>
3 years agoclippy
Wolfgang Bumiller [Fri, 27 Nov 2020 10:55:07 +0000 (11:55 +0100)]
clippy

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agobump version to 0.6.1-1
Dietmar Maurer [Fri, 18 Sep 2020 09:35:35 +0000 (11:35 +0200)]
bump version to 0.6.1-1

3 years agoDecoder<StandardReader<T>>: allow access to input
Dietmar Maurer [Fri, 18 Sep 2020 09:32:43 +0000 (11:32 +0200)]
Decoder<StandardReader<T>>: allow access to input

We need this to query the status of the input when decode fails.

3 years agomore build dep fixups for buildbot
Wolfgang Bumiller [Fri, 28 Aug 2020 08:18:18 +0000 (10:18 +0200)]
more build dep fixups for buildbot

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agohave the buildbot install anyhow for now
Wolfgang Bumiller [Fri, 28 Aug 2020 07:46:04 +0000 (09:46 +0200)]
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>
3 years agoformatting fixup
Wolfgang Bumiller [Fri, 28 Aug 2020 07:00:13 +0000 (09:00 +0200)]
formatting fixup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agod/control bump
Wolfgang Bumiller [Thu, 27 Aug 2020 10:14:39 +0000 (12:14 +0200)]
d/control bump

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agobump version to 0.6.0-1
Wolfgang Bumiller [Thu, 27 Aug 2020 10:12:42 +0000 (12:12 +0200)]
bump version to 0.6.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoencoder: let finish return writer, add into_writer
Wolfgang Bumiller [Thu, 27 Aug 2020 10:04:18 +0000 (12:04 +0200)]
encoder: let finish return writer, add into_writer

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agobump version to 0.5.0-2
Wolfgang Bumiller [Tue, 25 Aug 2020 10:46:07 +0000 (12:46 +0200)]
bump version to 0.5.0-2

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agofixup d/control
Wolfgang Bumiller [Tue, 25 Aug 2020 10:44:21 +0000 (12:44 +0200)]
fixup d/control

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agobump version to 0.5.0-1
Wolfgang Bumiller [Tue, 25 Aug 2020 10:26:16 +0000 (12:26 +0200)]
bump version to 0.5.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agorename Entry to Stat, add Metadata::builder_from_stat
Wolfgang Bumiller [Tue, 25 Aug 2020 10:21:18 +0000 (12:21 +0200)]
rename Entry to Stat, add Metadata::builder_from_stat

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agofixup build and test dependencies
Wolfgang Bumiller [Tue, 25 Aug 2020 08:11:15 +0000 (10:11 +0200)]
fixup build and test dependencies

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agogenerate and check-in d/control
Wolfgang Bumiller [Tue, 25 Aug 2020 07:30:55 +0000 (09:30 +0200)]
generate and check-in d/control

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agobump version to 0.4.0-1
Wolfgang Bumiller [Mon, 24 Aug 2020 09:54:45 +0000 (11:54 +0200)]
bump version to 0.4.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agodrop poll_close and poll_position from SeqWrite
Wolfgang Bumiller [Mon, 24 Aug 2020 09:51:42 +0000 (11:51 +0200)]
drop poll_close and poll_position from SeqWrite

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agodoc fixup
Wolfgang Bumiller [Thu, 30 Jul 2020 07:40:47 +0000 (09:40 +0200)]
doc fixup

This is a SignedDuration now instead of a Result

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agointroduce StatxTimestamp helper type
Wolfgang Bumiller [Tue, 28 Jul 2020 09:03:11 +0000 (11:03 +0200)]
introduce StatxTimestamp helper type

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoMakefile: fix dinstzall target
Dietmar Maurer [Wed, 29 Jul 2020 06:10:21 +0000 (08:10 +0200)]
Makefile: fix dinstzall target

3 years agoMakefile: build packages inside build/ directory
Dietmar Maurer [Wed, 29 Jul 2020 06:07:47 +0000 (08:07 +0200)]
Makefile: build packages inside build/ directory

3 years agoMakefile: add upload target
Dietmar Maurer [Wed, 29 Jul 2020 05:49:45 +0000 (07:49 +0200)]
Makefile: add upload target

3 years agobump version to 0.3.0-1
Wolfgang Bumiller [Tue, 28 Jul 2020 10:33:21 +0000 (12:33 +0200)]
bump version to 0.3.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoadd entry v1 compatiblity test
Wolfgang Bumiller [Tue, 28 Jul 2020 10:33:20 +0000 (12:33 +0200)]
add entry v1 compatiblity test

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoimplement Entry v2
Wolfgang Bumiller [Tue, 28 Jul 2020 10:33:19 +0000 (12:33 +0200)]
implement Entry v2

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoupdate mk-format-hashes for a new ENTRY
Wolfgang Bumiller [Tue, 28 Jul 2020 10:33:18 +0000 (12:33 +0200)]
update mk-format-hashes for a new ENTRY

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agointroduce StatxTimestamp helper type
Wolfgang Bumiller [Tue, 28 Jul 2020 10:33:17 +0000 (12:33 +0200)]
introduce StatxTimestamp helper type

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoadd format description to format module
Wolfgang Bumiller [Tue, 28 Jul 2020 10:33:15 +0000 (12:33 +0200)]
add format description to format module

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agobump version to 0.2.1-1
Wolfgang Bumiller [Thu, 16 Jul 2020 09:44:15 +0000 (11:44 +0200)]
bump version to 0.2.1-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agomore clippy lints
Wolfgang Bumiller [Thu, 16 Jul 2020 09:21:13 +0000 (11:21 +0200)]
more clippy lints

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoclippy: fix bad cast in max allowed content size
Wolfgang Bumiller [Thu, 16 Jul 2020 09:21:04 +0000 (11:21 +0200)]
clippy: fix bad cast in max allowed content size

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoadd some random access tests with hardlinks
Wolfgang Bumiller [Fri, 26 Jun 2020 12:12:57 +0000 (14:12 +0200)]
add some random access tests with hardlinks

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoaccessor: impl ReadAt for byte slices
Wolfgang Bumiller [Fri, 26 Jun 2020 11:54:16 +0000 (13:54 +0200)]
accessor: impl ReadAt for byte slices

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agotests: add some ACLs
Wolfgang Bumiller [Fri, 26 Jun 2020 11:05:22 +0000 (13:05 +0200)]
tests: add some ACLs

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoacl: User/Group::new method
Wolfgang Bumiller [Fri, 26 Jun 2020 11:05:04 +0000 (13:05 +0200)]
acl: User/Group::new method

with some convenience to not require the Permissions type
wraparound.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agobuildsys: pass --all-features to cargo test
Wolfgang Bumiller [Fri, 26 Jun 2020 10:27:42 +0000 (12:27 +0200)]
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>
3 years agorustc compat fixup
Wolfgang Bumiller [Fri, 26 Jun 2020 09:44:20 +0000 (11:44 +0200)]
rustc compat fixup

lowers crate's rustc requirement to << 1.43

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agotests: cleanup warnings
Wolfgang Bumiller [Fri, 26 Jun 2020 09:20:45 +0000 (11:20 +0200)]
tests: cleanup warnings

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agotests: add fifos and sockets
Wolfgang Bumiller [Fri, 26 Jun 2020 09:12:00 +0000 (11:12 +0200)]
tests: add fifos and sockets

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agodocument test helpers a bit
Wolfgang Bumiller [Fri, 26 Jun 2020 08:08:45 +0000 (10:08 +0200)]
document test helpers a bit

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoremove custom PartialEq impl
Wolfgang Bumiller [Fri, 26 Jun 2020 07:57:35 +0000 (09:57 +0200)]
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>
3 years agosome initial sequential encoder/decoder testing
Wolfgang Bumiller [Fri, 26 Jun 2020 07:53:59 +0000 (09:53 +0200)]
some initial sequential encoder/decoder testing

Tests basic files, hardlinks, symlinks. No special metadata
yet.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoAdd TODO file
Wolfgang Bumiller [Fri, 26 Jun 2020 06:59:03 +0000 (08:59 +0200)]
Add TODO file

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoformatting fixups
Wolfgang Bumiller [Thu, 25 Jun 2020 11:56:48 +0000 (13:56 +0200)]
formatting fixups

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agostart tests directory
Wolfgang Bumiller [Thu, 25 Jun 2020 11:50:59 +0000 (13:50 +0200)]
start tests directory

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoadd test-harness feature for separate unit tests
Wolfgang Bumiller [Thu, 25 Jun 2020 11:50:53 +0000 (13:50 +0200)]
add test-harness feature for separate unit tests

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agosync encoder: fix metadat lifetime leaking into encoder
Wolfgang Bumiller [Thu, 25 Jun 2020 10:24:18 +0000 (12:24 +0200)]
sync encoder: fix metadat lifetime leaking into encoder

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoAdd a metadata builder
Wolfgang Bumiller [Thu, 25 Jun 2020 10:11:22 +0000 (12:11 +0200)]
Add a metadata builder

for now primarily to get started with tests

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoformatting fixup
Wolfgang Bumiller [Thu, 25 Jun 2020 10:14:03 +0000 (12:14 +0200)]
formatting fixup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agobump version to 0.2.0-1
Wolfgang Bumiller [Thu, 25 Jun 2020 07:43:28 +0000 (09:43 +0200)]
bump version to 0.2.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agonew hashes for the entire archive foramt
Wolfgang Bumiller [Wed, 24 Jun 2020 11:31:33 +0000 (13:31 +0200)]
new hashes for the entire archive foramt

This breaks all previous pxar files and represents a clear
cut off of the catar format.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agobump version to 0.1.9-1
Wolfgang Bumiller [Wed, 24 Jun 2020 09:56:27 +0000 (11:56 +0200)]
bump version to 0.1.9-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agosort some constants
Wolfgang Bumiller [Wed, 24 Jun 2020 09:54:47 +0000 (11:54 +0200)]
sort some constants

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoformatting fixups
Wolfgang Bumiller [Wed, 24 Jun 2020 09:53:55 +0000 (11:53 +0200)]
formatting fixups

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agomake ReadAt trait more correct
Wolfgang Bumiller [Wed, 24 Jun 2020 08:11:41 +0000 (10:11 +0200)]
make ReadAt trait more correct

A simple `poll_read_at` with an immutable self reference
lacks the information which poll *operation* is being
polled. An associated type won't work well enough
(particularly with trait objects and lifetimes), and GATs
are unstable (and not advanced enough yet), so we need to
improvise.

To be more async-friendly, the `start_read_at()` method's
Pending now includes a reference to the operation which also
grabs the buffer lifetime, and has to be completed with
`poll_complete()`.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agodoc update
Wolfgang Bumiller [Mon, 22 Jun 2020 09:39:17 +0000 (11:39 +0200)]
doc update

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agobump version to 0.1.8-1
Wolfgang Bumiller [Mon, 22 Jun 2020 09:07:32 +0000 (11:07 +0200)]
bump version to 0.1.8-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agofix device encoding
Wolfgang Bumiller [Mon, 22 Jun 2020 09:05:11 +0000 (11:05 +0200)]
fix device encoding

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agobump version to 0.1.7-1
Wolfgang Bumiller [Mon, 15 Jun 2020 08:36:26 +0000 (10:36 +0200)]
bump version to 0.1.7-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agodecoder: remove pub(crate) from some internal items
Wolfgang Bumiller [Mon, 15 Jun 2020 08:34:54 +0000 (10:34 +0200)]
decoder: remove pub(crate) from some internal items

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoaccessor: don't mess with internal decoder state
Wolfgang Bumiller [Mon, 15 Jun 2020 08:33:06 +0000 (10:33 +0200)]
accessor: don't mess with internal decoder state

skipping a filename is trivial enough to not abuse internal
decoder methods

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agodecoder: fix typos
Fabian Grünbichler [Fri, 12 Jun 2020 07:21:41 +0000 (09:21 +0200)]
decoder: fix typos

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoheader: implement Display
Fabian Grünbichler [Fri, 12 Jun 2020 07:21:40 +0000 (09:21 +0200)]
header: implement Display

for nicer/readable error messages.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoheader: add size checks
Fabian Grünbichler [Fri, 12 Jun 2020 07:21:39 +0000 (09:21 +0200)]
header: add size checks

to catch
- headers with full_size < size_of::<Header>
- headers with content_size > header-specific limit

both should in practice only occur for corrupted streams/archives, but
panic-ing/attempting to allocate huge amounts of memory should be
avoided even for those.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agobump version to 0.1.6-1
Wolfgang Bumiller [Mon, 8 Jun 2020 11:56:28 +0000 (13:56 +0200)]
bump version to 0.1.6-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoencoder: implement a larger shared file copy buffer
Wolfgang Bumiller [Mon, 8 Jun 2020 11:14:06 +0000 (13:14 +0200)]
encoder: implement a larger shared file copy buffer

In the future we can give it a size.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>