mirror of
https://github.com/vivier/EMILE.git
synced 2024-09-08 19:54:38 +00:00
change interface of emile_scsi_create_container()
This commit is contained in:
parent
700ece4d7f
commit
fceb358601
@ -48,12 +48,11 @@ int emile_first_set_param_scsi(int fd, char *second_name)
|
|||||||
if (fd_second == -1)
|
if (fd_second == -1)
|
||||||
return EEMILE_CANNOT_OPEN_FILE;
|
return EEMILE_CANNOT_OPEN_FILE;
|
||||||
|
|
||||||
ret = emile_scsi_create_container(fd_second, container, max_blocks);
|
ret = emile_scsi_create_container(fd_second, unit_id, container, max_blocks);
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
return ret;
|
return ret;
|
||||||
close(fd_second);
|
close(fd_second);
|
||||||
|
|
||||||
*unit_id = container->unit_id;
|
|
||||||
*block_size = BLOCK_SIZE;
|
*block_size = BLOCK_SIZE;
|
||||||
|
|
||||||
*second_size = 0;
|
*second_size = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user