77486a608e 
					 
					
						
						
							
							pxar: factor out PxarCreateOptions  
						
						... 
						
						
						
						containing the CLI parameters that are mostly passed-through from the
client to our pxar archive creation wrapper in pxar::create
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-26 09:54:32 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e97025ab02 
					 
					
						
						
							
							pxar: typedef on_error as ErrorHandler  
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-26 09:54:26 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e43b9175c0 
					 
					
						
						
							
							client: factor out UploadOptions  
						
						... 
						
						
						
						to reduce function signature complexity.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-26 09:54:18 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9cc1415ef5 
					 
					
						
						
							
							systemd/time: extract Time/DateSpec structs  
						
						... 
						
						
						
						could be pulled up into CalendarEvent if desired..
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-26 09:54:13 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						bd215dc0e4 
					 
					
						
						
							
							async index reader: typedef ReadFuture  
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-26 09:53:58 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						12e874cef0 
					 
					
						
						
							
							allow complex Futures in tower_service impl  
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-26 09:53:55 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6d233161b0 
					 
					
						
						
							
							client: refactor catalog upload spawning  
						
						... 
						
						
						
						by pulling out Result type into separate struct
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-26 09:53:51 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						905a570489 
					 
					
						
						
							
							broadcast_future: refactor broadcast/future binding  
						
						... 
						
						
						
						into its own, private struct.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-26 09:53:48 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						432fe44187 
					 
					
						
						
							
							report: type-alias function call tuple  
						
						... 
						
						
						
						to make clippy happy.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-26 09:53:43 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						51b938496d 
					 
					
						
						
							
							tools::sgutils2: name fixup  
						
						... 
						
						
						
						it's not a box anymore
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-01-25 15:05:52 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b7f9b25e4d 
					 
					
						
						
							
							tools::sgutils2: use NonNull  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-01-25 14:56:10 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						fe61280b6b 
					 
					
						
						
							
							tools::sgutils2: extern 'C' and import ordering  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-01-25 14:54:25 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						68c087d578 
					 
					
						
						
							
							tools::sgutils2: don't transmute to a Box  
						
						... 
						
						
						
						Otherwise we run the drop handler for the scsi pt object AND
the box itself, which shouldn't even work as it should be
doing a double-free (unless the library does some kind of
reference counting in which case this should simply crash
later on?)
anyway, let's make a wrapper simply called `SgPt` containing
the pointer from `construct_scsi_pt_obj()`
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-01-25 14:48:27 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d6bf87cab7 
					 
					
						
						
							
							tools::sgutils2: const correctness  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-01-25 14:33:45 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						2b96a43879 
					 
					
						
						
							
							tape: cleanup - use ScsiMediaChange trait instead of mtx_status()  
						
						
						
						
					 
					
						2021-01-25 13:25:22 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						697c41c584 
					 
					
						
						
							
							tape: add/use rust scsi changer implementation using libsgutil2  
						
						
						
						
					 
					
						2021-01-25 13:14:07 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a2379996e6 
					 
					
						
						
							
							sgutils2: add scsi_inquiry command  
						
						
						
						
					 
					
						2021-01-25 13:14:07 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						29077d95db 
					 
					
						
						
							
							http-client: further clippy cleanups  
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com >
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-01-25 11:41:54 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						dbd00a57b0 
					 
					
						
						
							
							http-client: fix typoed ticket cache condition  
						
						... 
						
						
						
						which was even copy-pasted once without noticing.
found with clippy.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com >
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-01-25 11:41:51 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d08cff51a4 
					 
					
						
						
							
							rework GC traversal error handling  
						
						... 
						
						
						
						the error message don't make sense with an empty default
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com >
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-01-25 11:41:48 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3e461dec1c 
					 
					
						
						
							
							apt: let api handle optional bool with default  
						
						... 
						
						
						
						one less FIXME :)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com >
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-01-25 11:41:46 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4d08e25913 
					 
					
						
						
							
							clippy: rewrite ifs with identical return values  
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com >
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-01-25 11:41:43 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						43313c2ee7 
					 
					
						
						
							
							clippy: rewrite comparison chains  
						
						... 
						
						
						
						chunk_stream one can be collapsed, since split == split_to with at set
to buffer.len() anyway.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com >
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-01-25 11:41:39 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						81b2a87232 
					 
					
						
						
							
							clippy: fix Mutex with unused value  
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com >
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-01-25 11:41:36 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3d8cd0ced7 
					 
					
						
						
							
							clippy: add is_empty() when len() is implemented  
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com >
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-01-25 11:41:32 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7c78d54231 
					 
					
						
						
							
							sgutils: allow command which does not transfer any data  
						
						
						
						
					 
					
						2021-01-24 15:19:43 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f9d71e8b17 
					 
					
						
						
							
							sgutils2: allow to set custom timeouts  
						
						
						
						
					 
					
						2021-01-24 14:54:30 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0107fd323c 
					 
					
						
						
							
							cleanup: avoid compiler warnings  
						
						
						
						
					 
					
						2021-01-23 17:34:26 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						979dccc7ec 
					 
					
						
						
							
							tape: avoid error when clearing encryption key  
						
						... 
						
						
						
						Simply ignore clear request when sg_spin_data_encryption_caps fails.
Assume those are tapes without hardware encryption support. 
						
						
					 
					
						2021-01-23 10:20:43 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						bf78f70885 
					 
					
						
						
							
							improve code docs in api2  
						
						... 
						
						
						
						Note: API methos should be declared pub, so that they show up in the generated docu. 
						
						
					 
					
						2021-01-22 15:57:42 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0d916ac531 
					 
					
						
						
							
							tape: add media pool config code docs  
						
						
						
						
					 
					
						2021-01-22 12:01:46 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d4ab407045 
					 
					
						
						
							
							tape: add drive config code docs  
						
						
						
						
					 
					
						2021-01-22 11:51:36 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						45212a8c78 
					 
					
						
						
							
							fix mtx parser bug: s/strip_suffix/strip_prefix/  
						
						
						
						
					 
					
						2021-01-22 11:00:56 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						64b83c3d70 
					 
					
						
						
							
							tape: implement paperkey command for tape encryption keys  
						
						
						
						
					 
					
						2021-01-22 09:56:14 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						639a6782bd 
					 
					
						
						
							
							paperkey: move code to src/tools/paperkey.rs  
						
						
						
						
					 
					
						2021-01-22 09:42:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5f34d69bcc 
					 
					
						
						
							
							tape: add volume-statistics api/command  
						
						
						
						
					 
					
						2021-01-22 08:45:35 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						337ff5a3cc 
					 
					
						
						
							
							tape: add estimated medium wearout to status  
						
						
						
						
					 
					
						2021-01-22 08:06:25 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8e6459a818 
					 
					
						
						
							
							tape: set encryption key on restore  
						
						
						
						
					 
					
						2021-01-22 07:26:42 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						aff3e16194 
					 
					
						
						
							
							tape: add code docs to src/config/tape_encryption_keys.rs  
						
						
						
						
					 
					
						2021-01-21 18:23:07 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9372c0787d 
					 
					
						
						
							
							renamed src/tape/sgutils2.rs -> src/tools/sgutils2.rs  
						
						
						
						
					 
					
						2021-01-21 17:57:17 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						83fb2da53e 
					 
					
						
						
							
							tape: move MediaCatalog magic number into struct (doc cleanup)  
						
						
						
						
					 
					
						2021-01-21 17:48:07 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						645a044bf6 
					 
					
						
						
							
							tape: further hierarchy improvements  
						
						
						
						
					 
					
						2021-01-21 17:25:32 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						37796ff73f 
					 
					
						
						
							
							tape: change code hierarchy to improve docs  
						
						
						
						
					 
					
						2021-01-21 17:12:01 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e1fdcb1678 
					 
					
						
						
							
							tape: do not export/doc low level libsgutils2 bindings  
						
						
						
						
					 
					
						2021-01-21 16:38:24 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						edda5039d4 
					 
					
						
						
							
							tape: improve code docs  
						
						
						
						
					 
					
						2021-01-21 13:19:07 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1c86893d95 
					 
					
						
						
							
							cleanup: always compute fingerprint in KeyConfig constructors  
						
						
						
						
					 
					
						2021-01-21 11:56:54 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d543587d34 
					 
					
						
						
							
							Merge branch 'master' of ssh://proxdev.maurer-it.com/rust/proxmox-backup  
						
						
						
						
					 
					
						2021-01-21 10:56:52 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						780bc4cad2 
					 
					
						
						
							
							tape: try to set encryption key with read-label command  
						
						
						
						
					 
					
						2021-01-21 10:31:49 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						18bd6ba13d 
					 
					
						
						
							
							tape: restore_key - always update key, even if there is already an entry  
						
						
						
						
					 
					
						2021-01-21 10:31:49 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4dafc513cc 
					 
					
						
						
							
							tape: fix file permissions for tape encryptiuon keys  
						
						
						
						
					 
					
						2021-01-21 10:31:49 +01:00