From 98deb4ba919ff332a603428dd42bcdd4214dd6e4 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Sun, 19 Oct 2014 21:09:22 +0200 Subject: [PATCH] Fixes a recurring typo in comments. --- cmdline/import.c | 2 +- cmdline/portable.h | 2 +- cmdline/scan.c | 2 +- cmdline/unix.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmdline/import.c b/cmdline/import.c index ab2ffa1e..6284dca2 100644 --- a/cmdline/import.c +++ b/cmdline/import.c @@ -269,7 +269,7 @@ static void import_dir(struct snapraid_state* state, const char* dir) /* if the st_mode field is missing, takes care to fill it using normal lstat() */ /* at now this can happen only in Windows (with HAVE_STRUCT_DIRENT_D_STAT defined), */ - /* becasue we use a directory reading method that doesn't read info about ReparsePoint. */ + /* because we use a directory reading method that doesn't read info about ReparsePoint. */ /* Note that here we cannot call here lstat_sync(), because we don't know what kind */ /* of file is it, and lstat_sync() doesn't always work */ if (st.st_mode == 0) { diff --git a/cmdline/portable.h b/cmdline/portable.h index 35388903..cbbbcd3e 100644 --- a/cmdline/portable.h +++ b/cmdline/portable.h @@ -248,7 +248,7 @@ int fsinfo(const char* path, int* has_persistent_inode, uint64_t* free_space); /** * Get the tick counter value. * - * Note that the frequency is unspecified, becasue the time measure + * Note that the frequency is unspecified, because the time measure * is meant to be used to compare the ratio between usage times. */ uint64_t tick(void); diff --git a/cmdline/scan.c b/cmdline/scan.c index c8d35838..19b63a5e 100644 --- a/cmdline/scan.c +++ b/cmdline/scan.c @@ -1206,7 +1206,7 @@ static int scan_dir(struct snapraid_scan* scan, int output, const char* dir, con #if HAVE_STRUCT_DIRENT_D_STAT /* if the st_mode field is missing, takes care to fill it using normal lstat() */ /* at now this can happen only in Windows (with HAVE_STRUCT_DIRENT_D_STAT defined), */ - /* becasue we use a directory reading method that doesn't read info about ReparsePoint. */ + /* because we use a directory reading method that doesn't read info about ReparsePoint. */ /* Note that here we cannot call here lstat_sync(), because we don't know what kind */ /* of file is it, and lstat_sync() doesn't always work */ if (st->st_mode == 0) { diff --git a/cmdline/unix.c b/cmdline/unix.c index 8bfe42ed..1034f396 100644 --- a/cmdline/unix.c +++ b/cmdline/unix.c @@ -193,7 +193,7 @@ int filephy(const char* path, uint64_t size, uint64_t* physical) /* In this way we keep them in the directory traversal order */ /* that at least keeps files in the same directory together. */ /* Note also that in newer filesystem with snapshot, like ZFS, */ - /* the inode doesn't represent even less the disk position, becasue files */ + /* the inode doesn't represent even less the disk position, because files */ /* are not overwritten in place, but rewritten in another location */ /* of the disk. */ *physical = FILEPHY_UNREPORTED_OFFSET;