Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions Sources/ContainerizationEXT4/EXT4+Formatter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -757,19 +757,6 @@ extension EXT4 {
}
}

var freeBlocks: UInt32 = UInt32(self.blocksPerGroup)
if freeBlocks < blocks {
freeBlocks = 0
} else if self.size / self.blockSize < self.blocksPerGroup {
if blocks < UInt32(self.size / UInt64(self.blockSize)) {
freeBlocks = UInt32(self.size / UInt64(self.blockSize)) - blocks
} else {
freeBlocks = 0
}
} else {
freeBlocks = UInt32(self.blocksPerGroup) - blocks
}

let blockBitmap = UInt64(bitmapOffset + 2 * group)
let inodeBitmap = UInt64(bitmapOffset + 2 * group + 1)
let inodeTable = inodeTableOffset + UInt64(group * inodeTableSizePerGroup)
Expand Down
Loading