diff options
author | Aravinda VK <avishwan@redhat.com> | 2015-04-09 00:14:50 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2015-05-08 03:22:02 -0700 |
commit | bd6474eb64fd753bb636f45fd6a099df3b619152 (patch) | |
tree | de26693d12f1e9f5702e3bc1796ef9053148f153 /xlators/features/changelog/src | |
parent | 3afff4aacd1b74eff44a9fe320b1547eb165b2eb (diff) |
features/changelog: Version support for Changelog Parser
As optional feature, during unlink, full path will be recorded.
Changelog Version number to be bumped up to 1.2.
With this patch, parser checks the version number before parsing
and handles accordingly.
Change-Id: Ic1ad98259c39e417029a08e26a1d4b467817e65a
BUG: 1218383
Signed-off-by: Kotresh HR <khiremat@redhat.com>
Reviewed-on: http://review.gluster.org/10166
Reviewed-on: http://review.gluster.org/10620
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Saravanakumar Arumugam <sarumuga@redhat.com>
Tested-by: NetBSD Build System
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/features/changelog/src')
-rw-r--r-- | xlators/features/changelog/src/changelog-misc.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xlators/features/changelog/src/changelog-misc.h b/xlators/features/changelog/src/changelog-misc.h index acec6f675ac..c0349ca3838 100644 --- a/xlators/features/changelog/src/changelog-misc.h +++ b/xlators/features/changelog/src/changelog-misc.h @@ -60,11 +60,13 @@ /** * ... used by libgfchangelog. */ -#define CHANGELOG_GET_ENCODING(fd, buffer, len, enc, enc_len) do { \ +#define CHANGELOG_GET_HEADER_INFO(fd, buffer, len, enc, maj, min, elen) do { \ FILE *fp; \ - int fd_dup, maj, min; \ + int fd_dup; \ \ enc = -1; \ + maj = -1; \ + min = -1; \ fd_dup = dup (fd); \ \ if (fd_dup != -1) { \ |