X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/7a86d06abb03ced86951067cf341f228acfc9f30..e0b2f02fb7880eb26e4fc28e85253dc56b6c6aab:/emufs/fsc.h diff --git a/emufs/fsc.h b/emufs/fsc.h index ad3685f..0a2df0d 100644 --- a/emufs/fsc.h +++ b/emufs/fsc.h @@ -1,11 +1,57 @@ -#ifndef _FSC_H -#define _FSC_H -#include -#include +/* vim: set noexpandtab tabstop=4 shiftwidth=4: + *---------------------------------------------------------------------------- + * emufs + *---------------------------------------------------------------------------- + * This file is part of emufs. + * + * emufs is free software; you can redistribute it and/or modify it under the + * terms of the GNU General Public License as published by the Free Software + * Foundation; either version 2 of the License, or (at your option) any later + * version. + * + * emufs is distributed in the hope that it will be useful, but WITHOUT ANY + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along + * with emufs; if not, write to the Free Software Foundation, Inc., 59 Temple + * Place, Suite 330, Boston, MA 02111-1307 USA + *---------------------------------------------------------------------------- + * Creado: vie abr 9 16:17:50 ART 2004 + * Autores: Nicolás Dimov + *---------------------------------------------------------------------------- + * + * $Id$ + * + */ + +/** \file + * + * Archivo para administrar el espacio libre disponible. + * + * Interfaz del archivo para administrar el espacio libre disponible. + * + */ + +#ifndef _EMUFS_FSC_H +#define _EMUFS_FSC_H + #include "emufs.h" +#define EMUFS_FSC_EXT ".fsc" + +typedef struct emufs_fsc_t { + int block; + int free_space; +} EMUFS_FSC; + int emufs_fsc_agregar(EMUFS *, int, int); int emufs_fsc_actualizar(EMUFS *, int, int); -#endif /* _FSC_H */ +int emufs_fsc_buscar_lugar(EMUFS *, unsigned long, int *); + +int emufs_fsc_get_fs(EMUFS *, int); + +#endif /* _EMUFS_FSC_H */