]> git.proxmox.com Git - pxar.git/log
pxar.git
4 years agodecoder: add content_size method
Wolfgang Bumiller [Mon, 23 Mar 2020 13:32:53 +0000 (14:32 +0100)]
decoder: add content_size method

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoconvenience method to get mtime as std Duration
Wolfgang Bumiller [Mon, 23 Mar 2020 13:26:21 +0000 (14:26 +0100)]
convenience method to get mtime as std Duration

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoformatting fixup
Wolfgang Bumiller [Mon, 23 Mar 2020 13:11:58 +0000 (14:11 +0100)]
formatting fixup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoadd Acl::is_empty
Wolfgang Bumiller [Mon, 23 Mar 2020 13:11:46 +0000 (14:11 +0100)]
add Acl::is_empty

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoexpose format::mode at the top level
Wolfgang Bumiller [Mon, 23 Mar 2020 12:52:01 +0000 (13:52 +0100)]
expose format::mode at the top level

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agocontent reader for sequential decoder
Wolfgang Bumiller [Mon, 23 Mar 2020 12:42:50 +0000 (13:42 +0100)]
content reader for sequential decoder

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoexpose 'with_goodbye_tables' decoder options
Wolfgang Bumiller [Mon, 23 Mar 2020 12:16:02 +0000 (13:16 +0100)]
expose 'with_goodbye_tables' decoder options

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoadd Decoder::open
Wolfgang Bumiller [Mon, 23 Mar 2020 09:17:40 +0000 (10:17 +0100)]
add Decoder::open

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agofix async Encoder::create
Wolfgang Bumiller [Mon, 23 Mar 2020 09:17:30 +0000 (10:17 +0100)]
fix async Encoder::create

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoformatting fixups
Wolfgang Bumiller [Thu, 19 Mar 2020 10:07:25 +0000 (11:07 +0100)]
formatting fixups

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoencoder: expose add_symlink/hardlink/device
Wolfgang Bumiller [Thu, 19 Mar 2020 10:06:45 +0000 (11:06 +0100)]
encoder: expose add_symlink/hardlink/device

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agobuildsys: we work with stable 1.42 atm
Wolfgang Bumiller [Thu, 19 Mar 2020 10:06:29 +0000 (11:06 +0100)]
buildsys: we work with stable 1.42 atm

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoadd aio Encoder
Wolfgang Bumiller [Wed, 18 Mar 2020 15:10:28 +0000 (16:10 +0100)]
add aio Encoder

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoadd AsyncWrite interface to encoder::FileImpl
Wolfgang Bumiller [Tue, 10 Mar 2020 11:58:59 +0000 (12:58 +0100)]
add AsyncWrite interface to encoder::FileImpl

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoencoder: add_device
Wolfgang Bumiller [Thu, 5 Mar 2020 10:19:10 +0000 (11:19 +0100)]
encoder: add_device

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoencoder: add_hardlink
Wolfgang Bumiller [Thu, 5 Mar 2020 10:12:17 +0000 (11:12 +0100)]
encoder: add_hardlink

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoencoder: add_symlink
Wolfgang Bumiller [Thu, 5 Mar 2020 10:10:52 +0000 (11:10 +0100)]
encoder: add_symlink

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoencoder: encode remaining metadata
Wolfgang Bumiller [Thu, 5 Mar 2020 09:46:32 +0000 (10:46 +0100)]
encoder: encode remaining metadata

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
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>