* [PATCH] e2fsprogs - handle large setb/testb/freeb commands in debugfs
@ 2007-04-10 18:43 Eric Sandeen
2007-04-10 19:40 ` Theodore Tso
0 siblings, 1 reply; 2+ messages in thread
From: Eric Sandeen @ 2007-04-10 18:43 UTC (permalink / raw)
To: ext4 development
I noticed that you can't give more than a 2^31 block count to the
debugfs commands setb, clearb, or freeb. Looks ok?
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Index: e2fsprogs-1.39_ext4_hg/debugfs/debugfs.c
===================================================================
--- e2fsprogs-1.39_ext4_hg.orig/debugfs/debugfs.c
+++ e2fsprogs-1.39_ext4_hg/debugfs/debugfs.c
@@ -726,7 +726,7 @@ void do_testi(int argc, char *argv[])
void do_freeb(int argc, char *argv[])
{
blk_t block;
- int count = 1;
+ blk_t count = 1;
if (common_block_args_process(argc, argv, &block, &count))
return;
@@ -745,7 +745,7 @@ void do_freeb(int argc, char *argv[])
void do_setb(int argc, char *argv[])
{
blk_t block;
- int count = 1;
+ blk_t count = 1;
if (common_block_args_process(argc, argv, &block, &count))
return;
@@ -764,7 +764,7 @@ void do_setb(int argc, char *argv[])
void do_testb(int argc, char *argv[])
{
blk_t block;
- int count = 1;
+ blk_t count = 1;
if (common_block_args_process(argc, argv, &block, &count))
return;
Index: e2fsprogs-1.39_ext4_hg/debugfs/util.c
===================================================================
--- e2fsprogs-1.39_ext4_hg.orig/debugfs/util.c
+++ e2fsprogs-1.39_ext4_hg/debugfs/util.c
@@ -325,7 +325,7 @@ int common_inode_args_process(int argc,
* This is a helper function used by do_freeb, do_setb, and do_testb
*/
int common_block_args_process(int argc, char *argv[],
- blk_t *block, int *count)
+ blk_t *block, blk_t *count)
{
int err;
Index: e2fsprogs-1.39_ext4_hg/debugfs/debugfs.h
===================================================================
--- e2fsprogs-1.39_ext4_hg.orig/debugfs/debugfs.h
+++ e2fsprogs-1.39_ext4_hg/debugfs/debugfs.h
@@ -41,7 +41,7 @@ extern int common_args_process(int argc,
extern int common_inode_args_process(int argc, char *argv[],
ext2_ino_t *inode, int flags);
extern int common_block_args_process(int argc, char *argv[],
- blk_t *block, int *count);
+ blk_t *block, blk_t *count);
extern int debugfs_read_inode(ext2_ino_t ino, struct ext2_inode * inode,
const char *cmd);
extern int debugfs_read_inode_full(ext2_ino_t ino, struct ext2_inode * inode,
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] e2fsprogs - handle large setb/testb/freeb commands in debugfs
2007-04-10 18:43 [PATCH] e2fsprogs - handle large setb/testb/freeb commands in debugfs Eric Sandeen
@ 2007-04-10 19:40 ` Theodore Tso
0 siblings, 0 replies; 2+ messages in thread
From: Theodore Tso @ 2007-04-10 19:40 UTC (permalink / raw)
To: Eric Sandeen; +Cc: ext4 development
On Tue, Apr 10, 2007 at 01:43:33PM -0500, Eric Sandeen wrote:
> I noticed that you can't give more than a 2^31 block count to the
> debugfs commands setb, clearb, or freeb. Looks ok?
Yup, thanks. Committed into the repository.
- Ted
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-04-10 19:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-10 18:43 [PATCH] e2fsprogs - handle large setb/testb/freeb commands in debugfs Eric Sandeen
2007-04-10 19:40 ` Theodore Tso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).