396fd747a6 
					 
					
						
						
							
							tape: impl access permissions for tape jobs  
						
						
						
						
					 
					
						2021-03-03 12:48:06 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8cd63df0dc 
					 
					
						
						
							
							tape: impl api permissions for drive/changer/pool configuration  
						
						
						
						
					 
					
						2021-03-03 12:10:00 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8bf5769382 
					 
					
						
						
							
							api2/tape/drive: add state to DriveListEntry  
						
						... 
						
						
						
						Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-03-02 12:51:19 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1d14c31658 
					 
					
						
						
							
							Revert "tape: also abort backup/restore on server shutdown"  
						
						... 
						
						
						
						This reverts commit 9bd81bb384 
						
						
					 
					
						2021-03-02 08:00:10 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9bd81bb384 
					 
					
						
						
							
							tape: also abort backup/restore on server shutdown  
						
						
						
						
					 
					
						2021-03-02 07:19:31 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1552d9699c 
					 
					
						
						
							
							tape: add 'Restore Key' button  
						
						
						
						
					 
					
						2021-03-01 11:11:38 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						16f9ea6708 
					 
					
						
						
							
							tape: restore - do not check if pool is configured  
						
						
						
						
					 
					
						2021-03-01 09:43:23 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						955f4aefcd 
					 
					
						
						
							
							tape: show media inventory/content, even if there is no pool configuration  
						
						
						
						
					 
					
						2021-03-01 09:21:11 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						08ec39be0c 
					 
					
						
						
							
							tape: add api to set media status  
						
						
						
						
					 
					
						2021-02-26 10:44:07 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5830e5620d 
					 
					
						
						
							
							tape: cleanup TapeJob implementation - uses AllOf Schema with SectionConfig  
						
						
						
						
					 
					
						2021-02-25 09:44:31 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0dadf66dc7 
					 
					
						
						
							
							tape: implement backup using latest-only flag  
						
						
						
						
					 
					
						2021-02-24 13:51:53 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						86d9f4e733 
					 
					
						
						
							
							tape: extend MediaChange trait to return MtxStatus  
						
						
						
						
					 
					
						2021-02-20 10:23:16 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3f16f1b006 
					 
					
						
						
							
							tape: update changer status inside ScsiMediaChange implementation  
						
						
						
						
					 
					
						2021-02-20 09:56:27 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						cbd9899389 
					 
					
						
						
							
							tape: update changer status cache after load/unload  
						
						
						
						
					 
					
						2021-02-20 09:06:17 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4188fd59a0 
					 
					
						
						
							
							tape: cache changer state  
						
						
						
						
					 
					
						2021-02-19 16:48:19 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						926d05ef0b 
					 
					
						
						
							
							api2/tape/{backup, restore}, proxmox-tape: set device state  
						
						... 
						
						
						
						set the drive device state everywhere we lock it, so that we
know what it currently does
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-02-19 10:16:30 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8be48ddfc7 
					 
					
						
						
							
							api2/tape/changer: add drive state to changer status output  
						
						... 
						
						
						
						if we can find the drive in the config and it has a state
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-02-19 10:15:15 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						41e66bfaf6 
					 
					
						
						
							
							api2/tape/drive: wrap some api calls in run_drive_blocking_task  
						
						... 
						
						
						
						those calls could also block, so we have to run them in a blocking
tokio task, as to not block the current thread
nice side effect is that we now also update the state for that
drive in those instances
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-02-19 10:14:08 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						47a7241410 
					 
					
						
						
							
							api2/tape/drive: use run_drive_blocking_task where possible  
						
						... 
						
						
						
						Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-02-19 10:13:36 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						54c77b3d62 
					 
					
						
						
							
							api2/tape/drive: add wrapper for tokio::task::spawn_blocking  
						
						... 
						
						
						
						similar to the worker wrapper, lock, write status, run code, unset status
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-02-19 10:13:21 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a1c5575308 
					 
					
						
						
							
							api2/tape/drive: use 'run_drive_worker' where possible  
						
						... 
						
						
						
						Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-02-19 10:11:04 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a44c934b5d 
					 
					
						
						
							
							api2/tape/drive: add run_drive_worker wrapper  
						
						... 
						
						
						
						a wrapper for locking, starting the worker and writing the state
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-02-19 10:08:27 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7690a8e7bd 
					 
					
						
						
							
							api: list tape backup jobs with scheduling status  
						
						
						
						
					 
					
						2021-02-19 09:02:13 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9bbd83b1f2 
					 
					
						
						
							
							tape: media_list API - allow to update online status for a single changer  
						
						
						
						
					 
					
						2021-02-18 10:59:33 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d0647e5a02 
					 
					
						
						
							
							tape: use worker tasks for media load/unload  
						
						
						
						
					 
					
						2021-02-18 09:04:51 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3cdd1a3424 
					 
					
						
						
							
							tape: erase_media - automatically load media (with tape libraries).  
						
						
						
						
					 
					
						2021-02-17 06:55:53 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						be61c56c21 
					 
					
						
						
							
							api2/tape/drive: add optional label-text to erase  
						
						... 
						
						
						
						if given, erases the tape only iff the inserted tape contains that label
used to safeguard tape erasing from ui for standalone drives
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-02-17 06:55:53 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						159100b944 
					 
					
						
						
							
							tape: ui - avoid changer status query in backup content panel  
						
						
						
						
					 
					
						2021-02-15 12:17:36 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						41a8db3576 
					 
					
						
						
							
							tape: implement API to run tape backup jobs  
						
						
						
						
					 
					
						2021-02-15 11:09:30 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8513626b9f 
					 
					
						
						
							
							proxmox-backup-proxy: schedule tape backup jobs  
						
						
						
						
					 
					
						2021-02-15 08:30:42 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7b1bf4c098 
					 
					
						
						
							
							tape: erase_media - automatically erase catalog and inventory  
						
						
						
						
					 
					
						2021-02-12 11:30:34 +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 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						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 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						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 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						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