dissect.btrfs 1.7.dev2__tar.gz → 1.8.dev1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. dissect_btrfs-1.8.dev1/.gitattributes +1 -0
  2. {dissect_btrfs-1.7.dev2 → dissect_btrfs-1.8.dev1}/PKG-INFO +5 -4
  3. {dissect_btrfs-1.7.dev2 → dissect_btrfs-1.8.dev1}/dissect/btrfs/btrfs.py +1 -1
  4. {dissect_btrfs-1.7.dev2 → dissect_btrfs-1.8.dev1}/dissect/btrfs/c_btrfs.py +0 -2
  5. {dissect_btrfs-1.7.dev2 → dissect_btrfs-1.8.dev1}/dissect.btrfs.egg-info/PKG-INFO +5 -4
  6. dissect_btrfs-1.8.dev1/dissect.btrfs.egg-info/SOURCES.txt +54 -0
  7. {dissect_btrfs-1.7.dev2 → dissect_btrfs-1.8.dev1}/dissect.btrfs.egg-info/requires.txt +2 -2
  8. {dissect_btrfs-1.7.dev2 → dissect_btrfs-1.8.dev1}/pyproject.toml +2 -2
  9. dissect_btrfs-1.8.dev1/tests/_docs/Makefile +24 -0
  10. dissect_btrfs-1.8.dev1/tests/_docs/__init__.py +0 -0
  11. dissect_btrfs-1.8.dev1/tests/_docs/conf.py +41 -0
  12. dissect_btrfs-1.8.dev1/tests/_docs/index.rst +8 -0
  13. {dissect_btrfs-1.7.dev2 → dissect_btrfs-1.8.dev1}/tests/conftest.py +20 -20
  14. {dissect_btrfs-1.7.dev2 → dissect_btrfs-1.8.dev1}/tox.ini +4 -4
  15. dissect_btrfs-1.7.dev2/.gitattributes +0 -27
  16. dissect_btrfs-1.7.dev2/dissect.btrfs.egg-info/SOURCES.txt +0 -50
  17. {dissect_btrfs-1.7.dev2 → dissect_btrfs-1.8.dev1}/.git-blame-ignore-revs +0 -0
  18. {dissect_btrfs-1.7.dev2 → dissect_btrfs-1.8.dev1}/COPYRIGHT +0 -0
  19. {dissect_btrfs-1.7.dev2 → dissect_btrfs-1.8.dev1}/LICENSE +0 -0
  20. {dissect_btrfs-1.7.dev2 → dissect_btrfs-1.8.dev1}/MANIFEST.in +0 -0
  21. {dissect_btrfs-1.7.dev2 → dissect_btrfs-1.8.dev1}/README.md +0 -0
  22. {dissect_btrfs-1.7.dev2 → dissect_btrfs-1.8.dev1}/dissect/btrfs/__init__.py +0 -0
  23. {dissect_btrfs-1.7.dev2 → dissect_btrfs-1.8.dev1}/dissect/btrfs/exceptions.py +0 -0
  24. {dissect_btrfs-1.7.dev2 → dissect_btrfs-1.8.dev1}/dissect/btrfs/stream.py +0 -0
  25. {dissect_btrfs-1.7.dev2 → dissect_btrfs-1.8.dev1}/dissect/btrfs/tree.py +0 -0
  26. {dissect_btrfs-1.7.dev2 → dissect_btrfs-1.8.dev1}/dissect.btrfs.egg-info/dependency_links.txt +0 -0
  27. {dissect_btrfs-1.7.dev2 → dissect_btrfs-1.8.dev1}/dissect.btrfs.egg-info/top_level.txt +0 -0
  28. {dissect_btrfs-1.7.dev2 → dissect_btrfs-1.8.dev1}/setup.cfg +0 -0
  29. {dissect_btrfs-1.7.dev2 → dissect_btrfs-1.8.dev1}/tests/__init__.py +0 -0
  30. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-compression.bin.gz +0 -0
  31. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-default.bin.gz +0 -0
  32. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-dup-1.bin.gz +0 -0
  33. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-dup-2.bin.gz +0 -0
  34. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-raid0-1.bin.gz +0 -0
  35. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-raid0-2.bin.gz +0 -0
  36. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-raid1-1.bin.gz +0 -0
  37. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-raid1-2.bin.gz +0 -0
  38. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-raid10-1.bin.gz +0 -0
  39. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-raid10-2.bin.gz +0 -0
  40. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-raid1c3-1.bin.gz +0 -0
  41. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-raid1c3-2.bin.gz +0 -0
  42. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-raid1c3-3.bin.gz +0 -0
  43. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-raid1c4-1.bin.gz +0 -0
  44. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-raid1c4-2.bin.gz +0 -0
  45. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-raid1c4-3.bin.gz +0 -0
  46. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-raid1c4-4.bin.gz +0 -0
  47. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-raid5-1.bin.gz +0 -0
  48. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-raid5-2.bin.gz +0 -0
  49. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-raid6-1.bin.gz +0 -0
  50. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-raid6-2.bin.gz +0 -0
  51. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-raid6-3.bin.gz +0 -0
  52. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-sparse.bin.gz +0 -0
  53. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-subvolume-custom-default.bin.gz +0 -0
  54. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-subvolume-nested.bin.gz +0 -0
  55. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-subvolume-snapshot.bin.gz +0 -0
  56. {dissect_btrfs-1.7.dev2/tests/data → dissect_btrfs-1.8.dev1/tests/_data}/btrfs-subvolume.bin.gz +0 -0
  57. {dissect_btrfs-1.7.dev2 → dissect_btrfs-1.8.dev1}/tests/test_btrfs.py +0 -0
  58. {dissect_btrfs-1.7.dev2 → dissect_btrfs-1.8.dev1}/tests/test_exceptions.py +0 -0
@@ -0,0 +1 @@
1
+ tests/_data/** filter=lfs diff=lfs merge=lfs -text
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: dissect.btrfs
3
- Version: 1.7.dev2
3
+ Version: 1.8.dev1
4
4
  Summary: A Dissect module implementing a parser for the Btrfs file system, a commonly used Linux filesystem.
5
5
  Author-email: Dissect Team <dissect@fox-it.com>
6
6
  License: Affero General Public License v3
@@ -23,7 +23,7 @@ Description-Content-Type: text/markdown
23
23
  License-File: LICENSE
24
24
  License-File: COPYRIGHT
25
25
  Requires-Dist: dissect.cstruct<5,>=4
26
- Requires-Dist: dissect.util<4,>=3
26
+ Requires-Dist: dissect.util<4,>=3.22.dev
27
27
  Provides-Extra: full
28
28
  Requires-Dist: zstandard; extra == "full"
29
29
  Provides-Extra: gcrc32
@@ -33,7 +33,8 @@ Requires-Dist: python-lzo; (platform_system != "Windows" or platform_python_impl
33
33
  Provides-Extra: dev
34
34
  Requires-Dist: dissect.btrfs[full]; extra == "dev"
35
35
  Requires-Dist: dissect.cstruct<5.0.dev,>=4.0.dev; extra == "dev"
36
- Requires-Dist: dissect.util<4.0.dev,>=3.0.dev; extra == "dev"
36
+ Requires-Dist: dissect.util<4.0.dev,>=3.22.dev; extra == "dev"
37
+ Dynamic: license-file
37
38
 
38
39
  # dissect.btrfs
39
40
 
@@ -22,7 +22,7 @@ try:
22
22
  warnings.simplefilter("ignore")
23
23
  from google_crc32c import extend as crc32c
24
24
  except ImportError:
25
- from dissect.util.crc32c import update as crc32c
25
+ from dissect.util.hash.crc32c import update as crc32c
26
26
 
27
27
  from dissect.btrfs.c_btrfs import FT_MAP, c_btrfs
28
28
  from dissect.btrfs.exceptions import (
@@ -879,8 +879,6 @@ BTRFS_BLOCK_GROUP = c_btrfs.BTRFS_BLOCK_GROUP
879
879
 
880
880
  BTRFS_BLOCK_GROUP_TYPE_MASK = BTRFS_BLOCK_GROUP.DATA | BTRFS_BLOCK_GROUP.SYSTEM | BTRFS_BLOCK_GROUP.METADATA
881
881
 
882
- BTRFS_BLOCK_GROUP_TYPE_MASK = BTRFS_BLOCK_GROUP.DATA | BTRFS_BLOCK_GROUP.SYSTEM | BTRFS_BLOCK_GROUP.METADATA
883
-
884
882
  BTRFS_BLOCK_GROUP_PROFILE_MASK = (
885
883
  BTRFS_BLOCK_GROUP.RAID0
886
884
  | BTRFS_BLOCK_GROUP.RAID1
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: dissect.btrfs
3
- Version: 1.7.dev2
3
+ Version: 1.8.dev1
4
4
  Summary: A Dissect module implementing a parser for the Btrfs file system, a commonly used Linux filesystem.
5
5
  Author-email: Dissect Team <dissect@fox-it.com>
6
6
  License: Affero General Public License v3
@@ -23,7 +23,7 @@ Description-Content-Type: text/markdown
23
23
  License-File: LICENSE
24
24
  License-File: COPYRIGHT
25
25
  Requires-Dist: dissect.cstruct<5,>=4
26
- Requires-Dist: dissect.util<4,>=3
26
+ Requires-Dist: dissect.util<4,>=3.22.dev
27
27
  Provides-Extra: full
28
28
  Requires-Dist: zstandard; extra == "full"
29
29
  Provides-Extra: gcrc32
@@ -33,7 +33,8 @@ Requires-Dist: python-lzo; (platform_system != "Windows" or platform_python_impl
33
33
  Provides-Extra: dev
34
34
  Requires-Dist: dissect.btrfs[full]; extra == "dev"
35
35
  Requires-Dist: dissect.cstruct<5.0.dev,>=4.0.dev; extra == "dev"
36
- Requires-Dist: dissect.util<4.0.dev,>=3.0.dev; extra == "dev"
36
+ Requires-Dist: dissect.util<4.0.dev,>=3.22.dev; extra == "dev"
37
+ Dynamic: license-file
37
38
 
38
39
  # dissect.btrfs
39
40
 
@@ -0,0 +1,54 @@
1
+ .git-blame-ignore-revs
2
+ .gitattributes
3
+ COPYRIGHT
4
+ LICENSE
5
+ MANIFEST.in
6
+ README.md
7
+ pyproject.toml
8
+ tox.ini
9
+ dissect.btrfs.egg-info/PKG-INFO
10
+ dissect.btrfs.egg-info/SOURCES.txt
11
+ dissect.btrfs.egg-info/dependency_links.txt
12
+ dissect.btrfs.egg-info/requires.txt
13
+ dissect.btrfs.egg-info/top_level.txt
14
+ dissect/btrfs/__init__.py
15
+ dissect/btrfs/btrfs.py
16
+ dissect/btrfs/c_btrfs.py
17
+ dissect/btrfs/exceptions.py
18
+ dissect/btrfs/stream.py
19
+ dissect/btrfs/tree.py
20
+ tests/__init__.py
21
+ tests/conftest.py
22
+ tests/test_btrfs.py
23
+ tests/test_exceptions.py
24
+ tests/_data/btrfs-compression.bin.gz
25
+ tests/_data/btrfs-default.bin.gz
26
+ tests/_data/btrfs-dup-1.bin.gz
27
+ tests/_data/btrfs-dup-2.bin.gz
28
+ tests/_data/btrfs-raid0-1.bin.gz
29
+ tests/_data/btrfs-raid0-2.bin.gz
30
+ tests/_data/btrfs-raid1-1.bin.gz
31
+ tests/_data/btrfs-raid1-2.bin.gz
32
+ tests/_data/btrfs-raid10-1.bin.gz
33
+ tests/_data/btrfs-raid10-2.bin.gz
34
+ tests/_data/btrfs-raid1c3-1.bin.gz
35
+ tests/_data/btrfs-raid1c3-2.bin.gz
36
+ tests/_data/btrfs-raid1c3-3.bin.gz
37
+ tests/_data/btrfs-raid1c4-1.bin.gz
38
+ tests/_data/btrfs-raid1c4-2.bin.gz
39
+ tests/_data/btrfs-raid1c4-3.bin.gz
40
+ tests/_data/btrfs-raid1c4-4.bin.gz
41
+ tests/_data/btrfs-raid5-1.bin.gz
42
+ tests/_data/btrfs-raid5-2.bin.gz
43
+ tests/_data/btrfs-raid6-1.bin.gz
44
+ tests/_data/btrfs-raid6-2.bin.gz
45
+ tests/_data/btrfs-raid6-3.bin.gz
46
+ tests/_data/btrfs-sparse.bin.gz
47
+ tests/_data/btrfs-subvolume-custom-default.bin.gz
48
+ tests/_data/btrfs-subvolume-nested.bin.gz
49
+ tests/_data/btrfs-subvolume-snapshot.bin.gz
50
+ tests/_data/btrfs-subvolume.bin.gz
51
+ tests/_docs/Makefile
52
+ tests/_docs/__init__.py
53
+ tests/_docs/conf.py
54
+ tests/_docs/index.rst
@@ -1,10 +1,10 @@
1
1
  dissect.cstruct<5,>=4
2
- dissect.util<4,>=3
2
+ dissect.util<4,>=3.22.dev
3
3
 
4
4
  [dev]
5
5
  dissect.btrfs[full]
6
6
  dissect.cstruct<5.0.dev,>=4.0.dev
7
- dissect.util<4.0.dev,>=3.0.dev
7
+ dissect.util<4.0.dev,>=3.22.dev
8
8
 
9
9
  [full]
10
10
  zstandard
@@ -26,7 +26,7 @@ classifiers = [
26
26
  ]
27
27
  dependencies = [
28
28
  "dissect.cstruct>=4,<5",
29
- "dissect.util>=3,<4",
29
+ "dissect.util>=3.22.dev,<4", #TODO: Remove once we release a new dissect version
30
30
  ]
31
31
  dynamic = ["version"]
32
32
 
@@ -50,7 +50,7 @@ lzo = [
50
50
  dev = [
51
51
  "dissect.btrfs[full]",
52
52
  "dissect.cstruct>=4.0.dev,<5.0.dev",
53
- "dissect.util>=3.0.dev,<4.0.dev",
53
+ "dissect.util>=3.22.dev,<4.0.dev", #TODO: Remove once we release a new dissect version
54
54
  ]
55
55
 
56
56
  [tool.ruff]
@@ -0,0 +1,24 @@
1
+ # Minimal makefile for Sphinx documentation
2
+ #
3
+
4
+ # You can set these variables from the command line, and also
5
+ # from the environment for the first two.
6
+ SPHINXOPTS ?= -jauto -w $(BUILDDIR)/warnings.log --fail-on-warning
7
+ SPHINXBUILD ?= sphinx-build
8
+ SOURCEDIR = .
9
+ BUILDDIR = build
10
+
11
+ # Put it first so that "make" without argument is like "make help".
12
+ help:
13
+ @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14
+
15
+ .PHONY: clean help Makefile
16
+
17
+ clean: Makefile
18
+ rm -rf api
19
+ @$(SPHINXBUILD) -M clean "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
20
+
21
+ # Catch-all target: route all unknown targets to Sphinx using the new
22
+ # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
23
+ %: Makefile
24
+ @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
File without changes
@@ -0,0 +1,41 @@
1
+ project = "dissect.btrfs"
2
+
3
+ extensions = [
4
+ "autoapi.extension",
5
+ "sphinx.ext.autodoc",
6
+ "sphinx.ext.autosectionlabel",
7
+ "sphinx.ext.doctest",
8
+ "sphinx.ext.napoleon",
9
+ "sphinx_argparse_cli",
10
+ ]
11
+
12
+ exclude_patterns = []
13
+
14
+ html_theme = "furo"
15
+
16
+ autoapi_type = "python"
17
+ autoapi_dirs = ["../../dissect/"]
18
+ autoapi_ignore = ["*tests*", "*.tox*", "*venv*", "*examples*"]
19
+ autoapi_python_use_implicit_namespaces = True
20
+ autoapi_add_toctree_entry = False
21
+ autoapi_root = "api"
22
+ autoapi_options = [
23
+ "members",
24
+ "undoc-members",
25
+ "show-inheritance",
26
+ "show-module-summary",
27
+ "special-members",
28
+ "imported-members",
29
+ ]
30
+ autoapi_keep_files = True
31
+ autoapi_template_dir = "_templates/autoapi"
32
+
33
+ autodoc_typehints = "signature"
34
+ autodoc_member_order = "groupwise"
35
+
36
+ autosectionlabel_prefix_document = True
37
+
38
+ suppress_warnings = [
39
+ # https://github.com/readthedocs/sphinx-autoapi/issues/285
40
+ "autoapi.python_import_resolution",
41
+ ]
@@ -0,0 +1,8 @@
1
+ API Reference
2
+ =============
3
+
4
+ .. toctree::
5
+ :maxdepth: 1
6
+ :glob:
7
+
8
+ /api/*/*/index
@@ -32,61 +32,61 @@ def open_files_gz(names: list[str], mode: str = "rb") -> Iterator[list[gzip.Gzip
32
32
 
33
33
  @pytest.fixture
34
34
  def btrfs_default() -> Iterator[BinaryIO]:
35
- yield from open_file_gz("data/btrfs-default.bin.gz")
35
+ yield from open_file_gz("_data/btrfs-default.bin.gz")
36
36
 
37
37
 
38
38
  @pytest.fixture
39
39
  def btrfs_sparse() -> Iterator[BinaryIO]:
40
- yield from open_file_gz("data/btrfs-sparse.bin.gz")
40
+ yield from open_file_gz("_data/btrfs-sparse.bin.gz")
41
41
 
42
42
 
43
43
  @pytest.fixture
44
44
  def btrfs_subvolume() -> Iterator[BinaryIO]:
45
- yield from open_file_gz("data/btrfs-subvolume.bin.gz")
45
+ yield from open_file_gz("_data/btrfs-subvolume.bin.gz")
46
46
 
47
47
 
48
48
  @pytest.fixture
49
49
  def btrfs_subvolume_nested() -> Iterator[BinaryIO]:
50
- yield from open_file_gz("data/btrfs-subvolume-nested.bin.gz")
50
+ yield from open_file_gz("_data/btrfs-subvolume-nested.bin.gz")
51
51
 
52
52
 
53
53
  @pytest.fixture
54
54
  def btrfs_subvolume_custom_default() -> Iterator[BinaryIO]:
55
- yield from open_file_gz("data/btrfs-subvolume-custom-default.bin.gz")
55
+ yield from open_file_gz("_data/btrfs-subvolume-custom-default.bin.gz")
56
56
 
57
57
 
58
58
  @pytest.fixture
59
59
  def btrfs_subvolume_snapshot() -> Iterator[BinaryIO]:
60
- yield from open_file_gz("data/btrfs-subvolume-snapshot.bin.gz")
60
+ yield from open_file_gz("_data/btrfs-subvolume-snapshot.bin.gz")
61
61
 
62
62
 
63
63
  @pytest.fixture
64
64
  def btrfs_compression() -> Iterator[BinaryIO]:
65
- yield from open_file_gz("data/btrfs-compression.bin.gz")
65
+ yield from open_file_gz("_data/btrfs-compression.bin.gz")
66
66
 
67
67
 
68
68
  @pytest.fixture
69
69
  def btrfs_profile_dup() -> Iterator[list[BinaryIO]]:
70
- yield from open_files_gz(["data/btrfs-dup-1.bin.gz", "data/btrfs-dup-2.bin.gz"])
70
+ yield from open_files_gz(["_data/btrfs-dup-1.bin.gz", "_data/btrfs-dup-2.bin.gz"])
71
71
 
72
72
 
73
73
  @pytest.fixture
74
74
  def btrfs_profile_raid0() -> Iterator[list[BinaryIO]]:
75
- yield from open_files_gz(["data/btrfs-raid0-1.bin.gz", "data/btrfs-raid0-2.bin.gz"])
75
+ yield from open_files_gz(["_data/btrfs-raid0-1.bin.gz", "_data/btrfs-raid0-2.bin.gz"])
76
76
 
77
77
 
78
78
  @pytest.fixture
79
79
  def btrfs_profile_raid1() -> Iterator[list[BinaryIO]]:
80
- yield from open_files_gz(["data/btrfs-raid1-1.bin.gz", "data/btrfs-raid1-2.bin.gz"])
80
+ yield from open_files_gz(["_data/btrfs-raid1-1.bin.gz", "_data/btrfs-raid1-2.bin.gz"])
81
81
 
82
82
 
83
83
  @pytest.fixture
84
84
  def btrfs_profile_raid1c3() -> Iterator[list[BinaryIO]]:
85
85
  yield from open_files_gz(
86
86
  [
87
- "data/btrfs-raid1c3-1.bin.gz",
88
- "data/btrfs-raid1c3-2.bin.gz",
89
- "data/btrfs-raid1c3-3.bin.gz",
87
+ "_data/btrfs-raid1c3-1.bin.gz",
88
+ "_data/btrfs-raid1c3-2.bin.gz",
89
+ "_data/btrfs-raid1c3-3.bin.gz",
90
90
  ]
91
91
  )
92
92
 
@@ -95,24 +95,24 @@ def btrfs_profile_raid1c3() -> Iterator[list[BinaryIO]]:
95
95
  def btrfs_profile_raid1c4() -> Iterator[list[BinaryIO]]:
96
96
  yield from open_files_gz(
97
97
  [
98
- "data/btrfs-raid1c4-1.bin.gz",
99
- "data/btrfs-raid1c4-2.bin.gz",
100
- "data/btrfs-raid1c4-3.bin.gz",
101
- "data/btrfs-raid1c4-4.bin.gz",
98
+ "_data/btrfs-raid1c4-1.bin.gz",
99
+ "_data/btrfs-raid1c4-2.bin.gz",
100
+ "_data/btrfs-raid1c4-3.bin.gz",
101
+ "_data/btrfs-raid1c4-4.bin.gz",
102
102
  ]
103
103
  )
104
104
 
105
105
 
106
106
  @pytest.fixture
107
107
  def btrfs_profile_raid5() -> Iterator[list[BinaryIO]]:
108
- yield from open_files_gz(["data/btrfs-raid5-1.bin.gz", "data/btrfs-raid5-2.bin.gz"])
108
+ yield from open_files_gz(["_data/btrfs-raid5-1.bin.gz", "_data/btrfs-raid5-2.bin.gz"])
109
109
 
110
110
 
111
111
  @pytest.fixture
112
112
  def btrfs_profile_raid6() -> Iterator[list[BinaryIO]]:
113
- yield from open_files_gz(["data/btrfs-raid6-1.bin.gz", "data/btrfs-raid6-2.bin.gz", "data/btrfs-raid6-3.bin.gz"])
113
+ yield from open_files_gz(["_data/btrfs-raid6-1.bin.gz", "_data/btrfs-raid6-2.bin.gz", "_data/btrfs-raid6-3.bin.gz"])
114
114
 
115
115
 
116
116
  @pytest.fixture
117
117
  def btrfs_profile_raid10() -> Iterator[list[BinaryIO]]:
118
- yield from open_files_gz(["data/btrfs-raid10-1.bin.gz", "data/btrfs-raid10-2.bin.gz"])
118
+ yield from open_files_gz(["_data/btrfs-raid10-1.bin.gz", "_data/btrfs-raid10-2.bin.gz"])
@@ -62,12 +62,12 @@ deps =
62
62
  sphinx-design
63
63
  furo
64
64
  commands =
65
- make -C tests/docs clean
66
- make -C tests/docs html
65
+ make -C tests/_docs clean
66
+ make -C tests/_docs html
67
67
 
68
68
  [testenv:docs-linkcheck]
69
69
  allowlist_externals = make
70
70
  deps = {[testenv:docs-build]deps}
71
71
  commands =
72
- make -C tests/docs clean
73
- make -C tests/docs linkcheck
72
+ make -C tests/_docs clean
73
+ make -C tests/_docs linkcheck
@@ -1,27 +0,0 @@
1
- tests/data/btrfs-default.bin.gz filter=lfs diff=lfs merge=lfs -text
2
- tests/data/btrfs-compression.bin.gz filter=lfs diff=lfs merge=lfs -text
3
- tests/data/btrfs-sparse.bin.gz filter=lfs diff=lfs merge=lfs -text
4
- tests/data/btrfs-subvolume.bin.gz filter=lfs diff=lfs merge=lfs -text
5
- tests/data/btrfs-subvolume-snapshot.bin.gz filter=lfs diff=lfs merge=lfs -text
6
- tests/data/btrfs-subvolume-nested.bin.gz filter=lfs diff=lfs merge=lfs -text
7
- tests/data/btrfs-subvolume-custom-default.bin.gz filter=lfs diff=lfs merge=lfs -text
8
- tests/data/btrfs-dup-1.bin.gz filter=lfs diff=lfs merge=lfs -text
9
- tests/data/btrfs-dup-2.bin.gz filter=lfs diff=lfs merge=lfs -text
10
- tests/data/btrfs-raid0-1.bin.gz filter=lfs diff=lfs merge=lfs -text
11
- tests/data/btrfs-raid0-2.bin.gz filter=lfs diff=lfs merge=lfs -text
12
- tests/data/btrfs-raid1-1.bin.gz filter=lfs diff=lfs merge=lfs -text
13
- tests/data/btrfs-raid1-2.bin.gz filter=lfs diff=lfs merge=lfs -text
14
- tests/data/btrfs-raid1c3-1.bin.gz filter=lfs diff=lfs merge=lfs -text
15
- tests/data/btrfs-raid1c3-2.bin.gz filter=lfs diff=lfs merge=lfs -text
16
- tests/data/btrfs-raid1c3-3.bin.gz filter=lfs diff=lfs merge=lfs -text
17
- tests/data/btrfs-raid1c4-1.bin.gz filter=lfs diff=lfs merge=lfs -text
18
- tests/data/btrfs-raid1c4-2.bin.gz filter=lfs diff=lfs merge=lfs -text
19
- tests/data/btrfs-raid1c4-3.bin.gz filter=lfs diff=lfs merge=lfs -text
20
- tests/data/btrfs-raid1c4-4.bin.gz filter=lfs diff=lfs merge=lfs -text
21
- tests/data/btrfs-raid10-1.bin.gz filter=lfs diff=lfs merge=lfs -text
22
- tests/data/btrfs-raid10-2.bin.gz filter=lfs diff=lfs merge=lfs -text
23
- tests/data/btrfs-raid5-1.bin.gz filter=lfs diff=lfs merge=lfs -text
24
- tests/data/btrfs-raid5-2.bin.gz filter=lfs diff=lfs merge=lfs -text
25
- tests/data/btrfs-raid6-1.bin.gz filter=lfs diff=lfs merge=lfs -text
26
- tests/data/btrfs-raid6-2.bin.gz filter=lfs diff=lfs merge=lfs -text
27
- tests/data/btrfs-raid6-3.bin.gz filter=lfs diff=lfs merge=lfs -text
@@ -1,50 +0,0 @@
1
- .git-blame-ignore-revs
2
- .gitattributes
3
- COPYRIGHT
4
- LICENSE
5
- MANIFEST.in
6
- README.md
7
- pyproject.toml
8
- tox.ini
9
- dissect.btrfs.egg-info/PKG-INFO
10
- dissect.btrfs.egg-info/SOURCES.txt
11
- dissect.btrfs.egg-info/dependency_links.txt
12
- dissect.btrfs.egg-info/requires.txt
13
- dissect.btrfs.egg-info/top_level.txt
14
- dissect/btrfs/__init__.py
15
- dissect/btrfs/btrfs.py
16
- dissect/btrfs/c_btrfs.py
17
- dissect/btrfs/exceptions.py
18
- dissect/btrfs/stream.py
19
- dissect/btrfs/tree.py
20
- tests/__init__.py
21
- tests/conftest.py
22
- tests/test_btrfs.py
23
- tests/test_exceptions.py
24
- tests/data/btrfs-compression.bin.gz
25
- tests/data/btrfs-default.bin.gz
26
- tests/data/btrfs-dup-1.bin.gz
27
- tests/data/btrfs-dup-2.bin.gz
28
- tests/data/btrfs-raid0-1.bin.gz
29
- tests/data/btrfs-raid0-2.bin.gz
30
- tests/data/btrfs-raid1-1.bin.gz
31
- tests/data/btrfs-raid1-2.bin.gz
32
- tests/data/btrfs-raid10-1.bin.gz
33
- tests/data/btrfs-raid10-2.bin.gz
34
- tests/data/btrfs-raid1c3-1.bin.gz
35
- tests/data/btrfs-raid1c3-2.bin.gz
36
- tests/data/btrfs-raid1c3-3.bin.gz
37
- tests/data/btrfs-raid1c4-1.bin.gz
38
- tests/data/btrfs-raid1c4-2.bin.gz
39
- tests/data/btrfs-raid1c4-3.bin.gz
40
- tests/data/btrfs-raid1c4-4.bin.gz
41
- tests/data/btrfs-raid5-1.bin.gz
42
- tests/data/btrfs-raid5-2.bin.gz
43
- tests/data/btrfs-raid6-1.bin.gz
44
- tests/data/btrfs-raid6-2.bin.gz
45
- tests/data/btrfs-raid6-3.bin.gz
46
- tests/data/btrfs-sparse.bin.gz
47
- tests/data/btrfs-subvolume-custom-default.bin.gz
48
- tests/data/btrfs-subvolume-nested.bin.gz
49
- tests/data/btrfs-subvolume-snapshot.bin.gz
50
- tests/data/btrfs-subvolume.bin.gz