From 6f97cc59c8f80582778985344a1a9487afd9d968 Mon Sep 17 00:00:00 2001 From: Dmitry Kovba Date: Mon, 23 Mar 2026 18:47:03 -0700 Subject: [PATCH] Remove a double-counted offset in large files --- Sources/ContainerizationEXT4/EXT4+Formatter.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ContainerizationEXT4/EXT4+Formatter.swift b/Sources/ContainerizationEXT4/EXT4+Formatter.swift index 6eb22df0..155e7ec6 100644 --- a/Sources/ContainerizationEXT4/EXT4+Formatter.swift +++ b/Sources/ContainerizationEXT4/EXT4+Formatter.swift @@ -1135,7 +1135,7 @@ extension EXT4 { let offset = i * extentsPerBlock * EXT4.MaxBlocksPerExtent fillExtents( node: &leafNode, numExtents: extentsInBlock, numBlocks: dataBlocks, - start: blocks.start + offset, + start: blocks.start, offset: offset) try withUnsafeLittleEndianBytes(of: leafNode.header) { bytes in try self.handle.write(contentsOf: bytes)