/** Busca n lugares consecutivos devolviendo el id del primer bloque. */
EMUFS_BLOCK_ID emufs_fsc_buscar_n_lugares(EMUFS* efs, size_t n,
- EMUFS_FREE reg_size, EMUFS_FREE *freespace, int* err)
+ EMUFS_FREE size, EMUFS_FREE *freespace, int* err)
{
FILE *f_fsc;
EMUFS_FSC reg;
*err = EMUFS_ERROR_FILE_READ;
return EMUFS_NOT_FOUND;
}
- if (reg.freespace >= reg_size) {
+ if (reg.freespace >= size) {
int found = 1;
EMUFS_BLOCK_ID first_id = reg.marker;
*freespace = reg.freespace;
return EMUFS_NOT_FOUND;
}
/* no hay otro lugar consecutivo */
- if (reg.freespace < reg_size) {
+ if (reg.freespace < size) {
found = 0;
break;
}