Top | ![]() |
![]() |
![]() |
![]() |
gboolean bd_s390_init ();
Initializes the plugin. **This function is called automatically by the library's initialization functions.**
void
bd_s390_close ();
Cleans up after the plugin. **This function is called automatically by the library's functions that unload it.**
gboolean bd_s390_dasd_format (const gchar *dasd
,const BDExtraArg **extra
,GError **error
);
gboolean bd_s390_dasd_needs_format (const gchar *dasd
,GError **error
);
gchar * bd_s390_sanitize_dev_input (const gchar *dev
,GError **error
);
gboolean bd_s390_dasd_is_ldl (const gchar *dasd
,GError **error
);
gchar * bd_s390_zfcp_sanitize_wwpn_input (const gchar *wwpn
,GError **error
);
gchar * bd_s390_zfcp_sanitize_lun_input (const gchar *lun
,GError **error
);
gboolean bd_s390_zfcp_online (const gchar *devno
,const gchar *wwpn
,const gchar *lun
,GError **error
);
gboolean bd_s390_zfcp_scsi_offline (const gchar *devno
,const gchar *wwpn
,const gchar *lun
,GError **error
);
devno
: zfcp device number
wwpn
: zfcp WWPN (World Wide Port Number)
lun
: zfcp LUN (Logical Unit Number)
error
: (out): place to store error (if any)
whether a LUN was successfully removed from its associated WWPN
This function looks through /proc/scsi/scsi and manually removes LUNs from associated WWPNs. zFCP devices are SCSI devices accessible over FCP protocol. In z/OS the IODF (I/O definition file) contains basic information about the I/O config, but WWPN and LUN configuration is done at the OS level, hence this function becomes necessary when switching the device offline. This particular sequence of actions is for some reason unnecessary when switching the device offline. Chalk it up to s390x being s390x.