Mainly to merge fixes for #19467 into the main branch.

Fixes: #19467
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
Valentin Rothberg
2023-08-23 10:47:41 +02:00
parent 7bd60867de
commit e092f887fe
12 changed files with 37 additions and 48 deletions

View File

@@ -675,8 +675,7 @@ func (d *Driver) Exists(id string) bool {
// List all of the layers known to the driver.
func (d *Driver) ListLayers() ([]string, error) {
subvolumesDir := filepath.Join(d.home, "subvolumes")
entries, err := os.ReadDir(subvolumesDir)
entries, err := os.ReadDir(d.subvolumesDir())
if err != nil {
return nil, err
}