Make the "drive number" option apply to iSCSI as well as AoE

This commit is contained in:
Michael Brown
2006-11-29 00:27:10 +00:00
parent 3234ef1b0b
commit 70d4b4f7cf
2 changed files with 8 additions and 3 deletions
+3 -1
View File
@@ -15,7 +15,8 @@ int test_iscsiboot ( const char *initiator_iqn,
const char *target_iqn,
const char *username,
const char *password,
struct net_device *netdev ) {
struct net_device *netdev,
unsigned int drivenum ) {
struct int13_drive drive;
int rc;
@@ -36,6 +37,7 @@ int test_iscsiboot ( const char *initiator_iqn,
ibft_fill_data ( netdev, initiator_iqn, target, target_iqn );
#endif
memset ( &drive, 0, sizeof ( drive ) );
drive.drive = drivenum;
drive.blockdev = &test_iscsidev.scsi.blockdev;
register_int13_drive ( &drive );
printf ( "Registered %s as BIOS drive %#02x\n",