diff options
author | ShyamsundarR <srangana@redhat.com> | 2018-09-13 14:05:02 -0400 |
---|---|---|
committer | ShyamsundarR <srangana@redhat.com> | 2018-09-17 10:31:19 -0400 |
commit | c1314445cf008cf78a2157cb425bee836de5594c (patch) | |
tree | e603de84dbd8d5c1a7f6c328cb1eab9d2a9e47d9 /xlators/experimental/fdl/src/logdump.c | |
parent | afc9f3b8716e88410ba50a6ce8abbfa186ee7c46 (diff) |
core: remove experimental xlators and associated tests
experimental xlators removed from 5.0
Change-Id: I47219d8b95efc3d5875ec9224d1e79f8371e9f76
Updates: bz#1628620
Signed-off-by: ShyamsundarR <srangana@redhat.com>
Diffstat (limited to 'xlators/experimental/fdl/src/logdump.c')
-rw-r--r-- | xlators/experimental/fdl/src/logdump.c | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/xlators/experimental/fdl/src/logdump.c b/xlators/experimental/fdl/src/logdump.c deleted file mode 100644 index 6fbc5218d47..00000000000 --- a/xlators/experimental/fdl/src/logdump.c +++ /dev/null @@ -1,51 +0,0 @@ -#include <fcntl.h> -#include <stdio.h> -#include <stdlib.h> -#include <unistd.h> -#include <sys/mman.h> - -extern int -fdl_dump(char **, char **); - -int -main(int argc, char **argv) -{ - int meta_fd = (-1); - char *meta_buf = NULL; - int data_fd = (-1); - char *data_buf = NULL; - - meta_fd = open(argv[1], O_RDONLY); - if (meta_fd < 0) { - perror("open"); - return EXIT_FAILURE; - } - - /* TBD: get proper length */ - meta_buf = mmap(NULL, 1048576, PROT_READ, MAP_PRIVATE, meta_fd, 0); - if (meta_buf == MAP_FAILED) { - perror("mmap"); - return EXIT_FAILURE; - } - - data_fd = open(argv[2], O_RDONLY); - if (data_fd < 0) { - perror("open"); - return EXIT_FAILURE; - } - - /* TBD: get proper length */ - data_buf = mmap(NULL, 1048576, PROT_READ, MAP_PRIVATE, data_fd, 0); - if (data_buf == MAP_FAILED) { - perror("mmap"); - return EXIT_FAILURE; - } - - for (;;) { - if (!fdl_dump(&meta_buf, &data_buf)) { - break; - } - } - - return EXIT_SUCCESS; -} |