Skip to content

Commit

Permalink
Ext4Pkg: Fix typos discovered by SpellCheck
Browse files Browse the repository at this point in the history
Fix typos discovered by SpellCheck, which were discovered as part of the
initial CI enablement effort.

Cc: Pedro Falcato <pedro.falcato@gmail.com>
Signed-off-by: Marvin Häuser <mhaeuser@posteo.de>
Reviewed-by: Pedro Falcato <pedro.falcato@gmail.com>
  • Loading branch information
mhaeuser authored and heatd committed Jan 26, 2023
1 parent 89b2bb0 commit 9822126
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions Features/Ext4Pkg/Ext4Dxe/BlockMap.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Ext4GetBlockPath (

/**
@brief Get an extent from a block map
Note: Also parses file holes and creates uninitialised extents from them.
Note: Also parses file holes and creates uninitialized extents from them.
@param[in] Buffer Buffer of block pointers
@param[in] IndEntries Number of entries in this block pointer table
Expand Down Expand Up @@ -173,7 +173,7 @@ Ext4GetExtentInBlockMap (
}
}

// We mark the extent as uninitialised, although there's a difference between uninit
// We mark the extent as uninitialized, although there's a difference between uninit
// extents and file holes.
Extent->ee_len = EXT4_EXTENT_MAX_INITIALIZED + Count;
return;
Expand Down Expand Up @@ -206,7 +206,7 @@ Ext4GetExtentInBlockMap (
@param[in] LogicalBlock Block number which the returned extent must cover.
@param[out] Extent Pointer to the output buffer, where the extent will be copied to.
@retval EFI_SUCCESS Retrieval was succesful.
@retval EFI_SUCCESS Retrieval was successful.
@retval EFI_NO_MAPPING Block has no mapping.
**/
EFI_STATUS
Expand Down
2 changes: 1 addition & 1 deletion Features/Ext4Pkg/Ext4Dxe/Directory.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
@param[in] Entry Pointer to a EXT4_DIR_ENTRY.
@param[out] Ucs2FileName Pointer to an array of CHAR16's, of size EXT4_NAME_MAX + 1.
@retval EFI_SUCCESS The filename was succesfully retrieved and converted to UCS2.
@retval EFI_SUCCESS The filename was successfully retrieved and converted to UCS2.
@retval EFI_INVALID_PARAMETER The filename is not valid UTF-8.
@retval !EFI_SUCCESS Failure.
**/
Expand Down
16 changes: 8 additions & 8 deletions Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Ext4UnrefDentry (
@param[out] Partition Partition structure to fill with filesystem
details.
@retval EFI_SUCCESS Parsing was succesful and the partition is a
@retval EFI_SUCCESS Parsing was successful and the partition is a
valid ext4 partition.
**/
EFI_STATUS
Expand Down Expand Up @@ -322,7 +322,7 @@ Ext4ReadInode (
@param[out] Buffer Pointer to the buffer.
@param[in] Offset Offset of the read.
@param[in out] Length Pointer to the length of the buffer, in bytes.
After a succesful read, it's updated to the
After a successful read, it's updated to the
number of read bytes.
@return Status of the read operation.
Expand Down Expand Up @@ -355,7 +355,7 @@ cover.
@param[out] Extent Pointer to the output buffer, where the extent
will be copied to.
@retval EFI_SUCCESS Retrieval was succesful.
@retval EFI_SUCCESS Retrieval was successful.
@retval EFI_NO_MAPPING Block has no mapping.
**/
EFI_STATUS
Expand Down Expand Up @@ -946,7 +946,7 @@ Ext4StrCmpInsensitive (
@param[in] Entry Pointer to a EXT4_DIR_ENTRY.
@param[out] Ucs2FileName Pointer to an array of CHAR16's, of size EXT4_NAME_MAX + 1.
@retval EFI_SUCCESS The filename was succesfully retrieved and converted to UCS2.
@retval EFI_SUCCESS The filename was successfully retrieved and converted to UCS2.
@retval EFI_INVALID_PARAMETER The filename is not valid UTF-8.
@retval !EFI_SUCCESS Failure.
**/
Expand Down Expand Up @@ -1106,7 +1106,7 @@ Ext4CalculateBlockGroupDescChecksum (
);

/**
Verifies the existance of a particular RO compat feature set.
Verifies the existence of a particular RO compat feature set.
@param[in] Partition Pointer to the opened EXT4 partition.
@param[in] RoCompatFeatureSet Feature set to test.
Expand All @@ -1116,7 +1116,7 @@ Ext4CalculateBlockGroupDescChecksum (
((Partition->FeaturesRoCompat & RoCompatFeatureSet) == RoCompatFeatureSet)

/**
Verifies the existance of a particular compat feature set.
Verifies the existence of a particular compat feature set.
@param[in] Partition Pointer to the opened EXT4 partition.
@param[in] CompatFeatureSet Feature set to test.
Expand All @@ -1126,7 +1126,7 @@ Ext4CalculateBlockGroupDescChecksum (
((Partition->FeaturesCompat & CompatFeatureSet) == CompatFeatureSet)

/**
Verifies the existance of a particular compat feature set.
Verifies the existence of a particular compat feature set.
@param[in] Partition Pointer to the opened EXT4 partition.
@param[in] IncompatFeatureSet Feature set to test.
Expand Down Expand Up @@ -1217,7 +1217,7 @@ Ext4GetExtentLength (
@param[in] LogicalBlock Block number which the returned extent must cover.
@param[out] Extent Pointer to the output buffer, where the extent will be copied to.
@retval EFI_SUCCESS Retrieval was succesful.
@retval EFI_SUCCESS Retrieval was successful.
@retval EFI_NO_MAPPING Block has no mapping.
**/
EFI_STATUS
Expand Down
4 changes: 2 additions & 2 deletions Features/Ext4Pkg/Ext4Dxe/Extents.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ Ext4ExtentIdxLeafBlock (
@param[in] LogicalBlock Block number which the returned extent must cover.
@param[out] Extent Pointer to the output buffer, where the extent will be copied to.
@retval EFI_SUCCESS Retrieval was succesful.
@retval EFI_SUCCESS Retrieval was successful.
@retval EFI_NO_MAPPING Block has no mapping.
**/
EFI_STATUS
Expand Down Expand Up @@ -615,7 +615,7 @@ Ext4GetExtentLength (
IN CONST EXT4_EXTENT *Extent
)
{
// If it's an unintialized extent, the true length is ee_len - 2^15
// If it's an uninitialized extent, the true length is ee_len - 2^15
if (EXT4_EXTENT_IS_UNINITIALIZED (Extent)) {
return Extent->ee_len - EXT4_EXTENT_MAX_INITIALIZED;
}
Expand Down
2 changes: 1 addition & 1 deletion Features/Ext4Pkg/Ext4Dxe/File.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Ext4IsLastPathSegment (
@param[in out] File Pointer to the file we're opening.
@param[in] OpenMode Mode in which to open the file.
@return True if the open was succesful, false if we don't have
@return True if the open was successful, false if we don't have
enough permissions.
**/
STATIC
Expand Down
2 changes: 1 addition & 1 deletion Features/Ext4Pkg/Ext4Dxe/Inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Ext4CalculateInodeChecksum (
@param[out] Buffer Pointer to the buffer.
@param[in] Offset Offset of the read.
@param[in out] Length Pointer to the length of the buffer, in bytes.
After a succesful read, it's updated to the number of read bytes.
After a successful read, it's updated to the number of read bytes.
@return Status of the read operation.
**/
Expand Down
6 changes: 3 additions & 3 deletions Features/Ext4Pkg/Ext4Dxe/Superblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ Ext4VerifySuperblockChecksum (
Opens and parses the superblock.
@param[out] Partition Partition structure to fill with filesystem details.
@retval EFI_SUCCESS Parsing was succesful and the partition is a
@retval EFI_SUCCESS Parsing was successful and the partition is a
valid ext4 partition.
**/
EFI_STATUS
Expand Down Expand Up @@ -203,7 +203,7 @@ Ext4OpenSuperblock (

// Now, check for the feature set of the filesystem
// It's essential to check for this to avoid filesystem corruption and to avoid
// accidentally opening an ext2/3/4 filesystem we don't understand, which would be disasterous.
// accidentally opening an ext2/3/4 filesystem we don't understand, which would be disastrous.

if (Partition->FeaturesIncompat & ~gSupportedIncompatFeat) {
DEBUG ((
Expand Down Expand Up @@ -312,7 +312,7 @@ Ext4OpenSuperblock (
return EFI_OUT_OF_RESOURCES;
}

// Note that the cast below is completely safe, because EXT4_FILE is a specialisation of EFI_FILE_PROTOCOL
// Note that the cast below is completely safe, because EXT4_FILE is a specialization of EFI_FILE_PROTOCOL
Status = Ext4OpenVolume (&Partition->Interface, (EFI_FILE_PROTOCOL **)&Partition->Root);

if (EFI_ERROR (Status)) {
Expand Down
2 changes: 1 addition & 1 deletion Features/Ext4Pkg/Ext4Dxe/Symlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ Ext4ReadSymlink (
CHAR16 *Needle;

//
// Assume that we alread read Inode via Ext4ReadInode
// Assume that we already read Inode via Ext4ReadInode
// Skip reading, just check encryption flag
//
if ((File->Inode->i_flags & EXT4_ENCRYPT_FL) != 0) {
Expand Down

0 comments on commit 9822126

Please sign in to comment.