public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* Re: how to sync / commit data to disk?
@ 2007-01-24 16:28 James Pearson
  0 siblings, 0 replies; 11+ messages in thread
From: James Pearson @ 2007-01-24 16:28 UTC (permalink / raw)
  To: xfs

>> grub is broken
>> 
>> this comes up all the time, there are various work-arounds but it
>> doesn't change the fact that GRUB IS BROKEN
>> 
>> it would be nice if someone would just address it from that end
>> 
>> > xfs_freeze -f
>> > sync
>> > xfs_freeze -u
>> 
>> sync before freeze (actually, I'm not sure a sync there is necessary
>> but it can't hurt)
> 
> Its not necessary (would be a bug if so).
> 
> FWIW, this hack can be better achieved in a filesystem independent way
> by doing a remount,ro ... remount,rw instead of freeze/thaw.

This is the way that I do it - based on info in an earlier posting on 
this list:

<http://marc.theaimsgroup.com/?l=linux-xfs&m=112096901910385&w=2>

James Pearson

^ permalink raw reply	[flat|nested] 11+ messages in thread
* how to sync / commit data to disk?
@ 2007-01-23 15:16 Peter Gervai
  2007-01-23 15:58 ` Geir A. Myrestrand
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Peter Gervai @ 2007-01-23 15:16 UTC (permalink / raw)
  To: xfs

Hello,

[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
sync
xfs_freeze -u

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

Ideas?

Please cc on me if possible. Thanks.

-- 
 byte-byte,
    grin

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-01-24 16:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-24 16:28 how to sync / commit data to disk? James Pearson
  -- strict thread matches above, loose matches on Subject: below --
2007-01-23 15:16 Peter Gervai
2007-01-23 15:58 ` Geir A. Myrestrand
2007-01-23 16:08 ` Eric Sandeen
2007-01-23 20:33   ` Peter Gervai
2007-01-23 21:43     ` Eric Sandeen
2007-01-24  6:21     ` Chris Wedgwood
2007-01-23 16:50 ` Chris Wedgwood
2007-01-23 22:24   ` Nathan Scott
2007-01-23 22:58     ` Chris Wedgwood
2007-01-23 16:58 ` Iustin Pop

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox