From owner-freebsd-fs@FreeBSD.ORG Sun Aug 22 20:35:53 2010 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 65E0110656A4; Sun, 22 Aug 2010 20:35:53 +0000 (UTC) (envelope-from sarawgi.aditya@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 230578FC18; Sun, 22 Aug 2010 20:35:52 +0000 (UTC) Received: by iwn36 with SMTP id 36so5774238iwn.13 for ; Sun, 22 Aug 2010 13:35:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=VtSDU9wnjkTAlgdhN7mn0upSWuvM34+QRsZF5kCpGJw=; b=D/yj+K73BLEwFFTt2E4JBg2/r+Ch+nZXtBNUrk9qQLZ73YjKVZKVhvkFhkYvG2Oz06 sSaZgcGijrYjgSwc7vcXk7wDtnoNQHbcMTwETrMsv2zKjoITv7k6cqf2gl6/z5Q58JNz AZ/lp9NJJh56Yjs3HEogzrt0X4ZsZ6znqMSyI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=GGWBf/nPUkERqHsvggxphCcI8yPLlVglJaJS5rF+S2fpgZfEXSk7vFrwjrJX7tZveS ssCBeHlqCPi/bmnmODoM9q7tU4y8N25UpnjViM8eGtLO2buCSV2G/ld/fwP6e527Gx+O 6qL1VsDMMtMmXUjuWFTA44Va/QxCS7z5UnyAc= MIME-Version: 1.0 Received: by 10.231.190.74 with SMTP id dh10mr5399281ibb.43.1282508030680; Sun, 22 Aug 2010 13:13:50 -0700 (PDT) Received: by 10.231.169.139 with HTTP; Sun, 22 Aug 2010 13:13:50 -0700 (PDT) In-Reply-To: <4C71075C.9010802@gmail.com> References: <4C71075C.9010802@gmail.com> Date: Mon, 23 Aug 2010 01:43:50 +0530 Message-ID: From: aditya sarawgi To: gnehzuil Content-Type: text/plain; charset=ISO-8859-1 Cc: fs@freebsd.org Subject: Re: [patch] ext4fs read only mode X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Aug 2010 20:35:53 -0000 On Sun, Aug 22, 2010 at 4:47 PM, gnehzuil wrote: > Hi all, > > This patch makes ext2fs can read ext4 filesystem in read-only mode. There > are two files in attachments. 'ext4fs_ro_makefile.patch' is for Makefile in > modules/ext2fs/. 'ext4fs_ro_src.patch' is for source code in fs/ext2fs/. > Please use the following command to mount disk: 'mount -t ext2fs -r /dev/XXX > /YYY'. > Hi, Since ext2fs and ext4fs are different, are we planning to have a different module for ext4fs and hence different source directories > Now you can use it to read data from ext4 filesystem in the following > features: > > + HAS_JOURNAL(*) > + FILE_TYPE > + SPARSE_SUPER > + HUGE_FILE > + EXTENTS > + DIR_NLINK > + UNINIT_BG > + FLEX_BG(*) > + EXTRA_ISIZE(*) > + DIR_INDEX(**) > > > * I don't implement this feature. However you don't need to worry about it > because it doesn't be used in read-only mode. > > ** I have implemented a hash directory index in ext2_lookup() function. But > there are two functions that I think they seem to be contaminated kernel > source code. So this patch doesn't include hash directory index. > > Please test it. > > > Best regards, > > lz > > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > > -- Cheers, Aditya Sarawgi