Martin Czygan
5de9278650
fs/cache: make sure we call the Shutdown method on backends
...
This change ensures we call the Shutdown method on backends when
they drop out of the fs/cache and at program exit.
Some backends implement the optional fs.Shutdowner interface. Until now,
Shutdown is only checked and called, when a backend is wrapped (e.g.
crypt, compress, ...).
To have a general way to perform operations at the end of the backend
lifecycle with proper error handling, we can call Shutdown at cache
clear time.
We add a finalize hook to the cache which will be called when values
drop out of the cache.
Previous discussion: https://forum.rclone.org/t/31336
2022-06-28 12:51:59 +01:00
..
2022-05-13 12:08:10 +01:00
2021-11-01 21:00:27 +03:00
2021-03-14 16:03:35 +00:00
2022-06-21 23:43:00 +02:00
2021-11-07 11:53:30 +00:00
2021-11-07 11:53:30 +00:00
2021-10-20 22:56:19 +02:00
2022-06-21 23:43:00 +02:00
2021-10-20 22:56:19 +02:00
2020-09-08 16:26:09 +01:00
2022-06-16 22:13:50 +01:00
2022-06-23 23:26:02 +02:00
2022-06-21 23:43:00 +02:00
2022-06-21 23:43:00 +02:00
2022-06-20 12:06:09 +01:00
2022-06-21 23:43:00 +02:00
2022-06-23 23:26:02 +02:00
2022-06-21 23:43:00 +02:00
2022-06-21 23:43:00 +02:00
2021-11-07 11:53:30 +00:00
2022-06-21 23:43:00 +02:00
2022-05-17 11:08:37 +01:00
2022-06-21 23:43:00 +02:00
2021-04-07 13:58:37 +01:00
2022-06-21 23:43:00 +02:00
2021-11-04 12:50:43 +01:00
2022-06-21 23:43:00 +02:00
2022-06-23 23:26:02 +02:00
2022-06-21 23:43:00 +02:00
2019-10-14 17:02:09 +01:00
2022-06-21 23:43:00 +02:00
2020-07-08 17:55:58 +01:00
2022-06-23 23:26:02 +02:00
2022-02-09 11:56:43 +00:00
2022-06-23 23:26:02 +02:00
2022-06-21 23:43:00 +02:00
2022-06-21 23:43:00 +02:00
2022-06-21 23:43:00 +02:00
2022-06-21 23:43:00 +02:00
2022-06-21 23:43:00 +02:00
2022-06-23 23:26:02 +02:00
2022-06-21 23:43:00 +02:00
2021-03-11 17:12:14 +00:00
2019-10-14 17:02:09 +01:00
2022-06-21 23:43:00 +02:00
2022-06-21 23:43:00 +02:00
2022-06-13 21:13:50 +02:00
2022-06-23 23:26:02 +02:00
2022-06-23 23:26:02 +02:00
2022-06-21 23:43:00 +02:00
2022-04-26 19:37:15 +02:00
2022-06-21 23:43:00 +02:00
2022-06-16 22:13:50 +01:00
2022-01-28 20:29:12 +01:00
2022-06-23 23:26:02 +02:00
2021-11-07 11:53:30 +00:00
2022-06-28 12:51:59 +01:00
2022-01-28 19:43:51 +01:00
2020-12-27 15:40:44 +00:00
2021-09-09 20:43:59 +03:00
2021-09-09 20:43:59 +03:00
2021-09-09 20:43:59 +03:00
2021-09-09 20:43:59 +03:00