backup: Fix typos and grammar

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
This commit is contained in:
Aaron Lauterer 2020-07-21 11:54:36 +02:00 committed by Thomas Lamprecht
parent 8314ca9c10
commit faa8e6948a

View File

@ -40,21 +40,21 @@
//! //!
//! Acquire shared lock for ChunkStore (process wide). //! Acquire shared lock for ChunkStore (process wide).
//! //!
//! Note: When creating .idx files, we create temporary (.tmp) file, //! Note: When creating .idx files, we create temporary a (.tmp) file,
//! then do an atomic rename ... //! then do an atomic rename ...
//! //!
//! //!
//! * Garbage Collect: //! * Garbage Collect:
//! //!
//! Acquire exclusive lock for ChunkStore (process wide). If we have //! Acquire exclusive lock for ChunkStore (process wide). If we have
//! already an shared lock for ChunkStore, try to updraged that //! already a shared lock for the ChunkStore, try to upgrade that
//! lock. //! lock.
//! //!
//! //!
//! * Server Restart //! * Server Restart
//! //!
//! Try to abort running garbage collection to release exclusive //! Try to abort the running garbage collection to release exclusive
//! ChunkStore lock asap. Start new service with existing listening //! ChunkStore locks ASAP. Start the new service with the existing listening
//! socket. //! socket.
//! //!
//! //!
@ -62,10 +62,10 @@
//! //!
//! Deleting backups is as easy as deleting the corresponding .idx //! Deleting backups is as easy as deleting the corresponding .idx
//! files. Unfortunately, this does not free up any storage, because //! files. Unfortunately, this does not free up any storage, because
//! those files just contains references to chunks. //! those files just contain references to chunks.
//! //!
//! To free up some storage, we run a garbage collection process at //! To free up some storage, we run a garbage collection process at
//! regular intervals. The collector uses an mark and sweep //! regular intervals. The collector uses a mark and sweep
//! approach. In the first phase, it scans all .idx files to mark used //! approach. In the first phase, it scans all .idx files to mark used
//! chunks. The second phase then removes all unmarked chunks from the //! chunks. The second phase then removes all unmarked chunks from the
//! store. //! store.
@ -90,12 +90,12 @@
//! amount of time ago (by default 24h). So we may only delete chunks //! amount of time ago (by default 24h). So we may only delete chunks
//! with `atime` older than 24 hours. //! with `atime` older than 24 hours.
//! //!
//! Another problem arise from running backups. The mark phase does //! Another problem arises from running backups. The mark phase does
//! not find any chunks from those backups, because there is no .idx //! not find any chunks from those backups, because there is no .idx
//! file for them (created after the backup). Chunks created or //! file for them (created after the backup). Chunks created or
//! touched by those backups may have an `atime` as old as the start //! touched by those backups may have an `atime` as old as the start
//! time of those backup. Please not that the backup start time may //! time of those backups. Please note that the backup start time may
//! predate the GC start time. Se we may only delete chunk older than //! predate the GC start time. So we may only delete chunks older than
//! the start time of those running backup jobs. //! the start time of those running backup jobs.
//! //!
//! //!