Dietmar Maurer
|
e3f41f2165
|
src/tools/daemon.rs: use new ServerState handler
|
2019-04-08 14:00:23 +02:00 |
Dietmar Maurer
|
7a630df709
|
implement server state/signal handling, depend on tokio-signal
|
2019-04-08 13:59:07 +02:00 |
Dietmar Maurer
|
5a12c0e2fb
|
src/api2/node/tasks.rs: start upid API
|
2019-04-07 14:36:57 +02:00 |
Dietmar Maurer
|
b75b968147
|
src/server/worker_task.rs: implement is_active()
|
2019-04-07 14:36:25 +02:00 |
Dietmar Maurer
|
4494d07819
|
src/server/worker_task.rs: make log_path a method on UPID
|
2019-04-07 13:51:46 +02:00 |
Dietmar Maurer
|
d2a2e02bb7
|
src/api2/node/tasks.rs: implement userfilter
|
2019-04-07 13:17:19 +02:00 |
Dietmar Maurer
|
3c3bee2e32
|
src/api2/node/tasks.rs: correctly handle start parameter
|
2019-04-07 12:41:24 +02:00 |
Dietmar Maurer
|
063ca5be77
|
src/api2/node/tasks.rs: implement list_tasks
|
2019-04-07 12:18:58 +02:00 |
Dietmar Maurer
|
d4b59ae0b8
|
src/backup/datastore.rs: pass WorkerTask to GC
So that we can log to the task log file.
|
2019-04-06 17:57:38 +02:00 |
Dietmar Maurer
|
35950380a9
|
src/server/worker_task.rs: carefully handle file permissions
|
2019-04-06 17:53:12 +02:00 |
Dietmar Maurer
|
1619a72063
|
src/tools.rs: implement create_dir_chown
Combinded mkdir with chown.
|
2019-04-06 16:50:23 +02:00 |
Dietmar Maurer
|
eea8131952
|
src/tools.rs: implement file_set_contents_full()
|
2019-04-06 13:53:43 +02:00 |
Dietmar Maurer
|
0f778e0652
|
src/api2/admin/datastore.rs: use new WorkerTask::new_thread()
|
2019-04-06 11:27:23 +02:00 |
Dietmar Maurer
|
244abab769
|
src/tools/file_logger.rs: fix test
|
2019-04-06 11:24:37 +02:00 |
Dietmar Maurer
|
660c684640
|
src/server/worker_task.rs: return upid_str
|
2019-04-06 11:23:53 +02:00 |
Dietmar Maurer
|
93aebb38bc
|
src/server/worker_task.rs: implement read_task_list()
|
2019-04-06 10:17:11 +02:00 |
Dietmar Maurer
|
4a36a2c999
|
src/server/worker_task.rs: improve UPID format description
|
2019-04-06 09:36:50 +02:00 |
Dietmar Maurer
|
882594c5e9
|
src/server.rs: improve crate layout
|
2019-04-06 09:17:25 +02:00 |
Dietmar Maurer
|
4b01c983f0
|
src/server/worker_task.rs: implement persistent task list
|
2019-04-05 12:37:35 +02:00 |
Christian Ebner
|
a2474d328f
|
src/tools/procfs.rs: implement read_proc_uptime and read_proc_uptime_ticks
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
|
2019-04-05 06:22:21 +02:00 |
Christian Ebner
|
08daa81af6
|
procfs: implement check_process_running and check_process_running_pstart
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
|
2019-04-04 13:54:17 +02:00 |
Dietmar Maurer
|
9a0d0ff774
|
server/worker_task.rs: implement UPID parser
|
2019-04-04 13:49:35 +02:00 |
Dietmar Maurer
|
49cf9f3d0b
|
src/tools.rs: file_get_json() - add new default parameter
|
2019-04-04 12:24:18 +02:00 |
Dietmar Maurer
|
79ad7b7ec2
|
src/tools/procfs.rs: split regex into several lines
|
2019-04-04 09:25:19 +02:00 |
Dietmar Maurer
|
479f6e40ec
|
src/server/worker_task.rs: implement task registry
|
2019-04-04 08:58:39 +02:00 |
Dietmar Maurer
|
52ddc2522d
|
src/tools/procfs.rs: use libc::pid_t
|
2019-04-04 08:05:43 +02:00 |
Dietmar Maurer
|
d3d7ab1273
|
src/tools/file_logger.rs: new - accept AsRef<Path>
|
2019-04-03 14:13:33 +02:00 |
Dietmar Maurer
|
3c2012f97a
|
src/tools/procfs.rs: start helper tools to read procfs
|
2019-04-03 13:39:20 +02:00 |
Dietmar Maurer
|
3489936ebb
|
src/tools/file_logger.rs: change timestamp format to rfc3339
|
2019-04-03 08:58:43 +02:00 |
Dietmar Maurer
|
92da93b245
|
abort GC on server shutdown
|
2019-04-01 12:13:02 +02:00 |
Dietmar Maurer
|
9136f857cc
|
add global var to indicate server shutdown requests
|
2019-04-01 12:05:11 +02:00 |
Dietmar Maurer
|
3e6a7deeaa
|
src/api2/admin/datastore.rs: start GC in a separate thread
|
2019-04-01 12:02:46 +02:00 |
Dietmar Maurer
|
ad281d1bd9
|
www/DataStoreConfig.js: add button to start GC
|
2019-04-01 08:08:34 +02:00 |
Dietmar Maurer
|
49d123ee3a
|
src/server/rest.rs: use formatter to encode errors
|
2019-04-01 08:04:12 +02:00 |
Dietmar Maurer
|
7d4ef127cb
|
src/server/rest.rs: generate csrf token if we have a valid ticket
This is important if the user reloads the browser page.
|
2019-04-01 07:52:30 +02:00 |
Dietmar Maurer
|
11861a482d
|
src/backup/chunk_store.rs: fix GC
Added option to get oldest_writer timestamp from ProcessLocker.
|
2019-03-31 17:21:36 +02:00 |
Dietmar Maurer
|
d85987aeeb
|
fix last commit: the filename var was not ment to be removed, sorry
|
2019-03-31 16:16:14 +02:00 |
Dietmar Maurer
|
15a77c4c2e
|
src/backup/chunk_store.rs: avoid create/unlink race
|
2019-03-31 10:03:01 +02:00 |
Dietmar Maurer
|
c374f05499
|
src/backup.rs: improve GC problem description
|
2019-03-31 09:44:35 +02:00 |
Dietmar Maurer
|
c8ec450e37
|
src/backup.rs: start explaining different GC algorithm
|
2019-03-30 17:21:40 +01:00 |
Dietmar Maurer
|
8a4757342c
|
src/backup.rs: describe the garbage collection problem
|
2019-03-30 16:26:52 +01:00 |
Dietmar Maurer
|
10eea49d81
|
src/backup/fixed_index.rs: store reference to file
Keep it open and locked while index is in use.
|
2019-03-27 10:17:03 +01:00 |
Dietmar Maurer
|
c597a92c81
|
index file readers: aquire shared lock
|
2019-03-27 10:11:14 +01:00 |
Dietmar Maurer
|
0465218953
|
src/backup.rs: add documentation about ChunkStore locking
|
2019-03-22 10:14:50 +01:00 |
Dietmar Maurer
|
43b1303398
|
datastore: use new ProcessLocker
To make sure only one process runs garbage collection while having active writers.
|
2019-03-22 09:42:15 +01:00 |
Dietmar Maurer
|
abfc001f25
|
src/tools/process_locker.rs: new() - use generic path parameter
|
2019-03-22 09:41:32 +01:00 |
Dietmar Maurer
|
a650f50301
|
src/tools/process_locker.rs: implement inter-process reader-writer locks
|
2019-03-22 08:05:51 +01:00 |
Wolfgang Bumiller
|
eb90c9e372
|
tools: style fixup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
|
2019-03-20 09:57:13 +01:00 |
Christian Ebner
|
e04d1bfadc
|
Cleanup of if statement with unwraps by a more compact match statement
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
|
2019-03-20 09:49:18 +01:00 |
Dietmar Maurer
|
8346f0d59b
|
src/server/rest.rs: correctly extract content type
|
2019-03-19 12:50:15 +01:00 |