d9bd06eae8 
					 
					
						
						
							
							src/api2/admin/datastore/h2upload.rs: use WorkerTask  
						
						
						
						
					 
					
						2019-05-07 13:42:00 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						52cf506e48 
					 
					
						
						
							
							src/api2/admin/datastore/h2upload.rs: implement async test api call  
						
						
						
						
					 
					
						2019-05-07 12:26:55 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						92ac375aff 
					 
					
						
						
							
							src/api2/admin/datastore/h2upload.rs: improve http2 service  
						
						
						
						
					 
					
						2019-05-07 11:24:44 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						78f7e225e4 
					 
					
						
						
							
							src/server/rest.rs: make handle_(a)sync_api_request public  
						
						
						
						
					 
					
						2019-05-07 11:23:52 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						75097495ad 
					 
					
						
						
							
							RestEnvironment: derive Clone  
						
						
						
						
					 
					
						2019-05-07 11:09:18 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						01bf3b7b5f 
					 
					
						
						
							
							move find_method to Router class  
						
						
						
						
					 
					
						2019-05-07 11:08:30 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3578d99f3e 
					 
					
						
						
							
							move normalize_path to tools::normalize_uri_path  
						
						
						
						
					 
					
						2019-05-07 09:44:34 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						96e95fc179 
					 
					
						
						
							
							src/api2/admin/datastore/h2upload.rs: test if version < 2  
						
						... 
						
						
						
						We can only upgrade http 1.x connections. 
						
						
					 
					
						2019-05-06 10:29:34 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						45cdce069e 
					 
					
						
						
							
							src/client/http_client.rs: request password at creation time  
						
						
						
						
					 
					
						2019-04-30 11:44:35 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e45afdff9c 
					 
					
						
						
							
							src/server/state.rs: use new BroadcastData helper  
						
						
						
						
					 
					
						2019-04-30 10:21:48 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						824b5ee4ee 
					 
					
						
						
							
							src/tools/broadcast_future.rs: cleanup, decompose into two classes  
						
						... 
						
						
						
						In order to make it more usable. 
						
						
					 
					
						2019-04-30 08:57:20 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d82ed9b0f5 
					 
					
						
						
							
							tools: add AsyncMutex  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-04-29 14:19:03 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3a9bea3918 
					 
					
						
						
							
							src/bin/h2test.rs: test h2 upgrade  
						
						
						
						
					 
					
						2019-04-29 11:59:18 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						cf639a47de 
					 
					
						
						
							
							rc/client/http_client.rs: add experimental h2 upgrade code  
						
						
						
						
					 
					
						2019-04-29 11:57:58 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5a2df00004 
					 
					
						
						
							
							src/client/http_client.rs: cleanup, make login fully async  
						
						
						
						
					 
					
						2019-04-28 10:55:03 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3dceb9b304 
					 
					
						
						
							
							src/tools/broadcast_future.rs: add new constructor new_oneshot()  
						
						... 
						
						
						
						To simplify usage. Also added a test case. 
						
						
					 
					
						2019-04-27 10:56:49 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						152764ec15 
					 
					
						
						
							
							src/api2/admin/datastore/h2upload.rs: add test code for http2  
						
						
						
						
					 
					
						2019-04-27 08:57:35 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						490be29ed6 
					 
					
						
						
							
							src/tools/broadcast_future.rs: new helper class  
						
						
						
						
					 
					
						2019-04-26 17:57:57 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e888155712 
					 
					
						
						
							
							proxy: allow .key/.pem files instead of a pkcs12/.pfx file  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-04-26 10:47:33 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8b7c0def84 
					 
					
						
						
							
							src/tools/procfs.rs: clean up tab indentation and use whitespaces instead  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-04-25 13:14:52 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5e5eed5c3b 
					 
					
						
						
							
							use double-fork for reload  
						
						... 
						
						
						
						To ensure the new process' parent is pid 1, so systemd won't
complain about supervising a process it does not own.
Fixes the following log spam on reloads:
Apr 25 10:50:54 deb-dev systemd[1]: proxmox-backup.service: Supervising process 1625 which is not our child. We'll most likely not notice when it exits.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-04-25 11:02:12 +00:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						efd1536eb7 
					 
					
						
						
							
							add a wrapper around nix::unistd::pipe2  
						
						... 
						
						
						
						Using O_CLOEXEC by default, and returning Fd handles to
ensure they get dropped on bail!() or panic!() if the RawFds
aren't used yet.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-04-25 11:02:12 +00:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						897982e237 
					 
					
						
						
							
							tools: add read/write convenience helpers  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-04-25 11:02:12 +00:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d98c9a7a38 
					 
					
						
						
							
							use service Type=notify  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-04-25 11:01:33 +00:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9c351a36c4 
					 
					
						
						
							
							tools/daemon: add sd_notify wrapper  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-04-25 11:01:28 +00:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d8871f2f18 
					 
					
						
						
							
							src/tools/procfs.rs: avoid useless allocations  
						
						
						
						
					 
					
						2019-04-24 09:35:15 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						ae694f44ef 
					 
					
						
						
							
							src/tools/procfs.rs: add tests for read_proc_net_route() and read_proc_net_ipv6_route()  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-04-24 06:43:52 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						ec8db837fb 
					 
					
						
						
							
							src/tools/procfs.rs: refactor read_proc_net_route() and read_proc_net_ipv6_route()  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-04-24 06:43:32 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						eb46c3d1ec 
					 
					
						
						
							
							src/tools/procfs.rs: implement read_proc_net_ipv6_route()  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-04-23 14:31:23 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6358b68236 
					 
					
						
						
							
							cleanup: avoid compiler warnings  
						
						
						
						
					 
					
						2019-04-23 12:17:24 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e06ffb10d1 
					 
					
						
						
							
							src/api_schema/router.rs: fix typo (subdira -> subdir)  
						
						
						
						
					 
					
						2019-04-16 12:20:17 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						13f1cc17ea 
					 
					
						
						
							
							src/api_schema/router.rs: implement list_subdirs() helper  
						
						
						
						
					 
					
						2019-04-16 12:07:02 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						062d4916ff 
					 
					
						
						
							
							api_schema: allow generic api handler functions  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-04-16 11:22:23 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						286f0d4099 
					 
					
						
						
							
							src/tools/procfs.rs: implement read_proc_net_route()  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-04-15 11:13:16 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1a6c9415ae 
					 
					
						
						
							
							src/api2/node/services.rs: add proxmox-backup-proxy service  
						
						
						
						
					 
					
						2019-04-15 09:48:02 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						75bc49bed7 
					 
					
						
						
							
							src/server/worker_task.rs: implement abort channel  
						
						
						
						
					 
					
						2019-04-15 09:38:05 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						912524752e 
					 
					
						
						
							
							src/api2/admin/datastore/pxar.rs: create worker task for file upload  
						
						
						
						
					 
					
						2019-04-15 08:38:14 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1be71fb02b 
					 
					
						
						
							
							src/server/worker_task.rs_ do not write ERROR: prefix into task index  
						
						
						
						
					 
					
						2019-04-15 08:37:13 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						418def7a78 
					 
					
						
						
							
							src/server/worker_task.rs: move common code into log_result  
						
						... 
						
						
						
						Make new() pub 
						
						
					 
					
						2019-04-15 07:49:03 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						37b87869b5 
					 
					
						
						
							
							src/server/upid.rs: check for illegal characters  
						
						
						
						
					 
					
						2019-04-15 07:47:51 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d2981e2738 
					 
					
						
						
							
							src/tools/procfs.rs: implement read_proc_net_dev()  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-04-13 11:52:59 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						13abfdc57a 
					 
					
						
						
							
							src/tools/procfs.rs: implement read_memory_usage()  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-04-13 11:52:01 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3005ef48b6 
					 
					
						
						
							
							src/tools/procfs.rs: Rename variable and struct to be more consistent  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-04-12 12:13:34 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						cc93bacb72 
					 
					
						
						
							
							src/tools/procfs.rs: simplify read_cpuinfo()  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-04-12 12:13:14 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f2b99c34f7 
					 
					
						
						
							
							src/api2/admin/datastore.rs: implement API to return last GC status  
						
						
						
						
					 
					
						2019-04-11 12:04:25 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						59961b8954 
					 
					
						
						
							
							src/server/command_socket.rs: check control socket permissions  
						
						
						
						
					 
					
						2019-04-11 10:51:59 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						ba70040dbf 
					 
					
						
						
							
							src/server/worker_task.rs: change task list sort order - latest on top  
						
						
						
						
					 
					
						2019-04-11 09:43:33 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d3f4c08f33 
					 
					
						
						
							
							src/server/worker_task.rs: catch panics in worker threads  
						
						
						
						
					 
					
						2019-04-11 07:56:06 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						620dccf1a1 
					 
					
						
						
							
							tools/daemon: dup the TcpListener file descriptor  
						
						... 
						
						
						
						Now that we let hyper shutdown gracefully we need an owned
version of the listening socket to prevent it from closing
before running the reload preparations.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-04-10 15:20:10 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d96bb7f163 
					 
					
						
						
							
							tools: add Fd helper  
						
						... 
						
						
						
						stores a raw file descriptor with a drop handler for
safekeeping in closures
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-04-10 15:20:10 +02:00