]> git.proxmox.com Git - pxar.git/log
pxar.git
4 years agoignore testdir
Wolfgang Bumiller [Thu, 5 Mar 2020 09:46:18 +0000 (10:46 +0100)]
ignore testdir

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoexamples/pxarcmd: acreate archives recursively
Wolfgang Bumiller [Wed, 4 Mar 2020 15:39:07 +0000 (16:39 +0100)]
examples/pxarcmd: acreate archives recursively

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoencoder: actually create the binary search tree array
Wolfgang Bumiller [Wed, 4 Mar 2020 15:38:14 +0000 (16:38 +0100)]
encoder: actually create the binary search tree array

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoencoder: lifetime fixup
Wolfgang Bumiller [Wed, 4 Mar 2020 15:37:25 +0000 (16:37 +0100)]
encoder: lifetime fixup

for some reason using these functions otherwise creates
leaves the lifetime borrowed throughout the entire
scope making it impossible to use this in a loop?

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoadd From<&std::fs::Metadata> for Metadata
Wolfgang Bumiller [Wed, 4 Mar 2020 15:28:00 +0000 (16:28 +0100)]
add From<&std::fs::Metadata> for Metadata

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoremove now-unused BST search function
Wolfgang Bumiller [Wed, 4 Mar 2020 15:27:38 +0000 (16:27 +0100)]
remove now-unused BST search function

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoimport binary search tree code from proxmox-backup
Wolfgang Bumiller [Wed, 4 Mar 2020 15:26:40 +0000 (16:26 +0100)]
import binary search tree code from proxmox-backup

and fix accessor's hash collision handling

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agostart with the encoder state machine
Wolfgang Bumiller [Thu, 20 Feb 2020 11:44:21 +0000 (12:44 +0100)]
start with the encoder state machine

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agodon't use size_of_val for possibly empty array elements
Wolfgang Bumiller [Tue, 3 Mar 2020 12:31:06 +0000 (13:31 +0100)]
don't use size_of_val for possibly empty array elements

While it is generally nicer to use something that already
contains the type (to avoid duplicate type names),
size_of_val doesn't get optimized out and the array access
will happen with all its checks, causing panics...

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agodocumentation
Wolfgang Bumiller [Thu, 20 Feb 2020 11:21:18 +0000 (12:21 +0100)]
documentation

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoapi update
Wolfgang Bumiller [Thu, 20 Feb 2020 10:19:24 +0000 (11:19 +0100)]
api update

reexport the main accessor::sync types in accessor::

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agohide accessor::aio for now
Wolfgang Bumiller [Thu, 20 Feb 2020 10:17:40 +0000 (11:17 +0100)]
hide accessor::aio for now

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agocleanup
Wolfgang Bumiller [Thu, 20 Feb 2020 10:16:35 +0000 (11:16 +0100)]
cleanup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agopxarcmd example: implement 'cat'
Wolfgang Bumiller [Wed, 19 Feb 2020 15:10:18 +0000 (16:10 +0100)]
pxarcmd example: implement 'cat'

and fix FileContentImpl offsets

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoimplement lookup over multiple components
Wolfgang Bumiller [Wed, 19 Feb 2020 15:03:42 +0000 (16:03 +0100)]
implement lookup over multiple components

add a pxarcmd test example
make 'failure' an optional dependency as we only use it in
examples right now.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoaccessor: efficient iterator method alternatives
Wolfgang Bumiller [Wed, 19 Feb 2020 10:02:56 +0000 (11:02 +0100)]
accessor: efficient iterator method alternatives

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agohuge accessor refactoring
Wolfgang Bumiller [Wed, 19 Feb 2020 09:54:14 +0000 (10:54 +0100)]
huge accessor refactoring

Turn <'a> into <T: Clone + ReadAt>. We can still use `&'a
dyn ReadAt` in its place, but we can now also support using
an `Arc<File>` to create an Accessor of a 'static lifetime
for more convenient storage and reuse. This way the Accessor
can be thrown away after calling `open_root`.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agolet FileEntry deref to Entry
Wolfgang Bumiller [Tue, 18 Feb 2020 13:19:23 +0000 (14:19 +0100)]
let FileEntry deref to Entry

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoimport
Wolfgang Bumiller [Thu, 23 Jan 2020 10:18:04 +0000 (11:18 +0100)]
import

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