From acdd8445816fb1068728057ec65a8c6dd61bc1f5 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sat, 2 Aug 2003 21:33:35 +0000 Subject: 2003-08-01 Marco Gerards * node-create.c: New file. * Makefile (SRCS): Added node-created.c. * dir.c: Include . (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. --- fatfs/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fatfs/main.c') diff --git a/fatfs/main.c b/fatfs/main.c index b6916a24..2b14c013 100644 --- a/fatfs/main.c +++ b/fatfs/main.c @@ -43,7 +43,7 @@ int diskfs_name_max = FAT_NAME_MAX; int diskfs_maxsymlinks = 8; /* XXX */ /* This filesystem is not capable of writing yet. */ -int diskfs_readonly = 1, diskfs_hard_readonly = 1; +int diskfs_readonly = 1; /* Handy source of zeroes. */ vm_address_t zerocluster; -- cgit v1.2.3