fslib.c File Reference

#include <minix/config.h>
#include <ansi.h>
#include <limits.h>
#include <dirent.h>
#include <sys/types.h>
#include <minix/const.h>
#include <minix/type.h>
#include "fs/const.h"
#include "fs/type.h"
#include "fs/inode.h"
#include "fs/super.h"
#include <minix/fslib.h>

Include dependency graph for fslib.c:

Go to the source code of this file.

Functions

PUBLIC int bitmapsize (bit_t nr_bits, int block_size)
PUBLIC unsigned conv2 (int norm, int w)
PUBLIC long conv4 (int norm, long x)
PUBLIC void conv_inode (struct inode *rip, d1_inode *dip, d2_inode *dip2, int rw_flag, int magic)
PUBLIC void old_icopy (struct inode *rip, d1_inode *dip, int direction, int norm)
PUBLIC void new_icopy (struct inode *rip, d2_inode *dip, int direction, int norm)


Function Documentation

PUBLIC int bitmapsize bit_t  nr_bits,
int  block_size
 

Definition at line 34 of file fslib.c.

References FS_BITS_PER_BLOCK, and int().

Referenced by chksuper(), and Read_Super_Block().

PUBLIC unsigned conv2 int  norm,
int  w
 

Definition at line 49 of file fslib.c.

References BYTE.

Referenced by alloc_bit(), conv4(), free_bit(), new_icopy(), old_icopy(), rd_indir(), read_super(), and wr_indir().

PUBLIC long conv4 int  norm,
long  x
 

Definition at line 63 of file fslib.c.

References conv2(), FALSE, and long().

Referenced by new_icopy(), old_icopy(), rd_indir(), read_super(), search_dir(), and wr_indir().

PUBLIC void conv_inode struct inode rip,
d1_inode dip,
d2_inode dip2,
int  rw_flag,
int  magic
 

Definition at line 83 of file fslib.c.

References FALSE, new_icopy(), old_icopy(), SUPER_MAGIC, SUPER_REV, SUPER_V2, SUPER_V2_REV, SUPER_V3, and TRUE.

Referenced by Recover_Blocks().

PUBLIC void new_icopy struct inode rip,
d2_inode dip,
int  direction,
int  norm
 

Definition at line 153 of file fslib.c.

References conv2(), conv4(), i, READING, V2_INDIRECTS, V2_NR_DZONES, and V2_NR_TZONES.

Referenced by conv_inode(), and rw_inode().

PUBLIC void old_icopy struct inode rip,
d1_inode dip,
int  direction,
int  norm
 

Definition at line 106 of file fslib.c.

References conv2(), conv4(), i, READING, V1_INDIRECTS, V1_NR_DZONES, and V1_NR_TZONES.

Referenced by conv_inode(), and rw_inode().


Generated on Fri Apr 14 23:17:29 2006 for minix by  doxygen 1.4.6