From 0b6ccea461a7dcc5599a6330082cf3ef18f960c4 Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Thu, 26 Oct 2023 14:27:19 +0800 Subject: [PATCH] Fix typos --- doc/030_preparing_a_new_repo.rst | 4 ++-- doc/040_backup.rst | 2 +- doc/045_working_with_repos.rst | 2 +- internal/fuse/file.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/030_preparing_a_new_repo.rst b/doc/030_preparing_a_new_repo.rst index d7d6c55b6..5ff26934a 100644 --- a/doc/030_preparing_a_new_repo.rst +++ b/doc/030_preparing_a_new_repo.rst @@ -331,7 +331,7 @@ Wasabi ************ `Wasabi `__ is a low cost Amazon S3 conformant object storage provider. -Due to it's S3 conformance, Wasabi can be used as a storage provider for a restic repository. +Due to its S3 conformance, Wasabi can be used as a storage provider for a restic repository. - Create a Wasabi bucket using the `Wasabi Console `__. - Determine the correct Wasabi service URL for your bucket `here `__. @@ -822,7 +822,7 @@ To make this work we can employ the help of the ``setgid`` permission bit available on Linux and most other Unix systems. This permission bit makes newly created directories inherit both the group owner (gid) and setgid bit from the parent directory. Setting this bit requires root but since it -propagates down to any new directories we only have to do this priviledged +propagates down to any new directories we only have to do this privileged setup once: .. code-block:: console diff --git a/doc/040_backup.rst b/doc/040_backup.rst index a3b280476..c917c3c29 100644 --- a/doc/040_backup.rst +++ b/doc/040_backup.rst @@ -146,7 +146,7 @@ change detection rule based on file metadata to determine whether a file is likely unchanged since a previous backup. If it is, the file is not scanned again. -The previous backup snapshot, called "parent" snaphot in restic terminology, +The previous backup snapshot, called "parent" snapshot in restic terminology, is determined as follows. By default restic groups snapshots by hostname and backup paths, and then selects the latest snapshot in the group that matches the current backup. You can change the selection criteria using the diff --git a/doc/045_working_with_repos.rst b/doc/045_working_with_repos.rst index 55f17bfc9..3f6b1090e 100644 --- a/doc/045_working_with_repos.rst +++ b/doc/045_working_with_repos.rst @@ -337,7 +337,7 @@ over 5 separate invocations: $ restic -r /srv/restic-repo check --read-data-subset=4/5 $ restic -r /srv/restic-repo check --read-data-subset=5/5 -Use ``--read-data-subset=x%`` to check a randomly choosen subset of the +Use ``--read-data-subset=x%`` to check a randomly chosen subset of the repository pack files. It takes one parameter, ``x``, the percentage of pack files to check as an integer or floating point number. This will not guarantee to cover all available pack files after sufficient runs, but it is diff --git a/internal/fuse/file.go b/internal/fuse/file.go index aec39273a..2fedf30bf 100644 --- a/internal/fuse/file.go +++ b/internal/fuse/file.go @@ -143,7 +143,7 @@ func (f *openFile) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.R // the methods being called are responsible for appropriate synchronization. // // However, no lock needed here as getBlobAt can be called conurrently - // (blobCache has it's own locking) + // (blobCache has its own locking) for i := startContent; remainingBytes > 0 && i < len(f.cumsize)-1; i++ { blob, err := f.getBlobAt(ctx, i) if err != nil {