2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-22 02:48:55 +00:00
restic/changelog
Sébastien Gross f7587be28f mount: detect mountpoint does not exist before opening the repository
Bug #1681 suggests that restic should not be nice to user and should
refrain from creating a mountpoint if it does not exist. Nevertheless,
it currently opens the repository before checking for the mountpoint's
existence. In the case of large or remote repositories, this process
can be time-consuming, delaying the inevitable outcome.

    /restic mount --repo=REMOTE --verbose /tmp/backup
    repository 33f14e42 opened (version 2, compression level max)
    [0:38] 100.00%  162 / 162 index files loaded
    Mountpoint /tmp/backup doesn't exist
    stat /tmp/backup: no such file or directory

    real	0m39.534s
    user	1m53.961s
    sys	0m3.044s

In this scenario, 40 seconds could have been saved if the nonexistence
of the path had been verified beforehand.

This patch relocates the mountpoint check to the beginning of the
runMount function, preceding the opening of the repository.

    /restic mount --repo=REMOTE --verbose /tmp/backup
    Mountpoint /tmp/backup doesn't exist
    stat /tmp/backup: no such file or directory

    real	0m0.136s
    user	0m0.018s
    sys	0m0.027s

Signed-off-by: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>
2023-12-24 11:54:18 +01:00
..
0.6.0_2017-05-29 Update changelog/ for new version of calens 2018-02-16 23:05:58 +01:00
0.6.1_2017-06-01 Update changelog/ for new version of calens 2018-02-16 23:05:58 +01:00
0.7.0_2017-07-01 Update changelog/ for new version of calens 2018-02-16 23:05:58 +01:00
0.7.1_2017-07-22 Fix typo in changelog 2021-08-21 12:16:04 +02:00
0.7.2_2017-09-13 Update changelog/ for new version of calens 2018-02-16 23:05:58 +01:00
0.7.3_2017-09-20 Update changelog/ for new version of calens 2018-02-16 23:05:58 +01:00
0.8.0_2017-11-26 Fix typos 2023-12-06 13:11:55 +01:00
0.8.1_2017-12-27 Update changelog/ for new version of calens 2018-02-16 23:05:58 +01:00
0.8.2_2018-02-17 Move changelog typo fixes to changelog files 2023-12-23 14:05:47 +01:00
0.8.3_2018-02-26 Fix typos 2023-12-06 13:11:55 +01:00
0.9.0_2018-05-21 Fix typos 2023-12-06 13:11:55 +01:00
0.9.1_2018-06-10 Fix changelog entry 2018-06-10 11:29:57 +02:00
0.9.2_2018-08-06 Create changelog/ release subdir for 0.9.2 2018-08-06 21:28:16 +02:00
0.9.3_2018-10-13 Fix typos 2023-12-06 13:11:55 +01:00
0.9.4_2019-01-06 Create changelog dir for 0.9.4 2019-01-06 21:39:56 +01:00
0.9.5_2019-04-23 Move changelog entry for #2179 2019-11-24 15:15:19 +01:00
0.9.6_2019-11-22 Fix typos 2023-12-06 13:11:55 +01:00
0.10.0_2020-09-19 Move changelog typo fixes to changelog files 2023-12-23 14:05:47 +01:00
0.11.0_2020-11-05 Move changelog typo fixes to changelog files 2023-12-23 14:05:47 +01:00
0.12.0_2021-02-14 Fix typos 2023-12-06 13:11:55 +01:00
0.12.1_2021-08-03 Prepare changelog for 0.12.1 2021-08-03 11:45:19 +02:00
0.13.0_2022-03-26 Prepare changelog for 0.13.0 2022-03-26 20:09:39 +01:00
0.14.0_2022-08-25 doc: Correct two typos 2023-10-27 19:48:00 +02:00
0.15.0_2023-01-12 Prepare changelog for 0.15.0 2023-01-12 20:50:44 +01:00
0.15.1_2023-01-30 Prepare changelog for 0.15.1 2023-01-30 20:43:15 +01:00
0.15.2_2023-04-24 Prepare changelog for 0.15.2 2023-04-24 20:28:24 +02:00
0.16.0_2023-07-31 Prepare changelog for 0.16.0 2023-07-31 20:22:50 +02:00
0.16.1_2023-10-24 Prepare changelog for 0.16.1 2023-10-24 20:02:29 +02:00
0.16.2_2023-10-29 Prepare changelog for 0.16.2 2023-10-29 19:50:04 +01:00
unreleased mount: detect mountpoint does not exist before opening the repository 2023-12-24 11:54:18 +01:00
changelog-github.tmpl Fix linebreak in GitHub changelog template 2018-02-26 21:41:37 +01:00
CHANGELOG.tmpl Fix template for new version of calens 2020-01-01 11:58:21 +01:00
TEMPLATE Extend style guide in changelog template 2023-07-29 12:55:56 +02:00