50a4797fb1 
					 
					
						
						
							
							api2/types/tape/media: add media_set_ctime to MediaContentEntry  
						
						... 
						
						
						
						to be able to better sort in the ui
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-02-02 14:45:54 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9883b54cba 
					 
					
						
						
							
							tape: remove drive from pool config  
						
						
						
						
					 
					
						2021-02-01 09:14:28 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b5b99a52cd 
					 
					
						
						
							
							tape: API type cleanup, use serde flatten to derive types  
						
						
						
						
					 
					
						2021-01-30 09:36:54 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9586ce2f46 
					 
					
						
						
							
							tape: move scan_drives API code to correct file  
						
						
						
						
					 
					
						2021-01-30 08:03:17 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c297835b01 
					 
					
						
						
							
							tape: proxmox-tape - use API instead of direct functions calls  
						
						
						
						
					 
					
						2021-01-29 11:49:11 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5243df4712 
					 
					
						
						
							
							tape: proxmox-tape - use API instead of direct functions calls  
						
						
						
						
					 
					
						2021-01-29 10:50:11 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1f2c4713ef 
					 
					
						
						
							
							tape: improve backup task abort behaviour  
						
						
						
						
					 
					
						2021-01-29 09:23:39 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						271764deb9 
					 
					
						
						
							
							tape: make it possible to abort tape backup tasks (check_abort)  
						
						... 
						
						
						
						Also use task_log makro instead of worker.log. 
						
						
					 
					
						2021-01-29 09:07:55 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						41dacd5d3d 
					 
					
						
						
							
							tape: use worker task for eject-media api  
						
						
						
						
					 
					
						2021-01-28 16:49:08 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						eb1dfb02b5 
					 
					
						
						
							
							tape: proxmox-tape - use api for erase-media and rewind  
						
						
						
						
					 
					
						2021-01-28 16:36:10 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						cef4654ff4 
					 
					
						
						
							
							api2/tape/drive: change methods of some api calls from put to get  
						
						... 
						
						
						
						makes more sense to have retrieving api calls as get instead of put
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-01-28 15:02:52 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f45dceeb73 
					 
					
						
						
							
							api2/tape/drive: add load_media as api call  
						
						... 
						
						
						
						code was already there, just add it as api call
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-01-28 15:02:13 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						18262a88c9 
					 
					
						
						
							
							api2/tape/changer: add changer filter to list_drives api call  
						
						... 
						
						
						
						so that an api user can get the drives belonging to a changer
without having to parse the config listing themselves
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-01-28 15:01:41 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d737adc6be 
					 
					
						
						
							
							tape: rename changer_drive_id to changer_drivenum  
						
						
						
						
					 
					
						2021-01-28 11:29:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5fdaecf6f4 
					 
					
						
						
							
							api2/tape/drive: reorganize drive api  
						
						... 
						
						
						
						similar to the changers, create a listing at /tape/drive and put
the specific api calls below that
move the scan api call up one level
remove the status info from the config listing
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-01-28 11:15:17 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d8792b88ef 
					 
					
						
						
							
							api2/types/tape/drive: add changer_drivenum  
						
						... 
						
						
						
						so that an api user can see which drive belongs to which drivenum of a changer
for ones with multiple drives
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-01-28 11:14:28 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						887f1cb90c 
					 
					
						
						
							
							cleanup: move scan changers API implementation  
						
						
						
						
					 
					
						2021-01-27 09:58:16 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						740dc9d1d4 
					 
					
						
						
							
							api2/tape/changer: reorganize api  
						
						... 
						
						
						
						add a changer listing here (copied from api2/config/changer)
and put the status and transfer api calls below that
puts the changer scan into the top level tape api
and removes the (now redundant) info from the config api path
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-01-26 12:47:34 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						697c41c584 
					 
					
						
						
							
							tape: add/use rust scsi changer implementation using libsgutil2  
						
						
						
						
					 
					
						2021-01-25 13:14:07 +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 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5f34d69bcc 
					 
					
						
						
							
							tape: add volume-statistics api/command  
						
						
						
						
					 
					
						2021-01-22 08:45:35 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8e6459a818 
					 
					
						
						
							
							tape: set encryption key on restore  
						
						
						
						
					 
					
						2021-01-22 07:26:42 +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 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						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 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8428063d9e 
					 
					
						
						
							
							cleanup: KeyConfig::decrypt - show password hint on error  
						
						
						
						
					 
					
						2021-01-21 10:31:49 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f490dda05a 
					 
					
						
						
							
							tape: use type Uuid instead of String  
						
						
						
						
					 
					
						2021-01-21 10:31:49 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						2b191385ea 
					 
					
						
						
							
							tape: use specialized encryption key per media-set  
						
						
						
						
					 
					
						2021-01-21 10:31:49 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d967d8f1a7 
					 
					
						
						
							
							clippy: remove drop(&..)  
						
						... 
						
						
						
						it does nothing.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-20 16:41:02 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0d2133db98 
					 
					
						
						
							
							clippy: use while let loops  
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-20 16:23:54 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6334bdc1c5 
					 
					
						
						
							
							clippy: collapse nested ifs  
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-20 16:23:54 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3b82f3eea5 
					 
					
						
						
							
							clippy: avoid useless format!  
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-20 16:23:54 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						38556bf60d 
					 
					
						
						
							
							clippy: remove explicit returns  
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-20 16:23:54 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3984a5fd77 
					 
					
						
						
							
							clippy: is_some/none/ok/err/empty  
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-20 16:23:54 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						397356096a 
					 
					
						
						
							
							clippy: remove needless bool literals  
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-20 16:23:52 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4428818412 
					 
					
						
						
							
							clippy: remove unnecessary clones  
						
						... 
						
						
						
						and from::<T>(T)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-20 16:22:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9a045790ed 
					 
					
						
						
							
							cleanup KeyConfig  
						
						
						
						
					 
					
						2021-01-20 15:43:19 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						82a103c8f9 
					 
					
						
						
							
							add "password hint" to KeyConfig  
						
						
						
						
					 
					
						2021-01-20 15:43:19 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						feb1645f37 
					 
					
						
						
							
							tape: generate random encryptions keys and store key_config on media  
						
						
						
						
					 
					
						2021-01-19 11:20:07 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8a0046f519 
					 
					
						
						
							
							tape: implement encrypted backup - simple version  
						
						... 
						
						
						
						This is just a proof of concept, only storing the encryption key fingerprint
inside the media-set label. 
						
						
					 
					
						2021-01-18 13:38:22 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d5a48b5ce4 
					 
					
						
						
							
							tape: add hardware encryption key managenent api  
						
						
						
						
					 
					
						2021-01-18 13:38:22 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						781da7f6f0 
					 
					
						
						
							
							tape: add --inventorize flag to read-label API/CLI  
						
						
						
						
					 
					
						2021-01-14 11:51:23 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8446fbca85 
					 
					
						
						
							
							tape: rename changer_id to label_text  
						
						
						
						
					 
					
						2021-01-13 13:26:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6543214dde 
					 
					
						
						
							
							tape: MediaListEntry - add ctime  
						
						
						
						
					 
					
						2021-01-12 12:01:21 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5654d8ceba 
					 
					
						
						
							
							tape: make eject/export more reliable, improve logging  
						
						
						
						
					 
					
						2021-01-12 09:16:16 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						31cf625af5 
					 
					
						
						
							
							tape: improve backup logs  
						
						
						
						
					 
					
						2021-01-11 13:23:12 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6638c034d2 
					 
					
						
						
							
							tape: remove unused eject_on_unload method  
						
						
						
						
					 
					
						2021-01-10 16:20:18 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						483da89d03 
					 
					
						
						
							
							tape: improve export media to directly export from drive, add CLI  
						
						
						
						
					 
					
						2021-01-10 13:44:44 +01:00