From 9864c90760e7c0f287cc616d5f71a674efbbc5ea Mon Sep 17 00:00:00 2001 From: Chris Mason Date: Thu, 24 Jul 2008 12:13:30 -0400 Subject: Print the version string in a few programs --- mkfs.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mkfs.c') 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); -- cgit v1.2.3