]> git.proxmox.com Git - pxar.git/log
pxar.git
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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 years agoremove rust-toolchain file
Wolfgang Bumiller [Wed, 3 Jun 2020 11:26:58 +0000 (13:26 +0200)]
remove rust-toolchain file

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoadd debian build files
Wolfgang Bumiller [Wed, 3 Jun 2020 10:40:45 +0000 (12:40 +0200)]
add debian build files

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoaccessor: use aio Decoder in aio Accessor
Wolfgang Bumiller [Tue, 2 Jun 2020 10:58:29 +0000 (12:58 +0200)]
accessor: use aio Decoder in aio Accessor

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoEntry: add is_blockdev, is_chardev next to is_device
Wolfgang Bumiller [Tue, 2 Jun 2020 10:57:27 +0000 (12:57 +0200)]
Entry: add is_blockdev, is_chardev next to is_device

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoderive Clone for FileEntry
Wolfgang Bumiller [Tue, 2 Jun 2020 10:57:12 +0000 (12:57 +0200)]
derive Clone for FileEntry

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoadd Entry::into_metadata
Wolfgang Bumiller [Wed, 20 May 2020 07:59:47 +0000 (09:59 +0200)]
add Entry::into_metadata

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoaccessr: add convenience read_at to FileContents
Wolfgang Bumiller [Mon, 18 May 2020 13:25:05 +0000 (15:25 +0200)]
accessr: add convenience read_at to FileContents

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoadd .cargo/config to use local repos
Wolfgang Bumiller [Mon, 18 May 2020 08:38:54 +0000 (10:38 +0200)]
add .cargo/config to use local repos

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agodrop more trait objects for auto-trait reasons
Wolfgang Bumiller [Wed, 13 May 2020 12:56:16 +0000 (14:56 +0200)]
drop more trait objects for auto-trait reasons

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoGet rid of dyn SeqRead use
Wolfgang Bumiller [Wed, 13 May 2020 12:52:41 +0000 (14:52 +0200)]
Get rid of dyn SeqRead use

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoGet rid of dyn SeqWrite
Wolfgang Bumiller [Wed, 13 May 2020 12:06:09 +0000 (14:06 +0200)]
Get rid of dyn SeqWrite

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoGet rid of dyn ReadAt usage
Wolfgang Bumiller [Wed, 13 May 2020 11:53:37 +0000 (13:53 +0200)]
Get rid of dyn ReadAt usage

It causes auto traits to be lost across await points.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoimplement ReadAt for Arcs
Wolfgang Bumiller [Wed, 13 May 2020 07:12:46 +0000 (09:12 +0200)]
implement ReadAt for Arcs

`Arc<dyn ReadAt + Send + Sync + 'static>` is the most
convenience type for a monomorphized random access
`Accessor`, so let's add this for convenience.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoimplement accessor::aio
Wolfgang Bumiller [Tue, 12 May 2020 11:36:40 +0000 (13:36 +0200)]
implement accessor::aio

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoaccessor: add size method
Wolfgang Bumiller [Wed, 6 May 2020 09:35:46 +0000 (11:35 +0200)]
accessor: add size method

to get the size the accessor was initially created with

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoaccessor: expose lookup_self
Wolfgang Bumiller [Wed, 6 May 2020 07:41:01 +0000 (09:41 +0200)]
accessor: expose lookup_self

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoaccessor: open_file_at_range, open_contents_at_range unsafe helpers
Wolfgang Bumiller [Wed, 6 May 2020 07:36:30 +0000 (09:36 +0200)]
accessor: open_file_at_range, open_contents_at_range unsafe helpers

for our fuse code

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agosync accessor: remove 'async' from open_dir_at_end
Wolfgang Bumiller [Tue, 5 May 2020 12:21:11 +0000 (14:21 +0200)]
sync accessor: remove 'async' from open_dir_at_end

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoEntry: add file_size() convenience helper
Wolfgang Bumiller [Tue, 5 May 2020 12:20:55 +0000 (14:20 +0200)]
Entry: add file_size() convenience helper

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoexpose full entry ranges for unsafe access
Wolfgang Bumiller [Tue, 5 May 2020 11:51:33 +0000 (13:51 +0200)]
expose full entry ranges for unsafe access

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agocleanup
Wolfgang Bumiller [Tue, 5 May 2020 09:52:39 +0000 (11:52 +0200)]
cleanup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoadd: interface to set goodbye table cache
Wolfgang Bumiller [Wed, 29 Apr 2020 11:37:57 +0000 (13:37 +0200)]
add: interface to set goodbye table cache

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