3ddb14889a 
					 
					
						
						
							
							src/tools/daemon.rs: reopen STDOUT/STDERR journald streams to get correct PID in logs  
						
						
						
						
					 
					
						2020-06-22 13:06:53 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						00c2327564 
					 
					
						
						
							
							bump pxar dep to 0.1.8  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2020-06-22 11:10:22 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d79926795a 
					 
					
						
						
							
							debian/postinst: use try-reload-or-restart for both services  
						
						
						
						
					 
					
						2020-06-22 10:59:13 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c08fac4d69 
					 
					
						
						
							
							tools::daemon: sync with child after MainPid message  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2020-06-22 10:58:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c40440092d 
					 
					
						
						
							
							tools: add socketpair helper  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2020-06-22 10:49:56 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						dc2ef2b54f 
					 
					
						
						
							
							tools::daemon: fetch exe name in the beginning  
						
						... 
						
						
						
						We get the path to our executable via a readlink() on
"/proc/self/exe", which appends a " (deleted)" during
package reloads.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2020-06-22 10:31:54 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b28253d650 
					 
					
						
						
							
							try to reload proxmox-backup-proxy on package upgrade  
						
						
						
						
					 
					
						2020-06-22 09:39:37 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f28cfb322a 
					 
					
						
						
							
							avoid compiler warnings  
						
						
						
						
					 
					
						2020-06-20 07:24:02 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3bbe291c51 
					 
					
						
						
							
							zpool_status.rs - indented_list_to_tree: do not set name property  
						
						... 
						
						
						
						This is no necessary. We only touch/set 'children' and 'leaf' properties. 
						
						
					 
					
						2020-06-20 07:19:25 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						42d19fdf69 
					 
					
						
						
							
							src/api2/node/disks/zfs.rs: always set pool name  
						
						
						
						
					 
					
						2020-06-20 07:15:32 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						215968e033 
					 
					
						
						
							
							src/tools/disks/zpool_status.rs: add 'leaf' attribute to root node, rename 'prev' into 'parent'  
						
						
						
						
					 
					
						2020-06-20 06:49:06 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						eddd1a1b9c 
					 
					
						
						
							
							src/tools/disks/zpool_status.rs: move use clause top of file  
						
						
						
						
					 
					
						2020-06-20 06:17:22 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d2ce211899 
					 
					
						
						
							
							fixup for previous commit  
						
						
						
						
					 
					
						2020-06-20 06:15:26 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1cb46c6f65 
					 
					
						
						
							
							src/tools/disks/zpool_status.rs - cleanup: use struct StackItem instead of tuple  
						
						
						
						
					 
					
						2020-06-19 18:58:57 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5d88c3a1c8 
					 
					
						
						
							
							src/tools/disks/zpool_status.rs: remove unnecessary checks  
						
						... 
						
						
						
						Thos things can never happen, so simply use unwrap(). 
						
						
					 
					
						2020-06-19 18:27:39 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						07fb504943 
					 
					
						
						
							
							src/tools/disks/zpool_status.rs: simplify code by using serde_json::to_value  
						
						
						
						
					 
					
						2020-06-19 17:51:13 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f675c5e978 
					 
					
						
						
							
							src/tools/disks/zpool_status.rs - add all attributes to the tree  
						
						
						
						
					 
					
						2020-06-19 16:55:28 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4e37d9ce67 
					 
					
						
						
							
							add general indented_list_to_tree implementation  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2020-06-19 14:37:40 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e303077132 
					 
					
						
						
							
							lru_cache: restrict and annotate Send impl  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2020-06-19 09:37:34 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6ef9bb59eb 
					 
					
						
						
							
							api2/admin/datastore: add download-decoded endpoint  
						
						... 
						
						
						
						similar to 'download', but streams the decoded file
when it is not encrypted
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-19 08:39:15 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						eeaa2c212b 
					 
					
						
						
							
							impl Sync for DataBlobReader  
						
						... 
						
						
						
						this is safe for the reason explained in the comment
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-19 08:37:47 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4a3adc3de8 
					 
					
						
						
							
							add AsyncIndexReader  
						
						... 
						
						
						
						implements AsyncRead as well as Stream for an IndexFile and a store
that implements AsyncReadChunk
we can use this to asyncread or stream the content of a FixedIndex or
DynamicIndex
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-19 08:32:33 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						abdb976340 
					 
					
						
						
							
							add Display trait to BackupDir  
						
						... 
						
						
						
						Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-19 08:28:35 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3b62116ce6 
					 
					
						
						
							
							implement AsyncReadChunk for LocalChunkReader  
						
						... 
						
						
						
						same as the sync ReadChunk but uses tokio::fs::read instead
of file_get_contents
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-19 07:54:23 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e005f953d9 
					 
					
						
						
							
							ui: add encryption info to snapshot list  
						
						... 
						
						
						
						show which backups/files are encrypted in the snapshot list
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-19 07:43:10 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1c090810f5 
					 
					
						
						
							
							api2/admin/datastore/snapshos: show encrypted and size info per file  
						
						... 
						
						
						
						Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-19 07:39:56 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e181d2f6da 
					 
					
						
						
							
							add encrypted info to Manifest  
						
						... 
						
						
						
						we want to save if a file of a backup is encrypted, so that we can
* show that info on the gui
* can later decide if we need to decrypt the backup
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-19 07:35:39 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						16021f6ab7 
					 
					
						
						
							
							use the existing async method for read_raw_chunk  
						
						... 
						
						
						
						does the same, except the manual drop, but thats handled there by
letting the value go out of scope
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-19 07:23:17 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						ba694720fc 
					 
					
						
						
							
							api2/admin/datastore: log stream error during file download  
						
						... 
						
						
						
						the client cannot get an error during an chunked http transfer, so at
least log it server side
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-19 06:58:55 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						bde8e243cf 
					 
					
						
						
							
							remove unsafe copy code  
						
						... 
						
						
						
						copy_nonoverlapping is basically a memcpy which can also be done
via copy_from_slice which is not unsafe
(copy_from_slice uses copy_nonoverlapping internally)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-19 06:56:15 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3352ee5656 
					 
					
						
						
							
							parse_zpool_status_field: handle tabs without copying input  
						
						
						
						
					 
					
						2020-06-18 19:40:01 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b29cbc414d 
					 
					
						
						
							
							parse_zpool_status_vdev: consider tabs as 8 spaces  
						
						
						
						
					 
					
						2020-06-18 18:38:56 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						026dc1d11f 
					 
					
						
						
							
							src/api2/node/disks/zfs.rs: add zpool_details api  
						
						
						
						
					 
					
						2020-06-18 15:04:46 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9438aca6c9 
					 
					
						
						
							
							src/tools/disks/zpool_status.rs: improve parser  
						
						
						
						
					 
					
						2020-06-18 14:55:22 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						547f0c97e4 
					 
					
						
						
							
							src/tools/nom.rs: new helper parse_complete_line() for single line parsers  
						
						... 
						
						
						
						Like parse_complete(), but generates simpler error messages. 
						
						
					 
					
						2020-06-18 12:57:55 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						177a2de992 
					 
					
						
						
							
							src/tools/nom.rs: move nom helpers into separate file  
						
						
						
						
					 
					
						2020-06-18 12:41:13 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0686b1f4db 
					 
					
						
						
							
							src/tools/disks/zpool_list.rs: split code into separate file  
						
						
						
						
					 
					
						2020-06-18 10:31:07 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0727e56a06 
					 
					
						
						
							
							src/tools/disks/zpool_status.rs: parse zpool status output  
						
						
						
						
					 
					
						2020-06-18 10:23:15 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						2fd3d57490 
					 
					
						
						
							
							src/tools/disks/zfs.rs: rename ZFSPoolStatus into ZFSPoolInfo, fix error message  
						
						
						
						
					 
					
						2020-06-17 09:08:26 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3f851d1321 
					 
					
						
						
							
							src/api2/node/disks/directory.rs: add early check if disk is unused  
						
						
						
						
					 
					
						2020-06-17 08:31:11 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1aef491e24 
					 
					
						
						
							
							src/bin/proxmox_backup_manager/disk.rs: add cli to create mounted disks  
						
						
						
						
					 
					
						2020-06-17 08:07:54 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d0eccae37d 
					 
					
						
						
							
							avoid compiler warning  
						
						
						
						
					 
					
						2020-06-17 08:07:42 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a34154d900 
					 
					
						
						
							
							src/tools/disks/zfs.rs: cleanup parse_pool_header  
						
						
						
						
					 
					
						2020-06-17 07:47:11 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c2cc32b4dd 
					 
					
						
						
							
							src/tools/disks/zfs.rs: add more parser tests  
						
						
						
						
					 
					
						2020-06-17 07:38:19 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						46405fa35d 
					 
					
						
						
							
							src/tools/disks/zfs.rs: add comment  
						
						
						
						
					 
					
						2020-06-17 07:14:26 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						66af7f51bc 
					 
					
						
						
							
							src/tools/disks/zfs.rs: make zfs list parser private  
						
						
						
						
					 
					
						2020-06-17 07:00:54 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c72ccd4e33 
					 
					
						
						
							
							src/tools/disks/zfs.rs: add regression tests for parse_zfs_list  
						
						
						
						
					 
					
						2020-06-16 18:14:35 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						902b2cc278 
					 
					
						
						
							
							src/tools/disks/zfs.rs: simplify code  
						
						
						
						
					 
					
						2020-06-16 17:51:17 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8ecd7c9c21 
					 
					
						
						
							
							move api dump binaries back to src/bin for package building  
						
						... 
						
						
						
						they're required for docs
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2020-06-16 14:48:01 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7f17f7444a 
					 
					
						
						
							
							ui: add DiskList and DirectoryList  
						
						... 
						
						
						
						this also contains an adapted CreateDirectory window
for now this is mostly copied, since refactoring was not that
straightforward (changed parameters, etc.)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-16 13:36:32 +02:00