Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 24 Jun 2002 16:25:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 24 Jun 2002 16:24:59 -0400 Received: from h24-67-14-151.cg.shawcable.net ([24.67.14.151]:56822 "EHLO webber.adilger.int") by vger.kernel.org with ESMTP id ; Mon, 24 Jun 2002 16:24:58 -0400 From: Andreas Dilger Date: Mon, 24 Jun 2002 14:23:19 -0600 To: Miles Lane Cc: LKML Subject: Re: Automatically mount or remount EXT3 partitions with EXT2 when a laptop is powered by a battery? Message-ID: <20020624202319.GS22411@clusterfs.com> Mail-Followup-To: Miles Lane , LKML References: <1024948946.30229.19.camel@turbulence.megapathdsl.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1024948946.30229.19.camel@turbulence.megapathdsl.net> User-Agent: Mutt/1.3.28i X-GPG-Key: 1024D/0D35BED6 X-GPG-Fingerprint: 7A37 5D79 BF1B CECA D44F 8A29 A488 39F5 0D35 BED6 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1388 Lines: 36 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/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/