---
name: "blk_integrity_compare"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/blk_integrity_compare"
---

# blk\_integrity\_compare(9)

Compare integrity profile of two disks

## NAME

blk\_integrity\_compare - Compare integrity profile of two disks

## SYNOPSIS

**int blk\_integrity\_compare(struct gendisk \*** *gd1***, struct gendisk \*** *gd2***);**

## ARGUMENTS

*gd1*

Disk to compare

*gd2*

Disk to compare

## DESCRIPTION

Meta-devices like DM and MD need to verify that all sub-devices use the same integrity format before advertising to upper layers that they can send/receive integrity metadata. This function can be used to check whether two gendisk devices have compatible integrity formats.

## COPYRIGHT
