From 6ea08a8bb3f89234d9a4283cbbe96841053a1c93 Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Fri, 27 Apr 2012 16:37:37 +0000 Subject: [PATCH] disk_sync now flushes both caches even in compatibility mode git-svn-id: svn://kolibrios.org@2653 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/blkdev/disk_cache.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kernel/trunk/blkdev/disk_cache.inc b/kernel/trunk/blkdev/disk_cache.inc index be08ab1b4d..059c32388f 100644 --- a/kernel/trunk/blkdev/disk_cache.inc +++ b/kernel/trunk/blkdev/disk_cache.inc @@ -608,7 +608,12 @@ disk_sync: ; Compatibility hack: if PARTITION.Disk is 'old', there is no DISK structure, ; this request should be processed by write_cache. cmp esi, 'old' - jz write_cache + jnz @f + mov [hdd_appl_data], 0 + call write_cache + mov [hdd_appl_data], 1 + jmp write_cache +@@: ; The algorithm is straightforward. push esi push esi ; for second write_cache64