Dietmar Maurer
|
03841f08ba
|
add_config: use correct size
We want to store the size of the encoded blob in the index.
|
2019-10-02 11:34:57 +02:00 |
|
Dietmar Maurer
|
df85507d5b
|
remove stale comment
|
2019-09-30 12:38:03 +02:00 |
|
Dietmar Maurer
|
a58c91f0e6
|
ChunkUploadInfo: add chunk_is_known flag
To avoid unnecessary locking...
|
2019-09-30 11:26:21 +02:00 |
|
Dietmar Maurer
|
5f0adbd55e
|
cleanup: use tokio::sync::{mpsc, oneshot};
|
2019-09-29 11:30:57 +02:00 |
|
Dietmar Maurer
|
711e28e51e
|
src/upload_queue.rs: new helper create_upload_queue()
|
2019-09-29 11:21:50 +02:00 |
|
Dietmar Maurer
|
13586d6452
|
src/upload_queue.rs: split upload_handler into extra file
|
2019-09-29 11:08:02 +02:00 |
|
Dietmar Maurer
|
22058d9a02
|
cleanup: use TryFutureExt (for .map_err())
|
2019-09-29 10:57:23 +02:00 |
|
Dietmar Maurer
|
2caede3c76
|
improve upload queue error handling
|
2019-09-29 10:40:19 +02:00 |
|
Dietmar Maurer
|
251571854d
|
speedup chunk upload
|
2019-09-28 18:27:03 +02:00 |
|
Dietmar Maurer
|
54f17651db
|
add resonable connect parameters
|
2019-09-27 11:49:57 +02:00 |
|
Dietmar Maurer
|
e79c467767
|
move async command implementation to commands.rs
|
2019-09-24 12:15:57 +02:00 |
|
Dietmar Maurer
|
7eea11fae4
|
move BackupMessage into capi_types.rs
|
2019-09-24 11:27:54 +02:00 |
|
Dietmar Maurer
|
070dc02497
|
spli C-API from rest of the code
|
2019-09-24 11:22:12 +02:00 |
|
Dietmar Maurer
|
c7077bb3ae
|
src/capi_types.rs: slip types for C api into separate file
|
2019-09-24 11:08:58 +02:00 |
|
Dietmar Maurer
|
da74982148
|
rename BackupRepository into BackupSetup
|
2019-09-24 11:01:40 +02:00 |
|
Dietmar Maurer
|
534da1d4a4
|
pass known_chunks as argument (no need to store inside ImageUploadInfo)
|
2019-09-24 10:31:14 +02:00 |
|
Dietmar Maurer
|
249ec8ae0c
|
upload index.json
|
2019-09-24 10:25:14 +02:00 |
|
Dietmar Maurer
|
c00eaa4c79
|
compute index checksum, simplify code
|
2019-09-23 13:13:17 +02:00 |
|
Dietmar Maurer
|
0c78e6d873
|
implement add_config
|
2019-09-22 11:13:06 +02:00 |
|
Dietmar Maurer
|
8768cbbc66
|
implement proxmox_backup_finish_async()
|
2019-09-21 16:15:28 +02:00 |
|
Dietmar Maurer
|
1402fea34b
|
proxmox_backup_abort: use *const char
|
2019-09-21 15:56:26 +02:00 |
|
Dietmar Maurer
|
64100fed29
|
handle known chunks
|
2019-09-21 15:45:21 +02:00 |
|
Dietmar Maurer
|
d50d567b9b
|
cleanup
|
2019-09-21 15:32:55 +02:00 |
|
Dietmar Maurer
|
6881178b8d
|
factor out register_zero_chunk
|
2019-09-21 15:28:25 +02:00 |
|
Dietmar Maurer
|
527c723910
|
minor cleanup
|
2019-09-21 15:20:00 +02:00 |
|
Dietmar Maurer
|
c737c4e93d
|
upload and use zero sized chunk
|
2019-09-21 11:12:33 +02:00 |
|
Dietmar Maurer
|
0d1c79f3a4
|
computer zero chunk digest at register_image
|
2019-09-21 10:47:34 +02:00 |
|
Dietmar Maurer
|
375b4efd09
|
add chunk_size configuration
|
2019-09-21 10:34:39 +02:00 |
|
Dietmar Maurer
|
c2610a6183
|
implement image registry, implement close image
|
2019-09-21 10:24:24 +02:00 |
|
Dietmar Maurer
|
3c46500c25
|
pass client to command implementation
|
2019-09-19 10:07:53 +02:00 |
|
Dietmar Maurer
|
6d7c570448
|
cleanup
|
2019-09-18 13:56:29 +02:00 |
|
Dietmar Maurer
|
8926ee01d2
|
handle abort in proxmox_backup_register_image()
|
2019-09-18 13:52:27 +02:00 |
|
Dietmar Maurer
|
49cbfea475
|
add register_image prototype
|
2019-09-18 13:50:02 +02:00 |
|
Dietmar Maurer
|
6c18a82b97
|
record abort reason, handle abort in write_data
|
2019-09-18 11:37:17 +02:00 |
|
Dietmar Maurer
|
e65c4eb2a9
|
limit number of threads
|
2019-09-17 17:20:49 +02:00 |
|
Dietmar Maurer
|
6780c3ca79
|
cleanup
|
2019-09-17 17:13:59 +02:00 |
|
Dietmar Maurer
|
1b23a2ce54
|
use threadpool runtime
|
2019-09-17 17:02:58 +02:00 |
|
Dietmar Maurer
|
726708dd5d
|
implement abort
|
2019-09-17 13:46:38 +02:00 |
|
Dietmar Maurer
|
20f9ab37c2
|
start error handling
|
2019-09-16 13:44:47 +02:00 |
|
Dietmar Maurer
|
d325ffe484
|
gather/return some statistics
|
2019-09-15 09:20:08 +02:00 |
|
Dietmar Maurer
|
209346837e
|
add dev_id to write callback
|
2019-09-15 09:05:24 +02:00 |
|
Dietmar Maurer
|
5fdacca684
|
create -dev package, fix .install file names
|
2019-09-13 12:37:27 +02:00 |
|
Dietmar Maurer
|
253746c5ec
|
connectly install .so file, set soname
|
2019-09-13 11:59:41 +02:00 |
|
Dietmar Maurer
|
7790106693
|
install dynamic lib (instead of static)
Which is much smaller.
|
2019-09-13 10:11:22 +02:00 |
|
Dietmar Maurer
|
8a87c49160
|
use std::sync::mpsc::channel
We cannoit use tokio here, because there is no runtime in the calling thread.
|
2019-09-13 09:57:34 +02:00 |
|
Dietmar Maurer
|
3458ddc112
|
add a simple test program
|
2019-09-13 09:57:01 +02:00 |
|
Dietmar Maurer
|
14a98631c9
|
add more debug messages
|
2019-09-12 14:26:31 +02:00 |
|
Dietmar Maurer
|
99ebe8c690
|
use opaque type for handle, use reasonable names
|
2019-09-11 14:49:43 +02:00 |
|
Dietmar Maurer
|
734da1f499
|
create debian package
|
2019-09-11 12:59:56 +02:00 |
|
Dietmar Maurer
|
520976457d
|
also create staticlib
|
2019-09-11 11:03:23 +02:00 |
|