X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/0a8c25d48c0fa1602556582885e33426cb2e05fa..94aef7aeac41c6c2bc364f9ce062cb4851a1ac7a:/emufs/fsc.h?ds=sidebyside diff --git a/emufs/fsc.h b/emufs/fsc.h index 01a72f1..408bcb5 100644 --- a/emufs/fsc.h +++ b/emufs/fsc.h @@ -43,18 +43,20 @@ #define EMUFS_FSC_EXT ".fsc" typedef struct emufs_fsc_t { - int block; - int free_space; + unsigned long int marker; + unsigned long int freespace; } EMUFS_FSC; 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); +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); - +EMUFS_FREE emufs_fsc_get_total_fs(EMUFS *); +EMUFS_FREE emufs_fsc_get_media_fs(EMUFS *); +int emufs_fsc_get_max_min_fs(EMUFS *, EMUFS_FREE *, EMUFS_FREE *); +int emufs_fsc_get_cant_bloques_vacios(EMUFS *emu); #endif /* _EMUFS_FSC_H */