]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
e4defrag: display the e2fsprogs version number
authorMarc Thomas <marc@dragonfly.plus.com>
Fri, 9 Jun 2017 12:58:32 +0000 (13:58 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 23 Jun 2017 22:06:17 +0000 (18:06 -0400)
Signed-off-by: Marc Thomas <marc@dragonfly.plus.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/e4defrag.c

index 1d1b4f41c59b2cb5991ea200d80527645d0316e3..84501d17a8401be5ad620c5b4a09a1fc1682b284 100644 (file)
@@ -41,6 +41,8 @@
 #include <sys/statfs.h>
 #include <sys/vfs.h>
 
+#include "../version.h"
+
 /* A relatively new ioctl interface ... */
 #ifndef EXT4_IOC_MOVE_EXT
 #define EXT4_IOC_MOVE_EXT      _IOWR('f', 15, struct move_extent)
@@ -1679,6 +1681,8 @@ int main(int argc, char *argv[])
        struct stat64   buf;
        ext2_filsys fs = NULL;
 
+       printf("e4defrag %s (%s)\n", E2FSPROGS_VERSION, E2FSPROGS_DATE);
+
        /* Parse arguments */
        if (argc == 1)
                goto out;