From ce0f946c73065857ab2a156b4c1ac5244c69ae5b Mon Sep 17 00:00:00 2001 From: pathoswithin Date: Fri, 2 Dec 2016 14:34:11 +0000 Subject: [PATCH] ext fs fix for deleting git-svn-id: svn://kolibrios.org@6778 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/fs/ext.inc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/kernel/trunk/fs/ext.inc b/kernel/trunk/fs/ext.inc index c10af5ad16..a1f7a33ca6 100644 --- a/kernel/trunk/fs/ext.inc +++ b/kernel/trunk/fs/ext.inc @@ -2248,22 +2248,20 @@ ext_Delete: jc .error_stack4_eax xor ecx, ecx call extfsTruncateFile ; free file's data - xor eax, eax movzx ecx, [ebp+EXTFS.superblock.inodeSize] - rep stosb lea edi, [ebp+EXTFS.inodeBuffer] - push edx + xor eax, eax + push edx edi + rep stosb call fsGetTime - pop edx + pop ebx ecx add eax, 978307200 - mov [edi+INODE.deletedTime], eax + mov [ebx+INODE.deletedTime], eax mov eax, [esp] - mov ebx, edi call writeInode jc .error_stack4_eax pop eax dec eax - mov ecx, edx xor edx, edx div [ebp+EXTFS.superblock.inodesPerGroup] push edx eax