From 2dacb1551672d90a582c7016c8ba47cc5775fc7c Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Tue, 21 Jun 2022 01:16:00 +0200 Subject: [PATCH] Fix typos Signed-off-by: Andrea Gelmini --- HISTORY | 2 +- cmdline/mingw.c | 4 ++-- cmdline/portable.h | 2 +- cmdline/unix.c | 2 +- raid/raid.h | 2 +- tommyds/tommyhashdyn.h | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/HISTORY b/HISTORY index 03581e63..96dc9290 100644 --- a/HISTORY +++ b/HISTORY @@ -3,7 +3,7 @@ SnapRAID HISTORY 12.1 2022/01 ============ - * Reduce stack usage to work in enviromnents with limited stack size, like MUSL. + * Reduce stack usage to work in environments with limited stack size, like MUSL. * Increase the default disk cache from 8 MiB to 16 MiB. 12.0 2021/12 diff --git a/cmdline/mingw.c b/cmdline/mingw.c index 00b8ceb0..8eae1ba2 100644 --- a/cmdline/mingw.c +++ b/cmdline/mingw.c @@ -789,7 +789,7 @@ static BOOL GetFilePhysicalOffset(HANDLE h, uint64_t* physical) BOOL ret; DWORD n; - /* in Wine FSCTL_GET_RETRIVIAL_POINTERS is not supported */ + /* in Wine FSCTL_GET_RETRIEVAL_POINTERS is not supported */ if (is_wine) { *physical = FILEPHY_UNREPORTED_OFFSET; return TRUE; @@ -1556,7 +1556,7 @@ int windows_link(const char* existing, const char* file) } /** - * In Windows 10 allow creation of symblink by not privileged user. + * In Windows 10 allow creation of symlink by not privileged user. * * See: Symlinks in Windows 10! * https://blogs.windows.com/buildingapps/2016/12/02/symlinks-windows-10/#cQG7cx48oGH86lkI.97 diff --git a/cmdline/portable.h b/cmdline/portable.h index 4d5b89bb..3227a7b2 100644 --- a/cmdline/portable.h +++ b/cmdline/portable.h @@ -362,7 +362,7 @@ int devuuid(uint64_t device, char* uuid, size_t size); #define FILEPHY_REAL_OFFSET 3 /** - * Get the physcal address of the specified file. + * Get the physical address of the specified file. * This is expected to be just a hint and not necessarily correct or unique. * Return 0 on success. */ diff --git a/cmdline/unix.c b/cmdline/unix.c index 15948989..ce17cf23 100644 --- a/cmdline/unix.c +++ b/cmdline/unix.c @@ -474,7 +474,7 @@ static int devuuid_dev(uint64_t device, char* uuid, size_t uuid_size) #endif /** - * Get the UUID using liblkid. + * Get the UUID using libblkid. * It uses a cache to work without root permission, resulting in UUID * not necessarily recent. * We could call blkid_probe_all() to refresh the UUID, but it would diff --git a/raid/raid.h b/raid/raid.h index aeeb39f3..352643b2 100644 --- a/raid/raid.h +++ b/raid/raid.h @@ -192,7 +192,7 @@ int raid_check(int nr, int *ir, int nd, int np, size_t size, void **v); * This function identifies the failed data and parity blocks using the * available redundancy. * - * It uses a brute force method, and then the call can be expansive. + * It uses a brute force method, and then the call can be expensive. * The expected execution time is proportional at the binomial coefficient * @np + @nd choose @np - 1, usually written as: * diff --git a/tommyds/tommyhashdyn.h b/tommyds/tommyhashdyn.h index 0ea042f6..5a8c125f 100644 --- a/tommyds/tommyhashdyn.h +++ b/tommyds/tommyhashdyn.h @@ -35,7 +35,7 @@ * All the elements are reallocated in a single resize operation done inside * tommy_hashdyn_insert() or tommy_hashdyn_remove(). * - * Note that the resize operation takes approximatively 100 [ms] with 1 million of elements, + * Note that the resize operation takes approximately 100 [ms] with 1 million of elements, * and 1 [second] with 10 millions. This could be a problem in real-time applications. * * The resize also fragment the heap, as it involves allocating a double-sized table, copy elements,