]>
git.proxmox.com Git - pxar.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Wolfgang Bumiller [Mon, 23 Mar 2020 14:00:15 +0000 (15:00 +0100)]
Symlink/Hardlink::as_os_str convenience helpers
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 23 Mar 2020 13:58:35 +0000 (14:58 +0100)]
Symlink/Hardlink: AsRef<[u8]> and update AsRef<OsStr>
Don't include the terminating nul byte in AsRef<OsStr>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 23 Mar 2020 13:48:28 +0000 (14:48 +0100)]
Metadata::mtime_as_duration shortcut
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 23 Mar 2020 13:42:23 +0000 (14:42 +0100)]
AsRef<OsStr> for Symlink and Hardlink
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 23 Mar 2020 13:34:31 +0000 (14:34 +0100)]
add Entry::kind
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
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>
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>
Wolfgang Bumiller [Mon, 23 Mar 2020 13:11:58 +0000 (14:11 +0100)]
formatting fixup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
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>
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>
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>
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>
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>
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>
Wolfgang Bumiller [Thu, 19 Mar 2020 10:07:25 +0000 (11:07 +0100)]
formatting fixups
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
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>
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>
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>
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>
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>
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>
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>
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>
Wolfgang Bumiller [Thu, 5 Mar 2020 09:46:18 +0000 (10:46 +0100)]
ignore testdir
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
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>
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>
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>
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>
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>
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>
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>
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>
Wolfgang Bumiller [Thu, 20 Feb 2020 11:21:18 +0000 (12:21 +0100)]
documentation
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
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>
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>
Wolfgang Bumiller [Thu, 20 Feb 2020 10:16:35 +0000 (11:16 +0100)]
cleanup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
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>
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>
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>
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>
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>
Wolfgang Bumiller [Thu, 23 Jan 2020 10:18:04 +0000 (11:18 +0100)]
import
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>