8268c9d161 
					 
					
						
						
							
							fix overflow panic during upload  
						
						... 
						
						
						
						if *only* data chunks are registered (high chance during incremental
backup), then chunk_count might be one lower then upload_stat.count
because of the zero chunk being unconditionally uploaded but not used.
Thus when subtracting the two, an overflow would occur.
In general, don't let the client make the server panic, instead just set
duplicates to 0.
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com > 
						
						
					 
					
						2020-06-24 09:07:22 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b91b7d9ffd 
					 
					
						
						
							
							api2/node/disks/zfs: check if default zfs mount path exists  
						
						... 
						
						
						
						and if it does bail, because otherwise we would get an
error on mounting and have a zpool that is not imported
and disks that are used
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-24 07:22:39 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6e1f0c138f 
					 
					
						
						
							
							ui: fix missing deleteEmpty on SyncJobEdit  
						
						... 
						
						
						
						else we cannot delete those fields
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-24 07:21:59 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8567c0d29c 
					 
					
						
						
							
							ui: add pxar FileBrowser  
						
						... 
						
						
						
						for unencrypted backups, enables browsing the pxar archives and
downloading single files from it
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-24 07:21:33 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d33d8f4e6a 
					 
					
						
						
							
							api2/admin/datastore: add pxar-file-download api call  
						
						... 
						
						
						
						streams a file from a pxar file of an unencrypted backup
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-24 07:21:15 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5b1cfa01f1 
					 
					
						
						
							
							api2/admin/datastore: add 'catalog' api call  
						
						... 
						
						
						
						returns the dir listing of the given filepath of the backup snapshot
the filepath has to be base64 encoded or 'root'
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-24 07:16:12 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						05d18b907a 
					 
					
						
						
							
							add From<&DirEntryAttribute to CatalogEntryType and make it pub(crate)  
						
						... 
						
						
						
						we want to get a string representation of the DirEntryAttribute
like 'f' for file, etc. and since we have such a mapping already
in the CatalogEntryType, use that
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-24 07:08:50 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e44fe0c9f5 
					 
					
						
						
							
							derive Clone for the LocalChunkReader  
						
						... 
						
						
						
						this will be necessary for accessing local pxar behind didx files
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-24 07:07:28 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4cf0ced950 
					 
					
						
						
							
							add LocalDynamicReadAt  
						
						... 
						
						
						
						mostly copied from BufferedDynamicReadAt from proxmox-backup-client
but the reader is wrapped in an Arc in addition to the Mutex
we will use this for local access to a pxar behind a didx file
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-24 07:05:31 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						98425309b0 
					 
					
						
						
							
							ui: add BackupFileDownloader  
						
						... 
						
						
						
						enables to be able to download whole files from the backup (e.g.
the decoded didx/fidx/blobs) for unencrypted backups
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-24 07:01:56 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7b1e26699d 
					 
					
						
						
							
							ui: fix sorting of backup snapshots  
						
						... 
						
						
						
						we have to sort the treestore not the original store where we get the data
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-24 07:01:09 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						676b0fde49 
					 
					
						
						
							
							ui: fix encrypted column  
						
						... 
						
						
						
						do not use two different gettexts for groups and single backups
and correct logic for backup groups
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-24 07:00:32 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						60f9a6ea8f 
					 
					
						
						
							
							src/backup/datastore.rs: add new helpers to load blobs and verify chunks  
						
						
						
						
					 
					
						2020-06-24 06:58:14 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1090fd4424 
					 
					
						
						
							
							src/backup/data_blob.rs: cleanup - improve code reuse  
						
						
						
						
					 
					
						2020-06-24 06:56:48 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						92c3fd2e22 
					 
					
						
						
							
							src/backup/chunk_store.rs: allow to read name()  
						
						... 
						
						
						
						This is helpful for logging ... 
						
						
					 
					
						2020-06-24 06:54:21 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e3efaa1972 
					 
					
						
						
							
							ui: fix undefined data for iodelay  
						
						... 
						
						
						
						if ios are 0 and io_ticks are defined, the io_delay is zero
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-23 11:40:08 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0cf2b6441e 
					 
					
						
						
							
							tests/prune.rs: fix compile error  
						
						
						
						
					 
					
						2020-06-23 11:32:53 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d6d3b353be 
					 
					
						
						
							
							cleanup: implement FromStr for BackupGroup  
						
						
						
						
					 
					
						2020-06-23 08:16:56 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a67f7d0a07 
					 
					
						
						
							
							cleanup: implement FromStr for BackupDir  
						
						
						
						
					 
					
						2020-06-23 08:09:52 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c8137518fe 
					 
					
						
						
							
							src/bin/proxmox_backup_manager/disk.rs: add renderer for wearout  
						
						... 
						
						
						
						So that we display the same value as the GUI. 
						
						
					 
					
						2020-06-23 07:44:09 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						cbef49bf4f 
					 
					
						
						
							
							remove absolute paths when executing binaries  
						
						... 
						
						
						
						we set the paths manually, so this is ok
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-23 07:09:06 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0b99e5aebc 
					 
					
						
						
							
							remove debug prints  
						
						... 
						
						
						
						Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-23 06:33:58 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						29c55e5fc4 
					 
					
						
						
							
							remove tokio:main from download-speed example  
						
						... 
						
						
						
						we use proxmox_backup::tools::runtime::main already
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-23 06:33:48 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f386f512d0 
					 
					
						
						
							
							add AsyncReaderStream  
						
						... 
						
						
						
						and replace AsyncIndexReader's stream implementation with that
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-23 06:33:31 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						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