Files
moby/daemon
Sebastiaan van Stijn e55897977c daemon/graphdriver: simplify Checker, remove NewFsChecker, NewDefaultChecker
The Checker interface was introduced in 1ba05cdb6a
as an optimization to allow passing a simplified check for situations that
don't require mountinfo.Mounted to be executed (as that may result in parsing
 `/proc/self/mountinfo`).

The Checker was defined as an interface with a single `IsMounted` method,
possibly with the intent to allow for additional kind of checks to be added.
No new additions were made since its inception 9 Years ago, and if a need would
arrive, could probably be implemented as part of the check.

This patch simplifies the definition to a function, removing the need to
implement a wrapper struct just to satisfy the interface. The `Checker`
type definition is somewhat redundant, but is kept to have a place to
provide GoDoc.

The `NewFsChecker` and `NewDefaultChecker` utilities are removed as part
of this change, favoring a local definition for storage-drivers that
used them.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-07-01 19:15:26 +02:00
..
2024-06-27 23:18:47 +02:00
2024-06-27 23:18:47 +02:00
2024-05-24 21:32:18 +00:00
2024-06-30 19:13:23 +02:00
2023-11-10 20:09:25 +00:00
2023-10-26 00:10:23 +01:00
2023-09-07 18:38:19 +00:00
2023-05-19 20:38:51 +02:00
2024-06-27 23:18:47 +02:00
2024-06-13 14:59:54 +02:00
2023-05-19 20:38:51 +02:00
2024-06-14 15:25:07 +02:00
2023-05-19 20:38:51 +02:00
2024-06-27 23:18:47 +02:00
2024-06-14 15:25:07 +02:00
2023-05-19 20:38:51 +02:00