@@ -150,7 +150,7 @@ extension EXT4 {
150150 // ensure that target is not a directory since hardlinks cannot be
151151 // created to directories
152152 if targetInode. mode. isDir ( ) {
153- throw Error . cannotCreateHardlinkstoDirTarget ( link)
153+ throw Error . cannotCreateHardlinksToDirTarget ( link)
154154 }
155155 targetInode. linksCount += 1
156156 targetInodePtr. initialize ( to: targetInode)
@@ -628,7 +628,7 @@ extension EXT4 {
628628 var diskSize = dataSize
629629 var minimumDiskSize = ( blockGroupSize. blockGroups - 1 ) * self . blocksPerGroup + 1
630630 if blockGroupSize. blockGroups == 1 {
631- minimumDiskSize = self . blocksPerGroup // atleast 1 block group
631+ minimumDiskSize = self . blocksPerGroup // at least 1 block group
632632 }
633633 if diskSize < minimumDiskSize { // for data + metadata
634634 diskSize = minimumDiskSize
@@ -1266,7 +1266,7 @@ extension EXT4 {
12661266 case invalidName( _ name: String )
12671267 case noSpaceForTrailingDEntry
12681268 case insufficientSpaceForGroupDescriptorBlocks
1269- case cannotCreateHardlinkstoDirTarget ( _ path: FilePath )
1269+ case cannotCreateHardlinksToDirTarget ( _ path: FilePath )
12701270 case cannotTruncateFile( _ path: FilePath )
12711271 case cannotCreateSparseFile( _ path: FilePath )
12721272 case cannotResizeFS( _ size: UInt64 )
@@ -1294,7 +1294,7 @@ extension EXT4 {
12941294 return " not enough space for trailing dentry "
12951295 case . insufficientSpaceForGroupDescriptorBlocks:
12961296 return " not enough space for group descriptor blocks "
1297- case . cannotCreateHardlinkstoDirTarget ( let path) :
1297+ case . cannotCreateHardlinksToDirTarget ( let path) :
12981298 return " cannot create hard links to directory target: \( path) "
12991299 case . cannotTruncateFile( let path) :
13001300 return " cannot truncate file: \( path) "
0 commit comments