summaryrefslogtreecommitdiffstats
path: root/xlators/features/changelog/src
diff options
context:
space:
mode:
authorAravinda VK <avishwan@redhat.com>2015-04-09 00:14:50 +0530
committerVenky Shankar <vshankar@redhat.com>2015-05-06 23:01:51 -0700
commit84a0baabfb9aa29348d8b17b7517870d46023ab3 (patch)
treeb7c8b3bd154f00c33823d11e7937acf82cc44ac9 /xlators/features/changelog/src
parent50063ea7f4182ed30b86f38a716d03464e07b8c6 (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: 1214561 Signed-off-by: Aravinda VK <avishwan@redhat.com> Signed-off-by: Kotresh HR <khiremat@redhat.com> Reviewed-on: http://review.gluster.org/10166 Reviewed-by: Saravanakumar Arumugam <sarumuga@redhat.com> Tested-by: NetBSD Build System Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Venky Shankar <vshankar@redhat.com>
Diffstat (limited to 'xlators/features/changelog/src')
-rw-r--r--xlators/features/changelog/src/changelog-misc.h6
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) { \