mirror of https://github.com/vitalif/e2fsprogs
ChangeLog, findsuper.c:
findsuper.c (main): Print the block group number which is now being written by e2fsprogs.bitmap-optimize
parent
30c42619e8
commit
eb5ab749af
|
@ -1,3 +1,8 @@
|
||||||
|
1998-07-04 Theodore Ts'o <tytso@rsts-11.mit.edu>
|
||||||
|
|
||||||
|
* findsuper.c (main): Print the block group number which is now
|
||||||
|
being written by e2fsprogs.
|
||||||
|
|
||||||
1998-06-25 Theodore Ts'o <tytso@rsts-11.mit.edu>
|
1998-06-25 Theodore Ts'o <tytso@rsts-11.mit.edu>
|
||||||
|
|
||||||
* fsck.c (ignore): Remove unused variable cp.
|
* fsck.c (ignore): Remove unused variable cp.
|
||||||
|
|
|
@ -78,7 +78,7 @@ main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Now, go looking for the superblock ! */
|
/* Now, go looking for the superblock ! */
|
||||||
printf(" thisoff block fs_blk_sz blksz last_mount\n");
|
printf(" thisoff block fs_blk_sz blksz grp last_mount\n");
|
||||||
for (;!feof(f) && (i=fseek(f,sk,SEEK_SET))!= -1; sk+=skiprate){
|
for (;!feof(f) && (i=fseek(f,sk,SEEK_SET))!= -1; sk+=skiprate){
|
||||||
if (i=fread(&ext2,sizeof(ext2),1, f)!=1) {
|
if (i=fread(&ext2,sizeof(ext2),1, f)!=1) {
|
||||||
perror("read failed");
|
perror("read failed");
|
||||||
|
@ -86,7 +86,10 @@ main(int argc, char *argv[])
|
||||||
tm = ext2.s_mtime;
|
tm = ext2.s_mtime;
|
||||||
s=ctime(&tm);
|
s=ctime(&tm);
|
||||||
s[24]=0;
|
s[24]=0;
|
||||||
printf("%9ld %9ld %9ld %5ld %s\n",sk,sk/1024,ext2.s_blocks_count,ext2.s_log_block_size,s);
|
printf("%9ld %9ld %9ld %5ld %4d %s\n", sk,
|
||||||
|
sk/1024, ext2.s_blocks_count,
|
||||||
|
ext2.s_log_block_size,
|
||||||
|
ext2.s_block_group_nr, s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
printf("Failed on %d at %ld\n", i, sk);
|
printf("Failed on %d at %ld\n", i, sk);
|
||||||
|
|
Loading…
Reference in New Issue