diff options
Diffstat (limited to 'xlators/features/changelog/lib/examples/c')
-rw-r--r-- | xlators/features/changelog/lib/examples/c/get-changes.c | 6 | ||||
-rw-r--r-- | xlators/features/changelog/lib/examples/c/get-history.c | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/xlators/features/changelog/lib/examples/c/get-changes.c b/xlators/features/changelog/lib/examples/c/get-changes.c index 0b2808c7e35..ef766c566b6 100644 --- a/xlators/features/changelog/lib/examples/c/get-changes.c +++ b/xlators/features/changelog/lib/examples/c/get-changes.c @@ -39,6 +39,12 @@ main (int argc, char ** argv) ssize_t changes = 0; char fbuf[PATH_MAX] = {0,}; + ret = gf_changelog_init (NULL); + if (ret) { + handle_error ("Init failed"); + goto out; + } + /* get changes for brick "/home/vshankar/export/yow/yow-1" */ ret = gf_changelog_register ("/export/z1/zwoop", "/tmp/scratch", "/tmp/change.log", 9, 5); diff --git a/xlators/features/changelog/lib/examples/c/get-history.c b/xlators/features/changelog/lib/examples/c/get-history.c index 2e1ff3c767f..ee3ec0ad100 100644 --- a/xlators/features/changelog/lib/examples/c/get-history.c +++ b/xlators/features/changelog/lib/examples/c/get-history.c @@ -40,6 +40,12 @@ main (int argc, char ** argv) char fbuf[PATH_MAX] = {0,}; unsigned long end_ts = 0; + ret = gf_changelog_init (NULL); + if (ret) { + handle_error ("init failed"); + goto out; + } + ret = gf_changelog_register ("/export/z1/zwoop", "/tmp/scratch_v1", "/tmp/changes.log", 9, 5); |