Skip to content

Commit 034fce6

Browse files
committed
ctree: Add documentation for COMPRESS_*
The defrag_range ioctl can accept a compression type as parameter. Add some comments to make these values show up in the generated documentation.
1 parent 8673569 commit 034fce6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

btrfs/ctree.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,10 @@ def _struct_format(s):
283283
FT_XATTR: 'XATTR',
284284
}
285285

286-
COMPRESS_NONE = 0
287-
COMPRESS_ZLIB = 1
288-
COMPRESS_LZO = 2
289-
COMPRESS_ZSTD = 3
286+
COMPRESS_NONE = 0 #: no compression at all
287+
COMPRESS_ZLIB = 1 #: zlib compression
288+
COMPRESS_LZO = 2 #: lzo compression
289+
COMPRESS_ZSTD = 3 #: zstd compression
290290

291291
_compress_type_str_map = {
292292
COMPRESS_NONE: 'none',

0 commit comments

Comments
 (0)