[Top] [All Lists]

how to sync / commit data to disk?

To: xfs@xxxxxxxxxxx
Subject: how to sync / commit data to disk?
From: "Peter Gervai" <grinapo@xxxxxxxxx>
Date: Tue, 23 Jan 2007 16:16:59 +0100
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Ng242LHfpHhFJ+0B3HMI/HVT3s04lo+TkvcHec9+9T8pQZnIHlJl9RwTf0CT6v57VhrhyBJ8JNaBYYLTUzuFaZSXNh1IUb0d77xyyZPMk+C4zyGvSQe6QctiMDwz0QXvMFhyiFnRxxCeZ41W12oT/j93RrCUQ08WNfARVi2njXM=
Sender: xfs-bounce@xxxxxxxxxxx

[Tried to search archieves, found nothing, probably my keywords are bad. :-)]

What is the recommended way to make sure that a file is written
physically to the disk? (apart from the cache of the disk.)

This problem seem to have arisen in grub bootloader under Debian linux
(and most probably everywhere else): it must be sure that the copied
files are there, and can be addressed by C/H/S and modified there, at
the given sector address.

My educated guess would be
xfs_freeze -f
xfs_freeze -u

but I give a large chance to be wrong about it.


Please cc on me if possible. Thanks.


<Prev in Thread] Current Thread [Next in Thread>