summaryrefslogtreecommitdiff
path: root/mkfs.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-07-24 12:13:30 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2008-07-24 12:13:30 -0400
commit9864c90760e7c0f287cc616d5f71a674efbbc5ea (patch)
treed26b1f1c7a9777618070a99f41c824db79465f0c /mkfs.c
parentcbfe93f68fb47513386bca429e35e6265091bd86 (diff)
Print the version string in a few programs
Diffstat (limited to 'mkfs.c')
-rw-r--r--mkfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mkfs.c b/mkfs.c
index e1b42971..6edc4c66 100644
--- a/mkfs.c
+++ b/mkfs.c
@@ -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);