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;