blob: 2bf38f69304df64e7c8aa9a7ea9fbd4a68f0ef0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright (C) 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"
"git.lukeshu.com/btrfs-progs-ng/lib/btrfs/btrfsprim"
)
// QGroupInfo tracks the amount of space used by a given qgroup in the
// containing subvolume.
//
// Key:
//
// key.objectid = 0
// key.offset = ID of the qgroup
type QGroupInfo struct { // trivial QGROUP_INFO=242
Generation btrfsprim.Generation `bin:"off=0, siz=8"`
ReferencedBytes uint64 `bin:"off=8, siz=8"`
ReferencedBytesCompressed uint64 `bin:"off=16, siz=8"`
ExclusiveBytes uint64 `bin:"off=24, siz=8"`
ExclusiveBytesCompressed uint64 `bin:"off=32, siz=8"`
binstruct.End `bin:"off=40"`
}
|