driver/rados: treat OMAP EIO as a PathNotFoundError
RADOS returns a -EIO when trying to read a non-existing OMAP, treat it as a PathNotFoundError when trying to list a non existing virtual directory. Signed-off-by: Vincent Giersch <vincent@giersch.fr>master
							parent
							
								
									a889f46223
								
							
						
					
					
						commit
						f25ccea279
					
				| 
						 | 
					@ -404,7 +404,7 @@ func (d *driver) List(ctx context.Context, dirPath string) ([]string, error) {
 | 
				
			||||||
	files, err := d.listDirectoryOid(dirPath)
 | 
						files, err := d.listDirectoryOid(dirPath)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		return nil, err
 | 
							return nil, storagedriver.PathNotFoundError{Path: dirPath}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	keys := make([]string, 0, len(files))
 | 
						keys := make([]string, 0, len(files))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue