lkml.org 
[lkml]   [1999]   [Jul]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: help with cache
Hi Andrew.

> I'm writing a Partition Magic clone, and I've got a spare hard
> drive to test it with. When my program (GNU parted) nukes the
> partition, I run mkfs on it. However, the old partition still
> appears to my program until I reboot.

> Is this a cache issue? How can I clear the cache? Are there
> any good references on how the cache works?

I note that when one uses fdisk to repartition a disk, one of the
things it does when one writes out the new partition table is to
attempt to resync the disk.

You may therefore wish to look at the source for fdisk to see
precicely what it does there, and then emulate that...

Best wishes from Riley.

+----------------------------------------------------------------------+
| There is something frustrating about the quality and speed of Linux |
| development, ie., the quality is too high and the speed is too high, |
| in other words, I can implement this XXXX feature, but I bet someone |
| else has already done so and is just about to release their patch. |
+----------------------------------------------------------------------+
* ftp://ftp.MemAlpha.cx/pub/rhw/Linux
* http://www.MemAlpha.cx/kernel.versions.html


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.217 / U:0.660 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site