Blame src/plugins/s390.h

Packit Service 158247
#include <glib.h>
Packit Service 158247
#include <blockdev/utils.h>
Packit Service 158247
Packit Service 158247
GQuark bd_s390_error_quark (void);
Packit Service 158247
#define BD_S390_ERROR bd_s390_error_quark ()
Packit Service 158247
typedef enum {
Packit Service 158247
    BD_S390_ERROR_DEVICE,
Packit Service 158247
    BD_S390_ERROR_FORMAT_FAILED,
Packit Service 158247
    BD_S390_ERROR_DASDFMT,
Packit Service 158247
    BD_S390_ERROR_IO,
Packit Service 158247
    BD_S390_ERROR_TECH_UNAVAIL,
Packit Service 158247
} BDS390Error;
Packit Service 158247
Packit Service 158247
typedef enum {
Packit Service 158247
    BD_S390_TECH_DASD = 0,
Packit Service 158247
    BD_S390_TECH_ZFCP,
Packit Service 158247
} BDS390Tech;
Packit Service 158247
Packit Service 158247
typedef enum {
Packit Service 158247
    BD_S390_TECH_MODE_MODIFY  = 1 << 0,
Packit Service 158247
    BD_S390_TECH_MODE_QUERY   = 1 << 1,
Packit Service 158247
} BDS390TechMode;
Packit Service 158247
Packit Service 158247
/*
Packit Service 158247
 * If using the plugin as a standalone library, the following functions should
Packit Service 158247
 * be called to:
Packit Service 158247
 *
Packit Service 158247
 * check_deps() - check plugin's dependencies, returning TRUE if satisfied
Packit Service 158247
 * init()       - initialize the plugin, returning TRUE on success
Packit Service 158247
 * close()      - clean after the plugin at the end or if no longer used
Packit Service 158247
 *
Packit Service 158247
 */
Packit Service 158247
gboolean bd_s390_check_deps (void);
Packit Service 158247
gboolean bd_s390_init (void);
Packit Service 158247
void bd_s390_close (void);
Packit Service 158247
Packit Service 158247
gboolean bd_s390_is_tech_avail (BDS390Tech tech, guint64 mode, GError **error);
Packit Service 158247
Packit Service 158247
gboolean bd_s390_dasd_format (const gchar *dasd, const BDExtraArg **extra, GError **error);
Packit Service 158247
gboolean bd_s390_dasd_needs_format (const gchar *dasd, GError **error);
Packit Service 158247
gboolean bd_s390_dasd_online (const gchar *dasd, GError **error);
Packit Service 158247
gboolean bd_s390_dasd_is_ldl (const gchar *dasd, GError **error);
Packit Service 158247
gboolean bd_s390_dasd_is_fba (const gchar *dasd, GError **error);
Packit Service 158247
Packit Service 158247
gchar* bd_s390_sanitize_dev_input (const gchar *dev, GError **error);
Packit Service 158247
Packit Service 158247
gchar* bd_s390_zfcp_sanitize_wwpn_input (const gchar *wwpn, GError **error);
Packit Service 158247
gchar* bd_s390_zfcp_sanitize_lun_input (const gchar *lun, GError **error);
Packit Service 158247
gboolean bd_s390_zfcp_online (const gchar *devno, const gchar *wwpn, const gchar *lun, GError **error);
Packit Service 158247
gboolean bd_s390_zfcp_scsi_offline(const gchar *devno, const gchar *wwpn, const gchar *lun, GError **error);
Packit Service 158247
gboolean bd_s390_zfcp_offline(const gchar *devno, const gchar *wwpn, const gchar *lun, GError **error);