mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-11 19:00:02 +01:00
Add support for linear segment in device comparison.
This commit is contained in:
@@ -2440,6 +2440,9 @@ int crypt_compare_dm_devices(struct crypt_device *cd,
|
||||
case DM_INTEGRITY:
|
||||
r = _compare_integrity_devices(cd, s, t);
|
||||
break;
|
||||
case DM_LINEAR:
|
||||
r = (s->u.linear.offset == t->u.linear.offset) ? 0 : -EINVAL;
|
||||
break;
|
||||
default:
|
||||
r = -ENOTSUP;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user