From: Frank Mayhar <fmayhar@google.com>
To: "Pádraig Brady" <P@draigBrady.com>
Cc: Karel Zak <kzak@redhat.com>, util-linux@vger.kernel.org
Subject: Re: [PATCH 0/4] Add functions to the fsck wrapper to improve standalone operation.
Date: Thu, 23 Feb 2012 10:04:34 -0800 [thread overview]
Message-ID: <1330020274.29515.30.camel@peace.lax.corp.google.com> (raw)
In-Reply-To: <4F3DC11E.9040205@draigBrady.com>
Sorry for the belated reply, I got bad news from the oncologist recently
and have been a bit distracted.
On Fri, 2012-02-17 at 02:53 +0000, Pádraig Brady wrote:
> On 02/16/2012 08:17 PM, Frank Mayhar wrote:
> > We have to do special stuff if an fsck fails for a particular file
> > system. Without running each fsck individually (something I want to
> > avoid for a number of reasons),
>
> please give a couple as this is a crucial point
One, memory use. Running each fsck individually means we use more
memory than allowing fsck itself to do the parallelization. Not a _lot_
more memory, certainly, but under certain conditions it can become
significant (e.g. when running in a cgroup, among other things).
Two, tracking multiple parallel instances of fsck from a shell script is
a lot less straightforward than allowing the fsck wrapper itself to do
so. The fsck wrapper already has the code to do the tracking, the
functions I added simply build on that code. Writing a shell script to
do the same thing (particularly when one has to handle fsck errors
specially, as we do) is redundant, potentially error-prone and (the real
kicker as far as I'm concerned) hard to maintain. It also (three) adds
complexity to the start-up scripts which are already plenty complex
_and_ it adds a dependency on that script which would not exist
otherwise. (That is, to do a "proper" fsck by hand one would either
have to set up the environment properly so that the script doesn't fall
over, or provide _another_ script that can be run independently. It's a
_lot_ easier to be able to just type "fsck".)
Adding a way to allow special handling to fsck itself is easy (the code
is really straightforward), reduces the fsck footprint and reduces
complexity, making things easier to maintain.
--
Frank Mayhar
fmayhar@google.com
prev parent reply other threads:[~2012-02-23 18:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-07 21:05 [PATCH 0/4] Add functions to the fsck wrapper to improve standalone operation Frank Mayhar
2012-02-15 14:00 ` Pádraig Brady
2012-02-15 15:09 ` Frank Mayhar
2012-02-15 16:06 ` Pádraig Brady
2012-02-15 17:42 ` Karel Zak
2012-02-16 20:17 ` Frank Mayhar
2012-02-17 2:53 ` Pádraig Brady
2012-02-23 18:04 ` Frank Mayhar [this message]
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=1330020274.29515.30.camel@peace.lax.corp.google.com \
--to=fmayhar@google.com \
--cc=P@draigBrady.com \
--cc=kzak@redhat.com \
--cc=util-linux@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