Re: [PATCH 1/5] fallocate() implementation in i86, x86_64 and powerpc

2007-05-07 Thread Amit K. Arora
Andrew, Thanks for the review comments! On Thu, May 03, 2007 at 09:29:55PM -0700, Andrew Morton wrote: On Thu, 26 Apr 2007 23:33:32 +0530 Amit K. Arora [EMAIL PROTECTED] wrote: This patch implements the fallocate() system call and adds support for i386, x86_64 and powerpc. ...

Re: [PATCH 3/5] ext4: Extent overlap bugfix

2007-05-07 Thread Amit K. Arora
On Thu, May 03, 2007 at 09:30:02PM -0700, Andrew Morton wrote: On Thu, 26 Apr 2007 23:41:01 +0530 Amit K. Arora [EMAIL PROTECTED] wrote: +unsigned int ext4_ext_check_overlap(struct inode *inode, + struct ext4_extent *newext, +

Re: [PATCH 4/5] ext4: fallocate support in ext4

2007-05-07 Thread Amit K. Arora
On Thu, May 03, 2007 at 09:31:33PM -0700, Andrew Morton wrote: On Thu, 26 Apr 2007 23:43:32 +0530 Amit K. Arora [EMAIL PROTECTED] wrote: This patch has the ext4 implemtation of fallocate system call. ... + /* ext4_can_extents_be_merged should have checked that either +

Re: [PATCH 5/5] ext4: write support for preallocated blocks/extents

2007-05-07 Thread Amit K. Arora
On Thu, May 03, 2007 at 09:32:38PM -0700, Andrew Morton wrote: On Thu, 26 Apr 2007 23:46:23 +0530 Amit K. Arora [EMAIL PROTECTED] wrote: + */ +int ext4_ext_try_to_merge(struct inode *inode, + struct ext4_ext_path *path, + struct

Re: [PATCH 1/4] Add unix COW io manager

2007-05-07 Thread Theodore Tso
On Fri, May 04, 2007 at 02:43:21PM +0530, Aneesh Kumar K.V wrote: + * unix_cow_io.c --- This is the Unix (well, really POSIX) implementation + * of the COW I/O manager. I really wish you had based this not on unix_io.c, but rather on test_io.c, for two reasons (a) this reduces code

Re: [PATCH 5/5] ext4: write support for preallocated blocks/extents

2007-05-07 Thread Amit K. Arora
On Mon, May 07, 2007 at 03:40:26PM +0300, Pekka Enberg wrote: On 4/26/07, Amit K. Arora [EMAIL PROTECTED] wrote: /* + * ext4_ext_try_to_merge: + * tries to merge the ex extent to the next extent in the tree. + * It always tries to merge towards right. If you want to merge towards + * left,

Re: [PATCH 1/5] fallocate() implementation in i86, x86_64 and powerpc

2007-05-07 Thread Ulrich Drepper
Jakub Jelinek wrote: is what glibc does ATM. Seems we violate the case where len == 0, as EINVAL in that case is shall fail. But reading the standard to imply negative len is ok is too much guessing, there is no word what it means when len is negative and required storage for regular file data

Re: [RFC][take 4] e2fsprogs: Add ext4migrate

2007-05-07 Thread Theodore Tso
On Mon, May 07, 2007 at 08:56:11AM +0530, Aneesh Kumar K.V wrote: Andreas Dilger wrote: If this code could also (or optionally just) increase the size of inodes it would be very useful. AFAIK right now it will only change the inodes from block-mapped to extent-mapped? Actually, changing the

Re: [RFC][take 4] e2fsprogs: Add ext4migrate

2007-05-07 Thread Aneesh Kumar K.V
Hi, Theodore Tso wrote: On Mon, May 07, 2007 at 08:56:11AM +0530, Aneesh Kumar K.V wrote: Andreas Dilger wrote: If this code could also (or optionally just) increase the size of inodes it would be very useful. AFAIK right now it will only change the inodes from block-mapped to

Re: [RFC][take 4] e2fsprogs: Add ext4migrate

2007-05-07 Thread Aneesh Kumar K.V
Theodore Tso wrote: That is correct. My next step is to enhance the tool to support migration to large inodes. I would actually suggest that the place to add that functionality would be via tune2fs -I inode_size. Since mke2fs -I inode_size is used to set the inode size, it makes sense

Re: JBD: ext2online wants too many credits (744 256)

2007-05-07 Thread Frank van Maarseveen
On Sun, May 06, 2007 at 09:40:14PM -0700, Andrew Morton wrote: On Mon, 7 May 2007 00:26:26 +0200 Frank van Maarseveen [EMAIL PROTECTED] wrote: Steps to reproduce: Create a 3G partition, say /dev/vol1/project mke2fs -j -b 4096 /dev/vol1/project 22812 mount it ext2online

Re: JBD: ext2online wants too many credits (744 256)

2007-05-07 Thread Theodore Tso
On Mon, May 07, 2007 at 12:26:26AM +0200, Frank van Maarseveen wrote: 2.6.20.6, FC4: |JBD: ext2online wants too many credits (744 256) You would be better off using resize2fs from e2fsprogs 1.39, BTW About the only reason to keep using the ext2resize packages is ext2prepare, which is

Re: JBD: ext2online wants too many credits (744 256)

2007-05-07 Thread david
On Mon, 7 May 2007, Theodore Tso wrote: We're going to have to rethink the defaults of the journal size as it relates to on-line resizing, but there might not be a lot of great answers here. We'll also have to look at the on-line resizing code and see if there's a way to break up the resize

Re: [PATCH 4/5] ext4: fallocate support in ext4

2007-05-07 Thread Dave Kleikamp
On Mon, 2007-05-07 at 17:37 +0530, Amit K. Arora wrote: On Thu, May 03, 2007 at 09:31:33PM -0700, Andrew Morton wrote: On Thu, 26 Apr 2007 23:43:32 +0530 Amit K. Arora [EMAIL PROTECTED] wrote: +int ext4_fallocate(struct inode *inode, int mode, loff_t offset, loff_t len) +{ +

Re: JBD: ext2online wants too many credits (744 256)

2007-05-07 Thread Theodore Tso
On Mon, May 07, 2007 at 07:46:38AM -0700, [EMAIL PROTECTED] wrote: On Mon, 7 May 2007, Theodore Tso wrote: We're going to have to rethink the defaults of the journal size as it relates to on-line resizing, but there might not be a lot of great answers here. We'll also have to look at the

Re: [RFC][take 4] e2fsprogs: Add ext4migrate

2007-05-07 Thread Theodore Tso
On Mon, May 07, 2007 at 07:16:31PM +0530, Aneesh Kumar K.V wrote: One of the option i was thinking was to use this tool to migrate to extent map and then towards the end use the online defrag ioctl to defrag the resulting ext4 inode. As we discussed on the phone, my recommendation would be

[PATCH] - Make mke2fs.c defaults match mke2fs.conf defaults

2007-05-07 Thread Eric Sandeen
One of our testers filed a bug that said mkfs.ext3 is much slower when mke2fs.conf is missing... This is because the shipped defaults in mke2fs.conf do not match the shipped defaults in the mkfs code itself; he wound up making a 1k block filesystem on a very large block device, for example.

[PATCH] Accomodate 32-bit uid/guid values in e2fsprogs

2007-05-07 Thread Eric Sandeen
e2fsprogs doesn't handle large ( 16 bit) UID/GID... Create an fs by user with large UID: bash-3.1$ id uid=501666(newuser) gid=501666(newuser) groups=501666(newuser) bash-3.1$ /sbin/mke2fs -q fsfile fsfile is not a block special device. Proceed anyway? (y,n) y Now mount it: [EMAIL PROTECTED]

Re: Creating a 32bit blocks filesystem.

2007-05-07 Thread Jose R. Santos
On Mon, 7 May 2007 11:19:52 -0500 Jose R. Santos [EMAIL PROTECTED] wrote: I tried the patches and while the tools such as mkfs and debugfs seem to work fine, I am still unable to mount a filesystem with block numbers exceeding 32 bits. Correction, I tested debugfs on a 32bit blocks

Re: [PATCH] - Make mke2fs.c defaults match mke2fs.conf defaults

2007-05-07 Thread Theodore Tso
On Mon, May 07, 2007 at 11:31:22AM -0500, Eric Sandeen wrote: One of our testers filed a bug that said mkfs.ext3 is much slower when mke2fs.conf is missing... This is because the shipped defaults in mke2fs.conf do not match the shipped defaults in the mkfs code itself; he wound up making a

Re: JBD: ext2online wants too many credits (744 256)

2007-05-07 Thread Andreas Dilger
On May 06, 2007 21:40 -0700, Andrew Morton wrote: On Mon, 7 May 2007 00:26:26 +0200 Frank van Maarseveen [EMAIL PROTECTED] wrote: 2.6.20.6, FC4: I created a 91248k ext3 fs with 4k blocksize: Next, I tried to resize it to about 3G using ext2online while mounted: At that time

Re: [PATCH 4/5] ext4: fallocate support in ext4

2007-05-07 Thread Andreas Dilger
On May 03, 2007 21:31 -0700, Andrew Morton wrote: On Thu, 26 Apr 2007 23:43:32 +0530 Amit K. Arora [EMAIL PROTECTED] wrote: + * ext4_fallocate: + * preallocate space for a file + * mode is for future use, e.g. for unallocating preallocated blocks etc. + */ This description is rather

Re: [PATCH] - Make mke2fs.c defaults match mke2fs.conf defaults

2007-05-07 Thread Eric Sandeen
Theodore Tso wrote: On Mon, May 07, 2007 at 11:31:22AM -0500, Eric Sandeen wrote: One of our testers filed a bug that said mkfs.ext3 is much slower when mke2fs.conf is missing... This is because the shipped defaults in mke2fs.conf do not match the shipped defaults in the mkfs code itself; he

Re: 2.6.21-ext4-1

2007-05-07 Thread Mingming Cao
On Mon, 2007-04-30 at 11:14 -0400, Theodore Ts'o wrote: I've respun the ext4 development patchset, with Amit's updated fallocate patches. I've added Dave's patch to add ia64 support to the fallocate system call, but *not* the XFS fallocate support patches. (Probably better for them to live

Re: [PATCH 4/5] ext4: fallocate support in ext4

2007-05-07 Thread Andrew Morton
On Mon, 7 May 2007 05:37:54 -0600 Andreas Dilger [EMAIL PROTECTED] wrote: + block = offset blkbits; + max_blocks = (EXT4_BLOCK_ALIGN(len + offset, blkbits) blkbits) + - block; + mutex_lock(EXT4_I(inode)-truncate_mutex); + credits =

Re: [RFC][take 4] e2fsprogs: Add ext4migrate

2007-05-07 Thread Andreas Dilger
On May 07, 2007 19:16 +0530, Aneesh Kumar K.V wrote: Theodore Tso wrote: Actually, changing the inode size is actually going to be more useful to a larger number of people, since they can use it today to support in-inode EA's. In addition, changing the inode size must be done off-line,

Re: JBD: ext2online wants too many credits (744 256)

2007-05-07 Thread Andreas Dilger
On May 07, 2007 11:50 -0400, Theodore Tso wrote: On Mon, May 07, 2007 at 07:46:38AM -0700, [EMAIL PROTECTED] wrote: On Mon, 7 May 2007, Theodore Tso wrote: We're going to have to rethink the defaults of the journal size as it relates to on-line resizing, but there might not be a lot of

Re: [PATCH] - Make mke2fs.c defaults match mke2fs.conf defaults

2007-05-07 Thread Andreas Dilger
On May 07, 2007 14:52 -0500, Eric Sandeen wrote: Theodore Tso wrote: How likely do you think the case will be that mke2fs.conf would be missing? I'm trying to figure out how high priority of an item this really is. Well, not too likely, although for some reason I guess it happened in

Re: [PATCH 4/5] ext4: fallocate support in ext4

2007-05-07 Thread Andrew Morton
On Mon, 7 May 2007 15:21:04 -0700 Andreas Dilger [EMAIL PROTECTED] wrote: On May 07, 2007 13:58 -0700, Andrew Morton wrote: Final point: it's fairly disappointing that the present implementation is ext4-only, and extent-only. I do think we should be aiming at an ext4 bitmap-based

Re: [PATCH 4/5] ext4: fallocate support in ext4

2007-05-07 Thread Theodore Tso
On Mon, May 07, 2007 at 03:38:56PM -0700, Andrew Morton wrote: Actually, this is a non-issue. The reason that it is handled for extent-only is that this is the only way to allocate space in the filesystem without doing the explicit zeroing. For other filesystems (including ext3 and

Re: [PATCH 4/5] ext4: fallocate support in ext4

2007-05-07 Thread Theodore Tso
On Mon, May 07, 2007 at 07:02:32PM -0400, Jeff Garzik wrote: Andreas Dilger wrote: On May 07, 2007 13:58 -0700, Andrew Morton wrote: Final point: it's fairly disappointing that the present implementation is ext4-only, and extent-only. I do think we should be aiming at an ext4 bitmap-based

Re: [PATCH 4/5] ext4: fallocate support in ext4

2007-05-07 Thread Mingming Cao
On Mon, 2007-05-07 at 13:58 -0700, Andrew Morton wrote: On Mon, 7 May 2007 05:37:54 -0600 Andreas Dilger [EMAIL PROTECTED] wrote: + block = offset blkbits; + max_blocks = (EXT4_BLOCK_ALIGN(len + offset, blkbits) blkbits) +- block; +

Re: [PATCH 4/5] ext4: fallocate support in ext4

2007-05-07 Thread Andrew Morton
On Mon, 07 May 2007 17:00:24 -0700 Mingming Cao [EMAIL PROTECTED] wrote: + while (ret = 0 ret max_blocks) { + block = block + ret; + max_blocks = max_blocks - ret; + ret = ext4_ext_get_blocks(handle, inode, block, +

Re: [PATCH 4/5] ext4: fallocate support in ext4

2007-05-07 Thread Mingming Cao
On Mon, 2007-05-07 at 16:31 -0700, Andrew Morton wrote: On Mon, 7 May 2007 19:14:42 -0400 Theodore Tso [EMAIL PROTECTED] wrote: On Mon, May 07, 2007 at 03:38:56PM -0700, Andrew Morton wrote: Actually, this is a non-issue. The reason that it is handled for extent-only is that

Re: [PATCH 4/5] ext4: fallocate support in ext4

2007-05-07 Thread Mingming Cao
On Mon, 2007-05-07 at 17:15 -0700, Andrew Morton wrote: On Mon, 07 May 2007 17:00:24 -0700 Mingming Cao [EMAIL PROTECTED] wrote: + while (ret = 0 ret max_blocks) { + block = block + ret; + max_blocks = max_blocks - ret; + ret =

Re: [PATCH 4/5] ext4: fallocate support in ext4

2007-05-07 Thread Andreas Dilger
On May 07, 2007 19:02 -0400, Jeff Garzik wrote: Andreas Dilger wrote: Actually, this is a non-issue. The reason that it is handled for extent-only is that this is the only way to allocate space in the filesystem without doing the explicit zeroing. Precisely /how/ do you avoid the zeroing

Re: [PATCH] Accomodate 32-bit uid/guid values in e2fsprogs

2007-05-07 Thread Theodore Tso
On Mon, May 07, 2007 at 12:10:37PM -0500, Eric Sandeen wrote: e2fsprogs doesn't handle large ( 16 bit) UID/GID... Applied, with one correction: --- e2fsprogs-hg.orig/misc/mke2fs.c +++ e2fsprogs-hg/misc/mke2fs.c @@ -492,9 +494,14 @@ static void create_root_dir(ext2_filsys

Re: [PATCH] e2fsprogs: Offsets of EAs in inode need not be sorted

2007-05-07 Thread Theodore Tso
On Thu, Apr 19, 2007 at 05:35:36PM +0530, Kalpak Shah wrote: This patch removes a code snippet from check_ea_in_inode() in pass1 which checks if the EA values in the inode are sorted or not. The comments in fs/ext*/xattr.c state that the EA values in the external EA block are sorted but those

Re: [PATCH] e2fsprogs: Check journal inode sanity and recreate journal

2007-05-07 Thread Theodore Tso
On Thu, Mar 15, 2007 at 02:43:47AM +0530, Kalpak Shah wrote: Index: e2fsprogs-1.39/lib/ext2fs/mkjournal.c === --- e2fsprogs-1.39.orig/lib/ext2fs/mkjournal.c +++ e2fsprogs-1.39/lib/ext2fs/mkjournal.c + if