mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-11 10:50:01 +01:00
opal: add comments to all lockless opal calls.
This commit is contained in:
committed by
Milan Broz
parent
7db221e47e
commit
6b1f13fd0f
@@ -768,6 +768,11 @@ int opal_unlock(struct crypt_device *cd,
|
|||||||
return opal_lock_unlock(cd, dev, segment_number, vk, /* lock= */ false);
|
return opal_lock_unlock(cd, dev, segment_number, vk, /* lock= */ false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* It does not require opal lock. This completely destroys
|
||||||
|
* data on whole OPAL block device. Serialization does not
|
||||||
|
* make sense here.
|
||||||
|
*/
|
||||||
int opal_factory_reset(struct crypt_device *cd,
|
int opal_factory_reset(struct crypt_device *cd,
|
||||||
struct device *dev,
|
struct device *dev,
|
||||||
const char *password,
|
const char *password,
|
||||||
@@ -898,11 +903,17 @@ out:
|
|||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Does not require opal lock (immutable).
|
||||||
|
*/
|
||||||
int opal_supported(struct crypt_device *cd, struct device *dev)
|
int opal_supported(struct crypt_device *cd, struct device *dev)
|
||||||
{
|
{
|
||||||
return opal_query_status(cd, dev, OPAL_FL_SUPPORTED|OPAL_FL_LOCKING_SUPPORTED);
|
return opal_query_status(cd, dev, OPAL_FL_SUPPORTED|OPAL_FL_LOCKING_SUPPORTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Does not require opal lock (immutable).
|
||||||
|
*/
|
||||||
int opal_geometry(struct crypt_device *cd,
|
int opal_geometry(struct crypt_device *cd,
|
||||||
struct device *dev,
|
struct device *dev,
|
||||||
bool *ret_align,
|
bool *ret_align,
|
||||||
|
|||||||
Reference in New Issue
Block a user