From 84a0baabfb9aa29348d8b17b7517870d46023ab3 Mon Sep 17 00:00:00 2001 From: Aravinda VK Date: Thu, 9 Apr 2015 00:14:50 +0530 Subject: 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: 1214561 Signed-off-by: Aravinda VK Signed-off-by: Kotresh HR Reviewed-on: http://review.gluster.org/10166 Reviewed-by: Saravanakumar Arumugam Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Venky Shankar --- xlators/features/changelog/src/changelog-misc.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'xlators/features/changelog/src') 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) { \ -- cgit