libstorage-ng
Public Member Functions | List of all members
storage::ActivateCallbacks Class Referenceabstract

Other storage subsystems are activated automatically, e.g. More...

#include <Storage.h>

Inheritance diagram for storage::ActivateCallbacks:
[legend]
Collaboration diagram for storage::ActivateCallbacks:
[legend]

Public Member Functions

virtual bool multipath (bool looks_like_real_multipath) const =0
 Decide whether multipath should be activated. More...
 
virtual std::pair< bool, std::string > luks (const std::string &uuid, int attempt) const =0
 Decide whether the LUKS with uuid should be activated. More...
 

Detailed Description

Other storage subsystems are activated automatically, e.g.

LVM and MD RAID. This cannot be controlled since it is partly done by udev. This also means that the callbacks may change anytime when e.g. udev changes.

Member Function Documentation

◆ luks()

virtual std::pair<bool, std::string> storage::ActivateCallbacks::luks ( const std::string &  uuid,
int  attempt 
) const
pure virtual

Decide whether the LUKS with uuid should be activated.

TODO Add label parameter for LUKS2.

◆ multipath()

virtual bool storage::ActivateCallbacks::multipath ( bool  looks_like_real_multipath) const
pure virtual

Decide whether multipath should be activated.

The looks_like_real_multipath paramter is not reliable.


The documentation for this class was generated from the following file: