static void
read_tables(void) {
unsigned long inodes = get_ninodes();
- unsigned long buffsz = get_inode_buffer_size();
- unsigned long norm_first_zone = first_zone_data();
- unsigned long first_zone = get_first_zone();
+ size_t buffsz = get_inode_buffer_size();
+ off_t norm_first_zone = first_zone_data();
+ off_t first_zone = get_first_zone();
unsigned long zones = get_nzones();
unsigned long imaps = get_nimaps();
unsigned long zmaps = get_nzmaps();
check_file2(struct minix2_inode *dir, unsigned int offset) {
static char blk[MINIX_BLOCK_SIZE];
struct minix2_inode *inode;
- unsigned long ino;
+ ino_t ino;
char *name;
int block;
static void
recursive_check(unsigned int ino) {
struct minix_inode *dir;
- unsigned int offset;
+ off_t offset;
dir = Inode + ino;
if (!S_ISDIR(dir->i_mode))
static void
recursive_check2(unsigned int ino) {
struct minix2_inode *dir;
- unsigned int offset;
+ off_t offset;
dir = Inode2 + ino;
if (!S_ISDIR(dir->i_mode))
static void write_tables(void) {
unsigned long imaps = get_nimaps();
unsigned long zmaps = get_nzmaps();
- unsigned long buffsz = get_inode_buffer_size();
+ size_t buffsz = get_inode_buffer_size();
/* Mark the super block valid. */
super_set_state();
* Perform a test of a block; return the number of
* blocks readable/writeable.
*/
-static long do_check(char * buffer, int try, unsigned int current_block) {
- long got;
+static size_t do_check(char * buffer, int try, unsigned int current_block) {
+ ssize_t got;
/* Seek to the correct loc. */
if (lseek(DEV, current_block * MINIX_BLOCK_SIZE, SEEK_SET) !=
}
static void check_blocks(void) {
- int try,got;
+ size_t try, got;
static char buffer[MINIX_BLOCK_SIZE * TEST_BUFFER_BLOCKS];
unsigned long zones = get_nzones();
unsigned long first_zone = get_first_zone();