Add version information

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
This commit is contained in:
Jaegeuk Kim 2012-11-26 20:04:39 +09:00
parent c6ff6d09de
commit 8bdf26205d
2 changed files with 14 additions and 0 deletions

View File

@ -28,6 +28,7 @@
#include <uuid/uuid.h>
#include "f2fs_format.h"
#include "../version.h"
struct f2fs_global_parameters f2fs_params;
struct f2fs_super_block super_block;
@ -1284,6 +1285,9 @@ exit:
*/
int main(int argc, char *argv[])
{
printf("\nF2FS-tools: Ver: %s (%s)\n",
F2FS_TOOLS_VERSION,
F2FS_TOOLS_DATE);
f2fs_init_global_parameters();
f2fs_parse_options(argc, argv);

10
version.h Normal file
View File

@ -0,0 +1,10 @@
/*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#define F2FS_TOOLS_VERSION "1.0.0"
#define F2FS_TOOLS_DATE "26-Nov-2012"