external/e2fsprogs
Revisión | 007a8337b3b599b8c196085d4822b9c46010994e (tree) |
---|---|
Tiempo | 2017-08-08 16:25:16 |
Autor | android-build-team Robot <android-build-team-robot@goog...> |
Commiter | android-build-team Robot |
release-request-c8b8af6b-4899-402a-9ff7-72255ba5300b-for-git_oc-mr1-release-4253898 snap-temp-L09600000090287887
Change-Id: I36339cda481449dbe3c95a712612b804d0be2887
@@ -61,6 +61,10 @@ int main(int argc, char *argv[]) | ||
61 | 61 | struct fs_ops_callbacks fs_callbacks = { NULL, NULL }; |
62 | 62 | char *token; |
63 | 63 | int nr_opt = 0; |
64 | + ext2_ino_t inodes_count; | |
65 | + ext2_ino_t free_inodes_count; | |
66 | + blk64_t blocks_count; | |
67 | + blk64_t free_blocks_count; | |
64 | 68 | |
65 | 69 | add_error_table(&et_ext2_error_table); |
66 | 70 |
@@ -190,6 +194,11 @@ int main(int argc, char *argv[]) | ||
190 | 194 | } |
191 | 195 | } |
192 | 196 | |
197 | + inodes_count = fs->super->s_inodes_count; | |
198 | + free_inodes_count = fs->super->s_free_inodes_count; | |
199 | + blocks_count = ext2fs_blocks_count(fs->super); | |
200 | + free_blocks_count = ext2fs_free_blocks_count(fs->super); | |
201 | + | |
193 | 202 | retval = ext2fs_close_free(&fs); |
194 | 203 | if (retval) { |
195 | 204 | com_err(prog_name, retval, "%s", |
@@ -197,6 +206,10 @@ int main(int argc, char *argv[]) | ||
197 | 206 | exit(1); |
198 | 207 | } |
199 | 208 | |
209 | + printf("Created filesystem with %u/%u inodes and %llu/%llu blocks\n", | |
210 | + inodes_count - free_inodes_count, inodes_count, | |
211 | + blocks_count - free_blocks_count, blocks_count); | |
212 | + | |
200 | 213 | remove_error_table(&et_ext2_error_table); |
201 | 214 | return 0; |
202 | 215 | } |