42200c405a 
					 
					
						
						
							
							fix api sort order  
						
						
						
						
					 
					
						2021-02-15 06:35:45 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						be327dbccd 
					 
					
						
						
							
							tape: add tape backup job configuration  
						
						
						
						
					 
					
						2021-02-14 10:35:51 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7b1bf4c098 
					 
					
						
						
							
							tape: erase_media - automatically erase catalog and inventory  
						
						
						
						
					 
					
						2021-02-12 11:30:34 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7c9fb570cc 
					 
					
						
						
							
							api2/types/tape/media_location: fix deserialization of MediaLocation::Vault  
						
						... 
						
						
						
						Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-02-11 14:23:54 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						56d22c66c0 
					 
					
						
						
							
							api2/tape/media: add 'move' api call  
						
						... 
						
						
						
						Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-02-11 14:23:27 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8f02db04f9 
					 
					
						
						
							
							docs: use new type_text option for calendar events  
						
						
						
						
					 
					
						2021-02-11 11:51:22 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7f9d8438ab 
					 
					
						
						
							
							tfa: derive WebauthnConfigUpdater via api macro  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-02-10 10:47:47 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						afcf8b3ed6 
					 
					
						
						
							
							api2/tape/drive: add missing locks for some drive actions  
						
						... 
						
						
						
						else a backup/restore can easily be disrupted
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-02-09 08:46:03 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						42c0f784e2 
					 
					
						
						
							
							key: add show-master-pubkey command  
						
						... 
						
						
						
						and print public key when generating/importing..
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-02-06 08:55:21 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						25aa55b5f5 
					 
					
						
						
							
							tape: correctly lock the tape device  
						
						
						
						
					 
					
						2021-02-05 10:50:21 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						cdf39e62b3 
					 
					
						
						
							
							tape: MediaPool - replace use_offline_media with changer_name  
						
						... 
						
						
						
						This way, we can improve location_is_available, because we only
consider media from that changer as available. 
						
						
					 
					
						2021-02-04 10:15:18 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f47e035721 
					 
					
						
						
							
							tape: cleanup - move tape file readers/writers into src/tape/file_formats folder  
						
						
						
						
					 
					
						2021-02-04 07:59:37 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a80d72f999 
					 
					
						
						
							
							tape: allow to abort restore tasks  
						
						
						
						
					 
					
						2021-02-04 07:05:43 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8de9a9917f 
					 
					
						
						
							
							cleanup: use task_log macro  
						
						
						
						
					 
					
						2021-02-04 06:55:18 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						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 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d0f11b66f7 
					 
					
						
						
							
							thape: add read_tapedev_options, display driver options with status command  
						
						
						
						
					 
					
						2021-02-02 06:40:40 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6248e51797 
					 
					
						
						
							
							change half-ticket time range from -120..240 to  -60..600  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-02-01 15:13:11 +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 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						bdb6e6b83f 
					 
					
						
						
							
							api2/reader: asyncify the reader worker task  
						
						... 
						
						
						
						this way, the code is much more readable
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-01-29 06:59:25 +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 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						bdb62b20a3 
					 
					
						
						
							
							tape: media_pool config api - set protected flags where required  
						
						
						
						
					 
					
						2021-01-28 15:42:32 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						627d000098 
					 
					
						
						
							
							tape: change changer-drive-id to changer-drivenum  
						
						... 
						
						
						
						because it changed in the config
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-01-28 15:11:22 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b03ec281bf 
					 
					
						
						
							
							api2/config/{drive, changer}: prevent adding same device multiple times  
						
						... 
						
						
						
						this check is not perfect since there are often multiple device
nodes per drive/changer, but from the scan api we should return always
the same, so for an api user this should be enough
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-01-28 15:03:56 +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 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						bbf01b644c 
					 
					
						
						
							
							tape: fix typos  
						
						... 
						
						
						
						Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-01-26 12:39:54 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						367c0ff7c6 
					 
					
						
						
							
							clippy: allow api functions with many arguments  
						
						... 
						
						
						
						some of those can be reduced/cleaned up when we have updater support in
the api macro.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-26 09:54:52 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9c26a3d61a 
					 
					
						
						
							
							verify: factor out common parameters  
						
						... 
						
						
						
						all the verify methods pass along the following:
- task worker
- datastore
- corrupt and verified chunks
might as well pull that out into a common type, with the added bonus of
now having a single point for construction instead of copying the
default capacaties in three different modules..
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-26 09:54:49 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						93e3581ce7 
					 
					
						
						
							
							derive/impl and use Default for some structs  
						
						... 
						
						
						
						and revamp HttpClientOptions with two constructors for the common use
cases
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-26 09:54:45 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f4e52bb27d 
					 
					
						
						
							
							authid: make Tokenname(Ref) derive Eq  
						
						... 
						
						
						
						it's needed to derive Hash, and we always compare Authids or their
Userid components, never just the Tokenname part anyway..
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-26 09:54:40 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						697c41c584 
					 
					
						
						
							
							tape: add/use rust scsi changer implementation using libsgutil2  
						
						
						
						
					 
					
						2021-01-25 13:14:07 +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 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						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