forked from KolibriOS/kolibrios
ext fs fix for deleting
git-svn-id: svn://kolibrios.org@6778 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
01700771dd
commit
ce0f946c73
@ -2248,22 +2248,20 @@ ext_Delete:
|
|||||||
jc .error_stack4_eax
|
jc .error_stack4_eax
|
||||||
xor ecx, ecx
|
xor ecx, ecx
|
||||||
call extfsTruncateFile ; free file's data
|
call extfsTruncateFile ; free file's data
|
||||||
xor eax, eax
|
|
||||||
movzx ecx, [ebp+EXTFS.superblock.inodeSize]
|
movzx ecx, [ebp+EXTFS.superblock.inodeSize]
|
||||||
rep stosb
|
|
||||||
lea edi, [ebp+EXTFS.inodeBuffer]
|
lea edi, [ebp+EXTFS.inodeBuffer]
|
||||||
push edx
|
xor eax, eax
|
||||||
|
push edx edi
|
||||||
|
rep stosb
|
||||||
call fsGetTime
|
call fsGetTime
|
||||||
pop edx
|
pop ebx ecx
|
||||||
add eax, 978307200
|
add eax, 978307200
|
||||||
mov [edi+INODE.deletedTime], eax
|
mov [ebx+INODE.deletedTime], eax
|
||||||
mov eax, [esp]
|
mov eax, [esp]
|
||||||
mov ebx, edi
|
|
||||||
call writeInode
|
call writeInode
|
||||||
jc .error_stack4_eax
|
jc .error_stack4_eax
|
||||||
pop eax
|
pop eax
|
||||||
dec eax
|
dec eax
|
||||||
mov ecx, edx
|
|
||||||
xor edx, edx
|
xor edx, edx
|
||||||
div [ebp+EXTFS.superblock.inodesPerGroup]
|
div [ebp+EXTFS.superblock.inodesPerGroup]
|
||||||
push edx eax
|
push edx eax
|
||||||
|
Loading…
Reference in New Issue
Block a user