tools/glusterfind: add query command to list files
authorMilind Changire <mchangir@redhat.com>
Thu, 15 Oct 2015 09:31:23 +0000 (15:01 +0530)
committerVenky Shankar <vshankar@redhat.com>
Wed, 25 Nov 2015 06:29:07 +0000 (22:29 -0800)
commita56e32e19703c0fbe2cedebcaf5edc8a6307d5a1
treea9ed9028f294d5ba41b98e263a47ac92c61d105c
parent5172bcb757553e05b18208d7726517f1ec4da837
tools/glusterfind: add query command to list files

When session information is maintained outside Gluster, there needs to
be some mechanism to list files starting from a time-stamp. This patch
implements the feature via the "query" command-line option.

The only caveat is that the first time the query command is run for the
volume, it will likely report that "historical changelogs are not
available". This is due to the fact that changelogs had not been turned
on for the volume so far. So the volume options need to be turned on
outside glusterfind or the since_time need to be greater than the
current time when the query command is run for the very first time for
the volume. The query command turns on the required volume options for
collecting changelogs.

Change-Id: I6cb7a57a5ecd166210e2eb4deede06d40ccfa996
BUG: 1272006
Signed-off-by: Milind Changire <mchangir@redhat.com>
Reviewed-on: http://review.gluster.org/12362
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Aravinda VK <avishwan@redhat.com>
tools/glusterfind/src/changelog.py
tools/glusterfind/src/main.py