moby/integration/volume
Sebastiaan van Stijn 01fd23b625
Fix volume CreatedAt being altered on initialization
The CreatedAt date was determined from the volume's `_data`
directory (`/var/lib/docker/volumes/<volumename>/_data`).
However, when initializing a volume, this directory is updated,
causing the date to change.

Instead of using the `_data` directory, use its parent directory,
which is not updated afterwards, and should reflect the time that
the volume was created.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2023-01-03 16:57:04 +01:00
..
main_test.go testutil: make testing packages public 2019-09-11 07:47:23 -05:00
volume_test.go Fix volume CreatedAt being altered on initialization 2023-01-03 16:57:04 +01:00