[RFC] e2fsprogs: Add ext4migrate

2007-03-19 Thread Aneesh Kumar K.V
This is work in progress The below patches add ext4migrate utility that helps in migrating a ext3 block mapped inode to ext4 extent mapped inode. I have split the patches into two. They don't build individually. The purpose of splitting the patches into two is to make the review easeir. The

[PATCH 1/2] e2fsprogs: Add ext4migrate

2007-03-19 Thread Aneesh Kumar K.V
From: Aneesh Kumar K.V [EMAIL PROTECTED] Add ext4migrate utility that helps in migrating a ext3 block mapped inode to ext4 extent mapped inode. ext4migrate command takes the below syntax ext4migrate [--display | --migrate ] image_name filename The --display option helps in displaying the block

[PATCH 2/2] Add extent related functions

2007-03-19 Thread Aneesh Kumar K.V
From: Aneesh Kumar K.V [EMAIL PROTECTED] The code is derived out of the latest ext4 kernel source. I have tried to keep the code as close as possible to the kernel sources. This makes sure that any fixes for the tree building code in kernel should be easily applied to ext4migrate. The ext3_ext

Re: [RFC][PATCH] sys_fallocate() system call

2007-03-19 Thread Amit K. Arora
On Sat, Mar 17, 2007 at 04:33:50PM +1100, Stephen Rothwell wrote: On Fri, 16 Mar 2007 20:01:01 +0530 Amit K. Arora [EMAIL PROTECTED] wrote: +asmlinkage long sys_fallocate(int fd, int mode, loff_t offset, loff_t len); --- linux-2.6.20.1.orig/include/asm-powerpc/systbl.h +++

Re: e2fsprogs coverity patch cid-04.diff

2007-03-19 Thread Theodore Tso
On Fri, Feb 09, 2007 at 06:11:35PM -0800, Brian D. Behlendorf wrote: This check is unnecessary since fs_type is guaranteed to be set earlier in the function. Coverity ID: 4: Deadcode The code was actually supposed to be dead, so in order to restore the old behavior (from before support for

Re: e2fsprogs coverity patch cid-05.diff

2007-03-19 Thread Theodore Tso
On Fri, Feb 09, 2007 at 06:11:41PM -0800, Brian D. Behlendorf wrote: array is initially set to NULL, so it is possible that readdir() will return NULL and leave array set to NULL. Thus we do need to check if array is NULL or check if num != 0. Coverity ID: 5: Forward NULL This wasn't the

Re: cleaned up ext4 patch series

2007-03-19 Thread Mingming Cao
On Mon, 2007-03-19 at 10:48 -0500, Dave Kleikamp wrote: Ted, I have rebased the ext4 patchset on 2.6.21-rc4 and cleaned up some bad whitespace and sparse warnings. The patches are here: http://www.kernel.org/pub/linux/kernel/people/shaggy/ext4/ext4-2007-03-19.tar.bz2 Untarred here:

Re: cleaned up ext4 patch series

2007-03-19 Thread Andreas Dilger
On Mar 19, 2007 09:15 -0800, Mingming Cao wrote: I wonder if we should create two branches: one branch for patches that are well discussed and tested, which Andrew could trust and pull to mm tree; and create another branch to store patches that are still under discussion and likely to be

[PATCH] 5/19 e2fsprogs f_extents_ee_len test

2007-03-19 Thread Andreas Dilger
Regression test for a bad ee_len field in an extent file. Binary patch file. Signed-off-by: Andreas Dilger [EMAIL PROTECTED] Signed-off-by: Girish Shilamkar [EMAIL PROTECTED] Cheers, Andreas -- Andreas Dilger Principal Software Engineer Cluster File Systems, Inc.

[PATCH] 3/19 e2fsprogs f_extents_bad_blk test

2007-03-19 Thread Andreas Dilger
Regression test for a bad block in an extent file. Binary patch file. Signed-off-by: Andreas Dilger [EMAIL PROTECTED] Signed-off-by: Girish Shilamkar [EMAIL PROTECTED] Cheers, Andreas -- Andreas Dilger Principal Software Engineer Cluster File Systems, Inc.

[PATCH] 4/19 e2fsprogs f_extents_ee_block test

2007-03-19 Thread Andreas Dilger
Regression test for a bad ee_block field in an extent file. Binary patch file. Signed-off-by: Andreas Dilger [EMAIL PROTECTED] Signed-off-by: Girish Shilamkar [EMAIL PROTECTED] Cheers, Andreas -- Andreas Dilger Principal Software Engineer Cluster File Systems, Inc.

[PATCH] 6/19 e2fsprogs f_extents_ee_start test

2007-03-19 Thread Andreas Dilger
Regression test for a bad ee_start field in an extent file. Binary patch file. Signed-off-by: Andreas Dilger [EMAIL PROTECTED] Signed-off-by: Girish Shilamkar [EMAIL PROTECTED] Cheers, Andreas -- Andreas Dilger Principal Software Engineer Cluster File Systems, Inc.

[PATCH] 7/19 e2fsprogs f_extents_eh_depth test

2007-03-19 Thread Andreas Dilger
Regression test for a bad eh_depth field in an extent file. Binary patch file. This test still fails with the current extents patch. It takes 2 runs of e2fsck to correct the problem. Signed-off-by: Andreas Dilger [EMAIL PROTECTED] Signed-off-by: Girish Shilamkar [EMAIL PROTECTED] Cheers,

[PATCH] 8/19 e2fsprogs f_extents_eh_entries test

2007-03-19 Thread Andreas Dilger
Regression test for a bad eh_entries field in an extent file. Binary patch file. Signed-off-by: Andreas Dilger [EMAIL PROTECTED] Signed-off-by: Girish Shilamkar [EMAIL PROTECTED] Cheers, Andreas -- Andreas Dilger Principal Software Engineer Cluster File Systems, Inc.

[PATCH] 12/19 e2fsprogs f_extents_ei_leaf test

2007-03-19 Thread Andreas Dilger
Regression test for a bad ei_leaf field in an extent file. Binary patch file. Signed-off-by: Andreas Dilger [EMAIL PROTECTED] Signed-off-by: Girish Shilamkar [EMAIL PROTECTED] Cheers, Andreas -- Andreas Dilger Principal Software Engineer Cluster File Systems, Inc.

[PATCH] 14/19 e2fsprogs f_extents_inrlevel-incons test

2007-03-19 Thread Andreas Dilger
Regression test for an inter-level index depth inconsistency in an extent file. Binary patch file. Signed-off-by: Andreas Dilger [EMAIL PROTECTED] Signed-off-by: Girish Shilamkar [EMAIL PROTECTED] Cheers, Andreas -- Andreas Dilger Principal Software Engineer Cluster File Systems, Inc.

[PATCH] 15/19 e2fsprogs f_extents_orphan_blks test

2007-03-19 Thread Andreas Dilger
Regression test for orphaned blocks in an extent filesystem. Binary patch file. Signed-off-by: Andreas Dilger [EMAIL PROTECTED] Signed-off-by: Girish Shilamkar [EMAIL PROTECTED] Cheers, Andreas -- Andreas Dilger Principal Software Engineer Cluster File Systems, Inc.

Re: [PATCH] 18/19 e2fsprogs f_extents_shrd_blk test

2007-03-19 Thread Andreas Dilger
Regression test for unsorted extents within a file. Binary patch file. Signed-off-by: Andreas Dilger [EMAIL PROTECTED] Signed-off-by: Girish Shilamkar [EMAIL PROTECTED] Cheers, Andreas -- Andreas Dilger Principal Software Engineer Cluster File Systems, Inc.

[PATCH] 18/19 e2fsprogs f_extents_shrd_blk test

2007-03-19 Thread Andreas Dilger
Regression test for two extent files sharing the same blocks. Binary patch file. This test is known not to work currently. The problem is that there is not enough space in the index to split the extent and clone all of the blocks. It is hoped that Ted's change of e2fsprogs to be extent based