WinBtrfs - an open-source btrfs driver for Windows
This report summarizes scanner evidence for maharmstone/btrfs, a C project with 7,879 GitHub stars. SynthScan examined 117,546 lines of code across 92 source files, recording 79 pattern matches distributed across 2 syntactic categories. The legacy adjusted pattern signal is 0.8 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 74 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 5 finding(s).
Which changes need focused human review? 79 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 79 distinct pattern matches across 2 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/compress.c | 21 | // libavcodec, also under the LGPL. Thank you, Reimar Doeffinger. | COMMENT |
| LOW | src/compress.c | 61 | #define M4_MARKER 16 | COMMENT |
| LOW | src/btrfs.h | 21 | #define BTRFS_INODE_ITEM_KEY 0x01 | COMMENT |
| LOW | src/btrfs.h | 41 | #define BTRFS_FREE_SPACE_EXTENT_KEY 0xC7 | COMMENT |
| LOW | src/btrfs.h | 61 | #define BTRFS_RAID_STRIPE_TREE_OBJECTID 0xc | COMMENT |
| LOW | src/btrfs.h | 81 | #define BTRFS_BLOCK_GROUP_RAID1 0x010 | COMMENT |
| LOW | src/btrfs.h | 101 | COMMENT | |
| LOW | src/btrfs.h | 121 | #define BTRFS_FEATURE_INCOMPAT_SKINNY_METADATA 0x0100 | COMMENT |
| LOW | src/btrfs.h | 461 | #define BTRFS_BALANCE_ARGS_PROFILES 0x001 | COMMENT |
| LOW | src/btrfs.h | 521 | #define BTRFS_DEV_STAT_READ_ERRS 1 | COMMENT |
| LOW | src/btrfs.h | 541 | #define BTRFS_SEND_C_CLONE 16 | COMMENT |
| LOW | src/btrfs.h | 561 | #define BTRFS_SEND_A_XATTR_NAME 13 | COMMENT |
| LOW | src/btrfsioctl.h | 1 | // No copyright claimed in this file - do what you want with it. | COMMENT |
| LOW | src/btrfsioctl.h | 21 | #define IOCTL_BTRFS_QUERY_FILESYSTEMS CTL_CODE(FILE_DEVICE_UNKNOWN, 0x837, METHOD_OUT_DIRECT, FILE_ANY_ACCESS) | COMMENT |
| LOW | src/btrfs_drv.h | 21 | #undef NTDDI_VERSION | COMMENT |
| LOW | src/btrfs_drv.h | 41 | #include <mountmgr.h> | COMMENT |
| LOW | src/btrfs_drv.h | 61 | // #define DEBUG_LONG_MESSAGES | COMMENT |
| LOW | src/btrfs_drv.h | 81 | COMMENT | |
| LOW | src/btrfs_drv.h | 101 | COMMENT | |
| LOW | src/btrfs_drv.h | 121 | #define try if (1) | COMMENT |
| LOW | src/btrfs_drv.h | 1141 | #ifdef DEBUG_LONG_MESSAGES | COMMENT |
| LOW | src/btrfs_drv.h | 1701 | MSG(funcname, __FILE__, __LINE__, "fileref %p: refcount now %i\n", 1, fileref, rc);\ | COMMENT |
| LOW | src/btrfs_drv.h | 1721 | // FIXME - find a way to catch unfreed trees again | COMMENT |
| LOW | src/btrfs_drv.h | 1741 | COMMENT | |
| LOW | src/btrfs_drv.h | 1761 | COMMENT | |
| LOW | src/fsctl.c | 21 | #include <ntddstor.h> | COMMENT |
| LOW | src/resource.h | 1 | //{{NO_DEPENDENCIES}} | COMMENT |
| LOW | src/zstd-shim.h | 21 | #pragma intrinsic(_rotl) | COMMENT |
| LOW | src/fileinfo.c | 21 | // not currently in mingw - introduced with Windows 10 | COMMENT |
| LOW | src/fileinfo.c | 121 | #define FILE_RENAME_SUPPRESS_PIN_STATE_INHERITANCE 0x004 | COMMENT |
| LOW | src/btrfs.c | 21 | COMMENT | |
| LOW | src/btrfs.c | 41 | #include <ntddvol.h> | COMMENT |
| LOW | src/blake2-impl.h | 21 | #if defined(_MSC_VER) | COMMENT |
| LOW | src/tests/test.h | 21 | #include <stdarg.h> | COMMENT |
| LOW | src/tests/test.h | 161 | typedef struct _FILE_GET_EA_INFORMATION { | COMMENT |
| LOW | src/tests/test.h | 181 | #define SE_RESTORE_PRIVILEGE 18 | COMMENT |
| LOW | src/tests/test.h | 321 | #define FileStandardInformation ((FILE_INFORMATION_CLASS)5) | COMMENT |
| LOW | src/tests/test.h | 341 | #define FilePipeRemoteInformation ((FILE_INFORMATION_CLASS)25) | COMMENT |
| LOW | src/tests/oplock.cpp | 1 | #include "test.h" | COMMENT |
| LOW | src/tests/rename.cpp | 1741 | // FIXME - FILE_RENAME_SUPPRESS_STORAGE_RESERVE_INHERITANCE | COMMENT |
| LOW | src/shellext/propsheet.cpp | 21 | #include "shellext.h" | COMMENT |
| LOW | src/shellext/mappings.cpp | 1 | #include "shellext.h" | COMMENT |
| LOW | src/shellext/propsheet.h | 21 | #include <deque> | COMMENT |
| LOW | src/shellext/propsheet.h | 41 | #define S_IWGRP (S_IWUSR >> 3) | COMMENT |
| LOW | src/shellext/propsheet.h | 61 | #define S_ISUID 0004000 | COMMENT |
| LOW | src/shellext/contextmenu.cpp | 21 | #include <stddef.h> | COMMENT |
| LOW | src/shellext/shellext.h | 21 | #define STRSAFE_NO_DEPRECATE | COMMENT |
| LOW | src/shellext/shellext.h | 41 | #define STATUS_DEVICE_NOT_READY (NTSTATUS)0xc00000a3 | COMMENT |
| LOW | src/shellext/devices.cpp | 21 | #include "shellext.h" | COMMENT |
| LOW | src/shellext/resource.h | 1 | //{{NO_DEPENDENCIES}} | COMMENT |
| LOW | src/shellext/resource.h | 21 | #define IDD_DEVICES 110 | COMMENT |
| LOW | src/shellext/resource.h | 41 | #define IDS_VOL_PROP_SHEET_TITLE 129 | COMMENT |
| LOW | src/shellext/resource.h | 61 | #define IDS_NO_BALANCE 149 | COMMENT |
| LOW | src/shellext/resource.h | 81 | #define IDS_DEVLIST_ALLOC 168 | COMMENT |
| LOW | src/shellext/resource.h | 101 | #define IDS_BALANCE_FAILED_REMOVAL 182 | COMMENT |
| LOW | src/shellext/resource.h | 121 | #define IDS_SCRUB_FAILED 202 | COMMENT |
| LOW | src/shellext/resource.h | 141 | #define IDS_RECV_MKNOD_FAILED 222 | COMMENT |
| LOW | src/shellext/resource.h | 161 | #define IDS_RECV_SETXATTR_FAILED 242 | COMMENT |
| LOW | src/shellext/resource.h | 181 | #define IDS_SEND_FSCTL_BTRFS_READ_SEND_BUFFER_FAILED 262 | COMMENT |
| LOW | src/shellext/resource.h | 201 | #define IDS_REGCREATEKEY_FAILED 283 | COMMENT |
| 14 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | CMakeLists.txt | 229 | # -------------------------------------- | COMMENT |
| MEDIUM | CMakeLists.txt | 290 | # -------------------------------------- | COMMENT |
| MEDIUM | CMakeLists.txt | 338 | # -------------------------------------- | COMMENT |
| MEDIUM | CMakeLists.txt | 355 | # -------------------------------------- | COMMENT |
| MEDIUM | CMakeLists.txt | 395 | # -------------------------------------- | COMMENT |