From 1a446cdadef4c33bfe38516aadcbf574ee901c08 Mon Sep 17 00:00:00 2001 From: N0zoM1z0 <161784452+N0zoM1z0@users.noreply.github.com> Date: Wed, 11 Nov 2026 00:54:35 +0000 Subject: [PATCH] fix(ntfs): label the system flag independently of extensions Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> --- src/domain/windows/ntfsMft.test.ts | 2 +- src/domain/windows/ntfsMft.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/domain/windows/ntfsMft.test.ts b/src/domain/windows/ntfsMft.test.ts index 496687c4c5..8407aa7c98 100644 --- a/src/domain/windows/ntfsMft.test.ts +++ b/src/domain/windows/ntfsMft.test.ts @@ -247,7 +247,7 @@ describe("MFT record slots", () => { recordNumber: 0xfedc_ba98_7654, sequenceNumber: 0xabcd, }, - flags: { raw: 0x0005, names: ["in-use", "extension"] }, + flags: { raw: 0x0005, names: ["in-use", "system"] }, }); expect(parsed.value.metadata.extension_record_count).toBe(1); }); diff --git a/src/domain/windows/ntfsMft.ts b/src/domain/windows/ntfsMft.ts index b066474060..d13b033849 100644 --- a/src/domain/windows/ntfsMft.ts +++ b/src/domain/windows/ntfsMft.ts @@ -54,7 +54,7 @@ const FILE_RECORD_IS_DIRECTORY = 0x0002; const FILE_RECORD_NAMES = new Map([ [FILE_RECORD_IN_USE, "in-use"], [FILE_RECORD_IS_DIRECTORY, "directory"], - [0x0004, "extension"], + [0x0004, "system"], [0x0008, "view-index"], ]);