
This patch changes the libminixfs API and implementation such that the library is at all times aware of how many total and used blocks there are in the file system. This removes the last upcall of libminixfs into file systems (fs_blockstats). In the process, make this part of the libminixfs API a little prettier and more robust. Change file systems accordingly. Since this change only adds to MFS being unable to deal with zones and blocks having different sizes, fail to mount such file systems immediately rather than triggering an assert later. Change-Id: I078e589c7e1be1fa691cf391bf5dfddd1baf2c86
23 lines
470 B
C
23 lines
470 B
C
#ifndef __MFS_GLO_H__
|
|
#define __MFS_GLO_H__
|
|
|
|
/* EXTERN should be extern except for the table file */
|
|
#ifdef _TABLE
|
|
#undef EXTERN
|
|
#define EXTERN
|
|
#endif
|
|
|
|
/* The following variables are used for returning results to the caller. */
|
|
EXTERN int err_code; /* temporary storage for error number */
|
|
|
|
EXTERN int cch[NR_INODES];
|
|
|
|
EXTERN dev_t fs_dev; /* The device that is handled by this FS proc.
|
|
*/
|
|
|
|
EXTERN zone_t used_zones;
|
|
|
|
extern struct fsdriver mfs_table;
|
|
|
|
#endif
|