public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andreas Dilger <adilger@clusterfs.com>
To: Miles Lane <miles@megapathdsl.net>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: Automatically mount or remount EXT3 partitions with EXT2 when a laptop is powered by a battery?
Date: Mon, 24 Jun 2002 14:23:19 -0600	[thread overview]
Message-ID: <20020624202319.GS22411@clusterfs.com> (raw)
In-Reply-To: <1024948946.30229.19.camel@turbulence.megapathdsl.net>

On Jun 24, 2002  13:02 -0700, Miles Lane wrote:
> 1)  Add support to the boot/mounting process 
>     so that, if a machine is being powered by
>     battery, EXT3 partitions are mounted with
>     EXT2, instead?

Impossible right now.  While the on-disk format is the same, the
ext2 and ext3 drivers are totally different.

It's like asking if you can switch between IDE and SCSI drivers
automatically for a disk when you go on battery.
 
That said, it would be possible to update the ext3 code to allow it
to mount a filesystem without a journal by updating the journal
wrappers in include/linux/ext3_jbd.h.

Even so, the reasoning you give is a bad one - you are far safer
with ext3 on your laptop when it is running out of batteries,
because you are likely to run out of battery without unmounting
the filesystem cleanly, and that's just when you want ext3.

You should just change the flush parameters to be longer, or
figure out exactly why ext3 is writing stuff to disk when there
is no real I/O happening.

Cheers, Andreas
--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/


  reply	other threads:[~2002-06-24 20:25 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-24 20:02 Automatically mount or remount EXT3 partitions with EXT2 when a laptop is powered by a battery? Miles Lane
2002-06-24 20:23 ` Andreas Dilger [this message]
2002-06-24 20:27 ` Richard B. Johnson
2002-06-25 17:03 ` Automatically mount or remount EXT3 partitions with EXT2 when alaptop " Andrew Morton
2002-06-25 17:24   ` Miles Lane
2002-06-25 19:35     ` Andrew Morton
2002-07-03  3:02       ` Pavel Machek
2002-06-26  0:13   ` Stephen Tweedie
2002-06-26 18:39     ` Andrew Morton
2002-07-02 13:23       ` Stephen C. Tweedie
2002-07-03  3:04         ` Pavel Machek
2002-06-28 21:59   ` Daniel Kobras
2002-07-02 12:13     ` Stephen C. Tweedie
2002-07-03  3:04       ` Pavel Machek
2002-07-04 20:30         ` Stephen Tweedie
2002-07-04 22:05       ` Daniel Kobras
2002-07-05  7:59         ` Stephen Tweedie
2002-07-06  0:58           ` Pavel Machek
2002-07-23 11:14             ` Stephen C. Tweedie

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=20020624202319.GS22411@clusterfs.com \
    --to=adilger@clusterfs.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=miles@megapathdsl.net \
    /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