Add ability to shut down iSCSI connection

This commit is contained in:
Michael Brown
2006-12-21 17:17:47 +00:00
parent 7ce3df65c2
commit ab242a760d
4 changed files with 49 additions and 24 deletions

View File

@@ -32,7 +32,7 @@ int test_iscsiboot ( const char *initiator_iqn,
printf ( "Initialising %s\n", target_iqn );
if ( ( rc = init_iscsidev ( &test_iscsidev ) ) != 0 ) {
printf ( "Could not reach %s: %s\n", target_iqn,
strerror ( errno ) );
strerror ( rc ) );
return rc;
}
ibft_fill_data ( netdev, initiator_iqn, target, target_iqn );
@@ -49,5 +49,7 @@ int test_iscsiboot ( const char *initiator_iqn,
printf ( "Unregistering BIOS drive %#02x\n", drive.drive );
unregister_int13_drive ( &drive );
fini_iscsidev ( &test_iscsidev );
return rc;
}