Gather access counters in Windows

This commit is contained in:
Andrea Mazzoleni 2026-03-04 11:06:19 +01:00
parent a38e3c5f36
commit 4bc30e976a
2 changed files with 71 additions and 3 deletions

View file

@ -1544,10 +1544,8 @@ static int devscan(tommy_list* list)
/* retrieve access stat for the low level device */
uint64_t access_stat;
if (devstat(device, &access_stat) == 0) {
/* cumulate access stat in the first split */
if (devstat(device, &access_stat) == 0)
devinfo->access_stat = access_stat;
}
/* insert in the list */
tommy_list_insert_tail(list, &devinfo->node, devinfo);