blob: 4655aeec8c8bfd37697c3a06f4e48cd5484371c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright (C) 2022-2023 Luke Shumaker <lukeshu@lukeshu.com>
//
// SPDX-License-Identifier: GPL-2.0-or-later
package btrfsitem
import (
"git.lukeshu.com/btrfs-progs-ng/lib/binstruct"
)
const (
DEV_STAT_WRITE_ERRS = iota
DEV_STAT_READ_ERRS
DEV_STAT_FLUSH_ERRS
DEV_STAT_CORRUPTION_ERRS
DEV_STAT_GENERATION_ERRS
DEV_STAT_VALUES_MAX
)
type DevStats struct { // trivial PERSISTENT_ITEM=249
Values [DEV_STAT_VALUES_MAX]int64 `bin:"off=0, siz=40"`
binstruct.End `bin:"off=40"`
}
|