MCPcopy Create free account
hub / github.com/F-Stack/f-stack / arc_get_compression

Function arc_get_compression

freebsd/contrib/openzfs/module/zfs/arc.c:1378–1383  ·  view source on GitHub ↗

* Indicates how this buffer is compressed in memory. If it is not compressed * the value will be ZIO_COMPRESS_OFF. It can be made normally readable with * arc_untransform() as long as it is also unencrypted. */

Source from the content-addressed store, hash-verified

1376 * arc_untransform() as long as it is also unencrypted.
1377 */
1378enum zio_compress
1379arc_get_compression(arc_buf_t *buf)
1380{
1381 return (ARC_BUF_COMPRESSED(buf) ?
1382 HDR_GET_COMPRESS(buf->b_hdr) : ZIO_COMPRESS_OFF);
1383}
1384
1385/*
1386 * Return the compression algorithm used to store this data in the ARC. If ARC

Callers 3

dbuf_readFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected