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/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fatfs/Makefile') diff --git a/fatfs/Makefile b/fatfs/Makefile index 61b89302..7bdff95d 100644 --- a/fatfs/Makefile +++ b/fatfs/Makefile @@ -1,4 +1,4 @@ -# Copyright (C) 1997 Free Software Foundation +# Copyright (C) 1997, 2003 Free Software Foundation # Modified by Marcus Brinkmann, 2000-05-05 # # This program is free software; you can redistribute it and/or @@ -19,7 +19,7 @@ dir := fatfs makemode := server target = fatfs -SRCS = inode.c main.c dir.c pager.c fat.c virt-inode.c +SRCS = inode.c main.c dir.c pager.c fat.c virt-inode.c node-create.c LCLHDRS = fat.h fatfs.h virt-inode.h DIST_FILES = EXTENSIONS -- cgit v1.2.3