Re: [patch] ext2fs/pager.c:diskfs_grow: another logic error

2002-06-05 Thread Marcus Brinkmann
On Fri, Apr 05, 2002 at 10:41:35PM -0500, Neal H Walfield wrote: > Consider the case where the file system block size is 1024 and > diskfs_grow is called with a node that has the allocsize field set to > 1024 and with the size argument set to 1025. After the ext2_getblk > loop, END_BLOCK will be

[patch] ext2fs/pager.c:diskfs_grow: another logic error

2002-04-05 Thread Neal H Walfield
Fixing the last logic error exposed another error in diskfs_grow: when we take the correct branch, we miscalculate the value of NEW_SIZE. Consider the case where the file system block size is 1024 and diskfs_grow is called with a node that has the allocsize field set to 1024 and with the size arg