super.c File Reference

#include "fs.h"
#include <string.h>
#include <minix/com.h>
#include "buf.h"
#include "inode.h"
#include "super.h"
#include "const.h"

Include dependency graph for super.c:

Go to the source code of this file.

Functions

PUBLIC bit_t alloc_bit (struct super_block *sp, int map, bit_t origin)
PUBLIC void free_bit (struct super_block *sp, int map, bit_t bit_returned)
PUBLIC struct super_blockget_super (dev_t dev)
PUBLIC int get_block_size (dev_t dev)
PUBLIC int mounted (struct inode *rip)
PUBLIC int read_super (struct super_block *sp)


Function Documentation

PUBLIC bit_t alloc_bit struct super_block sp,
int  map,
bit_t  origin
 

Definition at line 25 of file super.c.

References b, bcount, bp, conv2(), DIRTY, FS_BITCHUNK_BITS, FS_BITMAP_CHUNKS, FS_BITS_PER_BLOCK, get_block(), i, IMAP, k, MAP_BLOCK, NO_BIT, NO_NUM, NORMAL, panic, put_block(), and START_BLOCK.

Referenced by alloc_inode(), and alloc_zone().

PUBLIC void free_bit struct super_block sp,
int  map,
bit_t  bit_returned
 

Definition at line 101 of file super.c.

References bp, conv2(), DIRTY, FS_BITCHUNK_BITS, FS_BITS_PER_BLOCK, get_block(), IMAP, k, MAP_BLOCK, NO_NUM, NORMAL, panic, put_block(), and START_BLOCK.

Referenced by alloc_inode(), free_inode(), and free_zone().

PUBLIC int get_block_size dev_t  dev  ) 
 

Definition at line 168 of file super.c.

References NO_DEV, NO_NUM, NR_SUPERS, panic, and sp.

PUBLIC struct super_block* get_super dev_t  dev  ) 
 

Definition at line 146 of file super.c.

References NIL_SUPER, NO_DEV, NO_NUM, NR_SUPERS, panic, and sp.

PUBLIC int mounted struct inode rip  ) 
 

Definition at line 190 of file super.c.

References dev, FALSE, if(), NR_SUPERS, root_dev, sp, and TRUE.

Referenced by do_close().

PUBLIC int read_super struct super_block sp  ) 
 

Definition at line 210 of file super.c.

References _MAX_BLOCK_SIZE, _MIN_BLOCK_SIZE, _STATIC_BLOCK_SIZE, BYTE_SWAP, conv2(), conv4(), dev, dev_io(), DEV_READ, EINVAL, FS_PROC_NR, magic, memcpy(), NO_DEV, NO_NUM, OK, panic, printf, r, SUPER_BLOCK_BYTES, SUPER_MAGIC, SUPER_SIZE, SUPER_V2, SUPER_V3, V1, V1_INDIRECTS, V1_INODE_SIZE, V1_INODES_PER_BLOCK, V1_NR_DZONES, V2, V2_INDIRECTS, V2_INODE_SIZE, V2_INODES_PER_BLOCK, V2_NR_DZONES, V3, and version.

Referenced by init_root().


Generated on Fri Apr 14 23:21:09 2006 for minix by  doxygen 1.4.6