aboutsummaryrefslogtreecommitdiff
path: root/fatfs/fat.c
Commit message (Collapse)AuthorAgeFilesLines
* 2003-08-05 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2003-08-041-1/+5
| | | | * fat.c (fat_read_sblock): Catch error from store_read.
* 2003-08-01 Marco Gerards <metgerards@student.han.nl>Marcus Brinkmann2003-08-021-3/+17
| | | | | | | | | | | | | | | | | | * node-create.c: New file. * Makefile (SRCS): Added node-created.c. * dir.c: Include <hurd/fsys.h>. (diskfs_direnter_hard): Initialize a new block with zeros. Enter direntry and setup the virtual inode. Also handle directories correctly. (diskfs_rewrite_hard): Function rewritten. (diskfs_dirempty): Change logic to test if a file was deleted. * fat.c (fat_extend_chain): Unlock spin_lock when returning from function. Set dn->last to 0 when deallocating the complete file. Update dn->last when not deallocating the complete file. Set dn->first to zero when the complete file was deallocated. Also update dn->length_of_chain to the new amount of clusters in the chain. * main.c (diskfs_hard_readonly): Remove global variable.
* Note to self. Be *awake* when committing patchesJeff Bailey2003-07-291-1/+1
|
* 2003-07-14 Marco Gerards <metgerards@student.han.nl>Jeff Bailey2003-07-281-8/+7
| | | | | | | | | | | | | | | | | | | | | | * fat.c (fat_read_sblock): Don't test if the root dir size is a multiple of sectors_per_cluster. Reported by Barry deFreese (bddebian@cox.net). * fatfs.h (LOG2_BLOCKS_PER_CLUSTER): New macro. (FAT_FIRST_CLUSTER_BLOCK): Likewise. (fat_first_cluster_byte): Macro removed. * inode.c (read_node): Correctly setup diskfs_root_node for FAT32 filesystems. * pager.c (fat_getcluster): Check for reading beyond allocsize correctly for file systems with a clustersize > vm_page_size. (file_pager_read_small_page): Don't use byte offsets when calculating the block. (file_pager_read_huge_page): Likewise. (pending_clusters_write): Likewise. (file_pager_write_small_page): Likewise. (STAT_INC): Cast to void to suppress warning.
* Initial check-in.Marcus Brinkmann2002-12-031-0/+744