]> git.proxmox.com Git - pxar.git/log
pxar.git
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>
4 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

4 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.

4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 years agoMakefile: fix dinstzall target
Dietmar Maurer [Wed, 29 Jul 2020 06:10:21 +0000 (08:10 +0200)]
Makefile: fix dinstzall target

4 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

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

4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 years agofactor out file name validation, also forbid . and ..
Wolfgang Bumiller [Mon, 8 Jun 2020 08:30:43 +0000 (10:30 +0200)]
factor out file name validation, also forbid . and ..

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoaccessor: forbid slashes in file names
Wolfgang Bumiller [Mon, 8 Jun 2020 08:27:48 +0000 (10:27 +0200)]
accessor: forbid slashes in file names

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agodecoder: forbid slashes in file names
Wolfgang Bumiller [Mon, 8 Jun 2020 08:26:36 +0000 (10:26 +0200)]
decoder: forbid slashes in file names

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoencoder: forbid slashes in file names
Wolfgang Bumiller [Mon, 8 Jun 2020 08:25:33 +0000 (10:25 +0200)]
encoder: forbid slashes in file names

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

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoformatting fixups
Wolfgang Bumiller [Mon, 8 Jun 2020 08:07:46 +0000 (10:07 +0200)]
formatting fixups

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoformat: fix mtime in Metadata::from(StdMetadata)
Wolfgang Bumiller [Mon, 8 Jun 2020 08:06:07 +0000 (10:06 +0200)]
format: fix mtime in Metadata::from(StdMetadata)

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoexamples: add hardlink support to pxarcmd
Wolfgang Bumiller [Mon, 8 Jun 2020 07:55:42 +0000 (09:55 +0200)]
examples: add hardlink support to pxarcmd

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoencoder: fix contents of hardlinks
Wolfgang Bumiller [Mon, 8 Jun 2020 07:55:31 +0000 (09:55 +0200)]
encoder: fix contents of hardlinks

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agobump version to 0.1.4-1
Wolfgang Bumiller [Fri, 5 Jun 2020 14:26:17 +0000 (16:26 +0200)]
bump version to 0.1.4-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoencoder: use relative hardlink offsets
Wolfgang Bumiller [Fri, 5 Jun 2020 14:26:13 +0000 (16:26 +0200)]
encoder: use relative hardlink offsets

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agomajor updates to allow following hardlinks efficiently
Wolfgang Bumiller [Fri, 5 Jun 2020 14:01:07 +0000 (16:01 +0200)]
major updates to allow following hardlinks efficiently

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoformatting fixups
Wolfgang Bumiller [Fri, 5 Jun 2020 13:08:32 +0000 (15:08 +0200)]
formatting fixups

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoaccessor: add follow_hardlink to accessor toplevel
Wolfgang Bumiller [Fri, 5 Jun 2020 13:05:26 +0000 (15:05 +0200)]
accessor: add follow_hardlink to accessor toplevel

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoencoder: only provide a LinkOffset on regular files
Wolfgang Bumiller [Fri, 5 Jun 2020 13:05:12 +0000 (15:05 +0200)]
encoder: only provide a LinkOffset on regular files

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoremove unused binary for now
Wolfgang Bumiller [Fri, 5 Jun 2020 12:06:11 +0000 (14:06 +0200)]
remove unused binary for now

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agobump version to 0.1.3-1
Wolfgang Bumiller [Fri, 5 Jun 2020 12:01:16 +0000 (14:01 +0200)]
bump version to 0.1.3-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agodecoder: more hardlink reading fixups
Wolfgang Bumiller [Fri, 5 Jun 2020 12:00:06 +0000 (14:00 +0200)]
decoder: more hardlink reading fixups

the previous code use a read helper which would not allow
for there to be more data after the offset

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoencoder: introduce LinkOffset
Wolfgang Bumiller [Fri, 5 Jun 2020 11:17:02 +0000 (13:17 +0200)]
encoder: introduce LinkOffset

To create hardlinks we need to reference the
in-archive-offset of the file we want to link to.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoswitch to using mod.rs
Wolfgang Bumiller [Fri, 5 Jun 2020 11:03:27 +0000 (13:03 +0200)]
switch to using mod.rs

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agohardlinks also contain the offset
Wolfgang Bumiller [Fri, 5 Jun 2020 10:35:11 +0000 (12:35 +0200)]
hardlinks also contain the offset

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agobump version to 0.1.2-1
Wolfgang Bumiller [Fri, 5 Jun 2020 10:21:08 +0000 (12:21 +0200)]
bump version to 0.1.2-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agofix hardlink format
Wolfgang Bumiller [Fri, 5 Jun 2020 09:52:40 +0000 (11:52 +0200)]
fix hardlink format

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agosilence encoder warning
Wolfgang Bumiller [Thu, 4 Jun 2020 13:07:54 +0000 (15:07 +0200)]
silence encoder warning

As it is normal for this to happen when bailing out with an
error.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agofixup clean target in Makefile
Wolfgang Bumiller [Thu, 4 Jun 2020 09:29:58 +0000 (11:29 +0200)]
fixup clean target in Makefile

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agobump version to 0.1.1-1
Wolfgang Bumiller [Thu, 4 Jun 2020 09:27:04 +0000 (11:27 +0200)]
bump version to 0.1.1-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoturn Permissions into just an u64
Wolfgang Bumiller [Thu, 4 Jun 2020 09:20:38 +0000 (11:20 +0200)]
turn Permissions into just an u64

So we don't need to deal with `from_bits_truncate` and can
just use it as it is...

An alternative would be an enum which is either NoMask or a
bitfield, but that seems too tedious right now.

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