X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/a7a781b6b1a260c882ad779a9ecdaa517d1a6846..ebffcefec9ec5f0ea19f842d42f828055c9bc3c7:/emufs/fsc.h diff --git a/emufs/fsc.h b/emufs/fsc.h index 0a2df0d..230876c 100644 --- a/emufs/fsc.h +++ b/emufs/fsc.h @@ -20,6 +20,7 @@ *---------------------------------------------------------------------------- * Creado: vie abr 9 16:17:50 ART 2004 * Autores: Nicolás Dimov + * Leandro Lucarella *---------------------------------------------------------------------------- * * $Id$ @@ -42,16 +43,19 @@ #define EMUFS_FSC_EXT ".fsc" typedef struct emufs_fsc_t { - int block; - int free_space; + unsigned long int n_marker; + unsigned long int n_freespace; } EMUFS_FSC; -int emufs_fsc_agregar(EMUFS *, int, int); - -int emufs_fsc_actualizar(EMUFS *, int, int); - -int emufs_fsc_buscar_lugar(EMUFS *, unsigned long, int *); - -int emufs_fsc_get_fs(EMUFS *, int); +int emufs_fsc_crear(EMUFS*); +int emufs_fsc_agregar(EMUFS *, EMUFS_BLOCK_ID, EMUFS_FREE); +int emufs_fsc_agregar_gap(EMUFS *, EMUFS_OFFSET, EMUFS_FREE); +int emufs_fsc_remove_gap(EMUFS *emu, EMUFS_OFFSET n_reg_offset); +int emufs_fsc_actualizar_gap(EMUFS *, EMUFS_OFFSET, EMUFS_FREE); +int emufs_fsc_actualizar(EMUFS *, EMUFS_BLOCK_ID, EMUFS_FREE); +EMUFS_BLOCK_ID emufs_fsc_buscar_lugar(EMUFS *, EMUFS_FREE, EMUFS_FREE *); +EMUFS_FREE emufs_fsc_get_fs(EMUFS *, EMUFS_BLOCK_ID); +/*Devuelve el total de espacio libre que queda en el .dat*/ +EMUFS_FREE emufs_fsc_get_total_fs(EMUFS *); #endif /* _EMUFS_FSC_H */