diff options
author | Aravinda VK <avishwan@redhat.com> | 2015-02-18 19:07:23 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2015-03-18 02:54:25 -0700 |
commit | 7e98a0e0b1e346f89047b57e495f66f1b4223997 (patch) | |
tree | 0524dda8ad7066acab8d50537fe4f6e08f19fd29 /configure.ac | |
parent | c9b1aea9b3f7087336c75548b59574f251813136 (diff) |
feature/glusterfind: A tool to find incremental changes
Documentation is available in patch:
http://review.gluster.org/#/c/9800/
A tool which helps to get list of modified files or list of all files in
GlusterFS Volume using Changelog or find command.
Usage
=====
glusterfind --help
Create:
-------
glusterfind create --help
The tool creates status file $GLUSTERD_WORKDIR/SESSION/VOLUME/status
and records current timestamp to initiate the session. This timestamp
will be used as start time for next runs.
As part of create also generates ssh key and distributes to all peers.
and enables build.pgfid and changelog using volume set command.
Pre:
----
glusterfind pre --help
This command is used to generate the list of files modified after session
creation time or after last run. To get list of all files/dirs in Volume,
run pre command with `--full` argument.
The tool gets all nodes details using gluster volume info and runs node
agent for each brick in respective nodes via ssh command. Once these node
agents generate the output file, tool copies to local using scp. Merges all
the output files to generate the final output file.
Post:
-----
glusterfind post --help
After consuming the list, this sub command is called to update the session
time based on pre command status file.
List:
-----
glusterfind list --help
To view all the sessions
Delete:
-------
glusterfind delete --help
Delete session.
Known Issues
------------
1. Deleted files will not get listed, since we can't convert GFID to
Path if file/dir is deleted.
2. Only new name will get listed if Renamed.
3. All hardlinks will get listed.
Change-Id: I82991feb0aea85cb6ec035fddbf80a2b276e86b0
BUG: 1193893
Signed-off-by: Aravinda VK <avishwan@redhat.com>
Reviewed-on: http://review.gluster.org/9682
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Prashanth Pai <ppai@redhat.com>
Reviewed-by: Kotresh HR <khiremat@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 84eb0f40d45..c3f505bcc00 100644 --- a/configure.ac +++ b/configure.ac @@ -39,8 +39,8 @@ AC_CONFIG_FILES([Makefile libglusterfs/Makefile libglusterfs/src/Makefile geo-replication/src/peer_gsec_create - geo-replication/src/peer_add_secret_pub geo-replication/src/peer_mountbroker + extras/peer_add_secret_pub geo-replication/syncdaemon/configinterface.py glusterfsd/Makefile glusterfsd/src/Makefile @@ -226,7 +226,11 @@ AC_CONFIG_FILES([Makefile tools/gfind_missing_files/Makefile heal/Makefile heal/src/Makefile - glusterfs.spec]) + glusterfs.spec + tools/glusterfind/src/tool.conf + tools/glusterfind/glusterfind + tools/glusterfind/Makefile + tools/glusterfind/src/Makefile]) AC_CANONICAL_HOST @@ -887,6 +891,14 @@ if test "x$ac_cv_header_execinfo_h" = "xno"; then fi fi +old_prefix=$prefix +if test "x$prefix" = xNONE; then + prefix=$ac_default_prefix +fi +GLUSTERFS_LIBEXECDIR="$(eval echo $prefix)/libexec/glusterfs" +GLUSTERFSD_MISCDIR="$(eval echo $prefix)/var/lib/misc/glusterfsd" +prefix=$old_prefix + ### Dirty hacky stuff to make LOCALSTATEDIR work if test "x$prefix" = xNONE; then test $localstatedir = '${prefix}/var' && localstatedir=$ac_default_prefix/var @@ -1193,6 +1205,8 @@ AM_CONDITIONAL([GF_BSD_HOST_OS], test "${GF_HOST_OS}" = "GF_BSD_HOST_OS") AC_SUBST(GLUSTERD_WORKDIR) AM_CONDITIONAL([GF_INSTALL_GLUSTERD_WORKDIR], test ! -d ${GLUSTERD_WORKDIR} && test -d ${sysconfdir}/glusterd ) AC_SUBST(GLUSTERD_VOLFILE) +AC_SUBST(GLUSTERFS_LIBEXECDIR) +AC_SUBST(GLUSTERFSD_MISCDIR) dnl pkg-config versioning dnl |