block.c File Reference

#include <ubixfs/ubixfs.h>
#include <vfs/file.h>
#include <vfs/mount.h>

Go to the source code of this file.

Functions

int freeBlocks (int block, fileDescriptor *fd)
int getFreeBlocks (int count, fileDescriptor *fd)
void syncBat (struct vfs_mountPoint *mp)


Function Documentation

int freeBlocks ( int  block,
fileDescriptor fd 
)

Definition at line 79 of file block.c.

References blockAllocationTableEntry::attributes, ubixFSInfo::blockAllocationTable, blockAllocationTableEntry::nextBlock, and syncBat().

int getFreeBlocks ( int  count,
fileDescriptor fd 
)

Definition at line 96 of file block.c.

References blockAllocationTableEntry::attributes, ubixFSInfo::batEntries, ubixFSInfo::blockAllocationTable, blockAllocationTableEntry::nextBlock, syncBat(), and x1.

Referenced by ubixFSmkDir(), and writeUbixFS().

void syncBat ( struct vfs_mountPoint mp  ) 

Definition at line 74 of file block.c.

References ubixFSInfo::blockAllocationTable, vfs_mountPoint::device, device_node::devInfo, vfs_mountPoint::diskLabel, vfs_mountPoint::fsInfo, device_interface::info, vfs_mountPoint::partition, ubixDiskLabel::partitions, and device_interface::write.

Referenced by freeBlocks(), and getFreeBlocks().


Generated on Tue Dec 5 09:28:07 2006 for UbixOS V2 by  doxygen 1.4.7