tape: implement MediaPool flag to consider offline media
For standalone tape drives.
This commit is contained in:
		@ -81,7 +81,8 @@ pub async fn list_media(pool: Option<String>) -> Result<Vec<MediaListEntry>, Err
 | 
			
		||||
 | 
			
		||||
        let config: MediaPoolConfig = config.lookup("pool", pool_name)?;
 | 
			
		||||
 | 
			
		||||
        let pool = MediaPool::with_config(status_path, &config)?;
 | 
			
		||||
        let use_offline_media = true; // does not matter here
 | 
			
		||||
        let pool = MediaPool::with_config(status_path, &config, use_offline_media)?;
 | 
			
		||||
 | 
			
		||||
        let current_time = proxmox::tools::time::epoch_i64();
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user