debugfs: fix strtoblk for 64bit block numbers
PATCH 1/1 debugfs: fix strtoblk for 64bit block numbers
# debugfs -R "icheck 4295032832" testimage debugfs 1.42.3 (14-May-2012) got block 4295032832 for 4295032832 got block 65536 for 4295032832 Block Inode number 65536 <block not found>
Um, that's no good.
Affects icheck, freeb, setb, testb...
Signed-off-by Eric Sandeen <[email protected]>
---
debugfs/util.c +1 -1
@@ -298,7 +298,7 @@ unsigned long long parse_ulonglong(const char *str, const char *cmd,*/ int strtoblk (const char *cmd,const char *str,blk64_t *ret) { -blk_t blk; +blk64_t blk;int err; blk =parse_ulonglong (str, cmd,"block number" , &err);
Ted Ts'o
AppliedQuoted 7 lines · Eric Sandeen
# debugfs -R "icheck 4295032832" testimage debugfs 1.42.3 (14-May-2012) got block 4295032832 for 4295032832 got block 65536 for 4295032832 Block Inode number 65536 <block not found>
Quoted 5 lines
Um, that's no good.
Affects icheck, freeb, setb, testb...
Signed-off-by Eric Sandeen <[email protected]>
Thanks, applied.
- Ted