Skip to content

Conversation

@thaJeztah
Copy link
Contributor

@thaJeztah thaJeztah commented Dec 4, 2025

DetermineDeviceStorage was introduced in 1fb7f23 and returns rootfsStorageDir, zfsFilesystem, zfsParent.

But the PodMan implementation added in fea8256 assigns them to rootfsStorageDir, zfsParent, zfsFilesystem, so the zfsParent and zfsFilesystem being reversed.

I'm not sure how to best verify this, but from the looks of it, that's a bug, so updating the code to assign the right values.

func determineDeviceStorage(storageDriver docker.StorageDriver, storageDir string, rwLayerID string) (
rootfsStorageDir string, zfsFilesystem string, zfsParent string, err error) {

func DetermineDeviceStorage(storageDriver StorageDriver, storageDir string, rwLayerID string) (
rootfsStorageDir string, zfsFilesystem string, zfsParent string, err error) {

`DetermineDeviceStorage` was introduced in 1fb7f23
and returns `rootfsStorageDir, zfsFilesystem, zfsParent`.

But the PodMan implementation added in fea8256
assigns them to `rootfsStorageDir, zfsParent, zfsFilesystem`, so the `zfsParent`
and `zfsFilesystem` being reversed.

I'm not sure how to best verify this, but from the looks of it, that's a bug,
so updating the code to assign the right values.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah
Copy link
Contributor Author

@haircommander @dgrisonnet ptal 🤗

@haircommander
Copy link
Contributor

whoop, good catch
LGTM

@dims dims merged commit 558703b into google:master Dec 4, 2025
7 checks passed
@thaJeztah thaJeztah deleted the fix_podman_zfs branch December 4, 2025 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants