summaryrefslogtreecommitdiff
path: root/fatfs
AgeCommit message (Collapse)Author
2005-07-12ext2fs/Marcus Brinkmann
fatfs/ 2005-07-12 Marcus Brinkmann <marcus@gnu.org> * pager.c (diskfs_get_filemap): Initialize upi->max_prot to PROT.
2003-08-092003-08-09 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* fat.h: Include <byteswap.h>.
2003-08-092003-08-09 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* fat.h (read_dword) [BYTE_ORDER == BIG_ENDIAN]: Use bswap_32 to swap bytes. (write_dword) [BYTE_ORDER == BIG_ENDIAN]: Likewise. (read_word) [BYTE_ORDER == BIG_ENDIAN]: Use bswap_16 to swap bytes. (write_word) [BYTE_ORDER == BIG_ENDIAN]: Likewise.
2003-08-062003-08-03 Marco Gerards <metgerards@student.han.nl>Marcus Brinkmann
* fatfs.h (struct disknode): New member DIRNODE. * inode.c (read_node): Added assertion to be sure the directory can always be found. Add directory dependancy to node by initializing DIRNODE and holding a reference. (diskfs_node_norefs): Release reference to DIRNODE. (write_node): Don't use diskfs_cached_lookup to lookup the directory, use DIRNODE instead and lock DP. Don't use diskfs_nput, use mutex_unlock instead. (diskfs_alloc_node): Add directory dependancy to node by initializing DIRNODE and holding a reference.
2003-08-042003-08-05 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* fat.c (fat_read_sblock): Catch error from store_read.
2003-08-032003-08-03 Marco Gerards <metgerards@student.han.nl>Marcus Brinkmann
* inode.c (read_node): Fix typo.
2003-08-022003-08-01 Marco Gerards <metgerards@student.han.nl>Marcus Brinkmann
* 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.
2003-07-29Note to self. Be *awake* when committing patchesJeff Bailey
2003-07-292003-07-29 Jeff Bailey <jbailey@nisa.net>Jeff Bailey
* fatfs.h (LOG2_BLOCKS_PER_CLUSTER): Fix typo.
2003-07-282003-07-17 Marcus Brinkmann <marcus@gnu.org>Jeff Bailey
* pager.c (find_cluster): Round to cluster size rather than adding cluster size.
2003-07-282003-07-14 Marco Gerards <metgerards@student.han.nl>Jeff Bailey
* 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.
2003-05-102003-04-26 Marco Gerards <metgerards@student.han.nl>Marcus Brinkmann
* dir.c (diskfs_get_directs): Consider ENTRY when adding "." and ".." for the rootnode. * inode.c (read_node): Use ifind instead of diskfs_cached_lookup and do not use diskfs_nput anymore. * main.c (diskfs_S_fsys_getfile): New function.
2002-12-03Initial check-in.Marcus Brinkmann