diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-02-12 13:14:43 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-02-12 14:27:30 -0700 |
commit | 79cb12dde9352331c15724b7d0892fd4ce5ea342 (patch) | |
tree | a90ef3875bc235e442d6abe9b9fcd67fadd3d830 /lib/btrfs/btrfsitem/item_qgroupinfo.go | |
parent | 2cb3cb14dd85535a0a691d42874d7045d7c81571 (diff) |
btrfsitem, btrfsinspect/print_tree: Implement the QGroup types
Diffstat (limited to 'lib/btrfs/btrfsitem/item_qgroupinfo.go')
-rw-r--r-- | lib/btrfs/btrfsitem/item_qgroupinfo.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/btrfs/btrfsitem/item_qgroupinfo.go b/lib/btrfs/btrfsitem/item_qgroupinfo.go new file mode 100644 index 0000000..8cceb0b --- /dev/null +++ b/lib/btrfs/btrfsitem/item_qgroupinfo.go @@ -0,0 +1,21 @@ +// 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" +) + +// key.objectid = 0 +// key.offset = ID of the qgroup +type QGroupInfo struct { // 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"` +} |