Keeps stats about usage time of disk and cpu.

This commit is contained in:
Andrea Mazzoleni 2014-06-25 22:32:36 +02:00
parent fb4f257593
commit 5dfc67ec18
11 changed files with 230 additions and 8 deletions

View file

@ -644,6 +644,7 @@ struct snapraid_disk* disk_alloc(const char* name, const char* dir, uint64_t dev
pathslash(disk->dir, sizeof(disk->dir));
disk->device = dev;
disk->tick = 0;
disk->first_free_block = 0;
disk->has_volatile_inodes = 0;
disk->has_unreliable_physical = 0;