All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Masover <ninja@slaphack.com>
To: Toby Thain <toby@smartgames.ca>
Cc: reiserfs-list@namesys.com
Subject: Re: somewhat OT query on journalling
Date: Wed, 19 Jul 2006 14:09:15 -0500	[thread overview]
Message-ID: <44BE835B.7020806@slaphack.com> (raw)
In-Reply-To: <BAYC1-PASMTP07DA447E0F0B88B3C634ECBF600@CEZ.ICE>

Toby Thain wrote:
> 
> On 19-Jul-06, at 11:27 AM, Payal Rathod wrote:
> 
>> Hi, ...
>> And lastly don't the journalling fs give a false sense of security to
>> the user, saying that the data is written to disk when in reality only an
>> entry is made in journal and data is still not committed to disk.
> 
> This last one is easy to answer: No. Regardless of the filesystem you're 
> using, there is no guarantee your data hits the disk until you fsync(). 
> Journalling filesystems don't change this. (And even after that, it 
> depends on the device doing the right thing :)

Interestingly, most modern IDE hard drives can not turn off write 
caching.  But, I'm guessing they have a big enough capacitor to flush 
that if you lose power.

I often turn off fsync, because it gets too abused.  There was a bug in 
Evolution where, when dragging columns, every time the display refreshed 
(as you were dragging), it would flush and fsync.  Now tell me, do I 
really need to be absolutely sure that, when recovering from a crash, my 
Evolution column widths are EXACTLY where they were while I was dragging 
the columns?

My philosophy is, unless you have a UPS device, loss of power will 
always result in lost data.  Crashes will also more often than not 
result in lost data.  So do frequent backups and have a 
managed/monitored UPS, so that when you lose power, your system flushes 
everything to disk and shuts down.

  reply	other threads:[~2006-07-19 19:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-19 15:27 somewhat OT query on journalling Payal Rathod
2006-07-19 17:30 ` Toby Thain
2006-07-19 17:30   ` Toby Thain
2006-07-19 19:09     ` David Masover [this message]
2006-07-19 19:19 ` David Masover
2006-07-19 20:28 ` Hans Reiser
2006-07-21 12:45   ` Payal Rathod
2006-07-21 18:54     ` David Masover
2006-07-21 21:26       ` Andreas Schäfer
2006-07-21 21:53         ` David Masover
2006-07-22  0:54           ` Hans Reiser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44BE835B.7020806@slaphack.com \
    --to=ninja@slaphack.com \
    --cc=reiserfs-list@namesys.com \
    --cc=toby@smartgames.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.