mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Martín Marqués" <martin@bugs.unl.edu.ar>
To: linux-kernel@vger.kernel.org
Subject: Fwd: Re: OT: svscan and the hard disk
Date: Fri, 30 Nov 2001 09:33:21 -0300	[thread overview]
Message-ID: <20011130123323.CED6DFA61@bugs.unl.edu.ar> (raw)

Any thoughts on what DJB thinks of the Linux FS?

Sorry for him, each day I convince myself of not using Qmail ever!

Saludos... :-)

----------  Forwarded Message  ----------

Subject: Re: OT: svscan and the hard disk
Date: 30 Nov 2001 02:05:35 -0000
From: "D. J. Bernstein" <djb@cr.yp.to>
To: qmail@list.cr.yp.to

Pavel Kankovsky writes:
> all my attempts to find any piece of standard/specification/documentation
> saying that fs metadata are to be updated synchronously have failed so far

doc/smm/03.fsck_ffs/2.t

The guarantees provided by FFS make it reasonably easy for mail-handling
software to perform reliable disk transactions. The speed is adequate
for most sites.

The Linux filesystem designers, ignorant of the demands of critical
applications, screwed this up in two ways:

   * They broke compatibility, by failing to provide the FFS system
     calls with the FFS guarantees.

     They wanted an asynchronous rename(), for example. They should have
     added an asyncrename() system call. Instead they foolishly changed
     the semantics of rename(), breaking mail-handling programs.

     Of course, the incompatibility isn't obvious to people who don't
     realize that some programs rely on rename() being synchronous.

   * They didn't provide any way to perform reliable transactions, other
     than syncing the whole filesystem (with, e.g., a directory fsync).

     Even sync mode is worrisome. Has anyone verified that blocks are
     written to disk in the correct order? This is not rocket science,
     but it does require a certain level of care with every operation.

     Supposedly there's a faster transaction mechanism now, but I don't
     trust it. Do the people writing the filesystem code understand that
     there _is_ a correct order for block writes?

The situation since then has become even worse. Filesystem reliability
has gone down the tubes: users are regularly suffering data corruption,
even when there _isn't_ a crash. There are at least four different
filesystem transaction interfaces.

I'm reorganizing most of my create-one-file programs to use a generic
atomicwrite tool, so that all the stupid portability issues are isolated
inside one program. Meanwhile, qmail 2 uses its own internal filesystem
for the queue.

---Dan
n

-------------------------------------------------------

-- 
Porqué usar una base de datos relacional cualquiera,
si podés usar PostgreSQL?
-----------------------------------------------------------------
Martín Marqués                  |        mmarques@unl.edu.ar
Programador, Administrador, DBA |       Centro de Telematica
                       Universidad Nacional
                            del Litoral
-----------------------------------------------------------------

             reply	other threads:[~2001-11-30 12:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-30 12:33 Martín Marqués [this message]
2001-11-30 23:29 ` José Luis Domingo López
2001-11-30 23:41   ` Martín Marqués
2001-12-03 18:45   ` H. Peter Anvin

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=20011130123323.CED6DFA61@bugs.unl.edu.ar \
    --to=martin@bugs.unl.edu.ar \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®