mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-26 00:26:52 +03:00
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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user