diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-07-24 12:13:30 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2008-07-24 12:13:30 -0400 |
commit | 9864c90760e7c0f287cc616d5f71a674efbbc5ea (patch) | |
tree | d26b1f1c7a9777618070a99f41c824db79465f0c /mkfs.c | |
parent | cbfe93f68fb47513386bca429e35e6265091bd86 (diff) |
Print the version string in a few programs
Diffstat (limited to 'mkfs.c')
-rw-r--r-- | mkfs.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -41,6 +41,7 @@ #include "volumes.h" #include "transaction.h" #include "utils.h" +#include "version.h" static u64 parse_size(char *s) { @@ -247,6 +248,7 @@ static void print_usage(void) fprintf(stderr, "\t -l --leafsize size of btree leaves\n"); fprintf(stderr, "\t -n --nodesize size of btree leaves\n"); fprintf(stderr, "\t -s --sectorsize min block allocation\n"); + fprintf(stderr, "%s\n", BTRFS_BUILD_VERSION); exit(1); } @@ -467,6 +469,7 @@ raid_groups: label, first_file, nodesize, leafsize, sectorsize, pretty_sizes(btrfs_super_total_bytes(&root->fs_info->super_copy))); + printf("%s\n", BTRFS_BUILD_VERSION); btrfs_commit_transaction(trans, root); ret = close_ctree(root); BUG_ON(ret); |