cluster/dht: Treat migration failures due to space constraints as skipped

Currently rebalance/remove-brick op's display migration failed count even
for files which failed due to space issues (not enough space for file, or
migration leading to cluster imbalance)

These will now be counted as skipped, and rebalance/remove-brick status
will display the additional counter

Change-Id: I674904d380b5f8300e9ca9e6af557c3d30d6cff4
BUG: 989846
Signed-off-by: shishir gowda <sgowda@redhat.com>
Reviewed-on: http://review.gluster.org/5399
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Revert "storage/posix: Remove the interim fix that handles the gfid race"

This reverts commit 97807e75956a2d240282bc64fab1b71762de0546.

In a distribute or distribute-replica volume, this fix is required to prevent
gfid mis-match due to race issues.

test script bug-767585-gfid.t  needs a sleep of 2, cause after setting backend
gfid directly, we try to heal, and with this fix, we do not allow setxattr of
gfid within creation of 1 second if not created by itself

Change-Id: Ie3f4b385416889fd5de444638a64a7eaaf24cd60
BUG: 951195
Signed-off-by: shishir gowda <sgowda@redhat.com>
Reviewed-on: http://review.gluster.org/5240
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Amar Tumballi <amarts@redhat.com>
cluster/afr: Print self-heal log when self-heal succeeds

Change-Id: I95e47e589419dc6a032cbd8ba01964b6c176c2d5
BUG: 927146
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/5408
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
mgmt/glusterd: Fix a minor typo.

Thanks to Patrick Matthäi <pmatthaei@debian.org> for the patch.
Signed-off-by: Vijay Bellur <vbellur@redhat.com>

Change-Id: I59da74298894ccc2ab30967ffe44cc844aa73f82
BUG: 814534
Reviewed-on: http://review.gluster.org/5436
Reviewed-by: Amar Tumballi <amarts@redhat.com>
Tested-by: Anand Avati <avati@redhat.com>
cluster/dht: Fix non-regular file ownership during rebalance

Currently non-regular files were created as root:root, and
their ownership never healed during rebalance process.

Also, in dht_linkfile_attr_heal, we have to heal the linkfiles
as default, as currently linkfiles are created as root:root.

That check existed, as earlier linkfiles were created as
frame->root->uid/gid

Change-Id: I6cd88361b81bdd500e15bc47b623f5db8eec88e9
BUG: 990154
Signed-off-by: shishir gowda <sgowda@redhat.com>
Reviewed-on: http://review.gluster.org/5434
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Amar Tumballi <amarts@redhat.com>
Reviewed-by: Anand Avati <avati@redhat.com>
gfapi: fix glfs_readlink()

glfs_readlink() is supposed to memcpy the buffer pointer
returned by syncop_readlink(). Fix it.

Change-Id: I5936b07abbd93cf02b354233dc60f6623e30a38b
BUG: 953694
Signed-off-by: Anand Avati <avati@redhat.com>
Reviewed-on: http://review.gluster.org/5439
Reviewed-by: Amar Tumballi <amarts@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Raghavendra Talur <rtalur@redhat.com>
mount.glusterfs: remove use of LD_LIBRARY_PATH

BUG: 989858
Change-Id: Id7c3929a179e151b6d60d3382bd5310187bb2aa6
Signed-off-by: Amar Tumballi <amarts@redhat.com>
Reviewed-on: http://review.gluster.org/5423
Reviewed-by: Bala FA <barumuga@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
glusterd : initiating gsyncd restart during add-brick

During add-brick, when a new brick is added in one of the
nodes that was already a part of the existing volume, and
gsyncd was already running on that node, then all gsyncd
processes running on that node, for that particular master
and any slave sessions will be restarted

If a new brick is added in a new node, then after adding the
brick, the user has to perform the following steps:

1. gluster system:: execute gsec_create
2. gluster volume geo-replication <master-vol> <slave-vol> create push-pem force
3. gluster volume geo-replication <master-vol> <slave-vol> start force

Change-Id: I4b9633e176c80e4a7cf33f42ebfa47ab8fc283f1
BUG: 989532
Signed-off-by: Avra Sengupta <asengupt@redhat.com>
Reviewed-on: http://review.gluster.org/5416
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Amar Tumballi <amarts@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
glusterd : Checking session created or not in case of geo-rep stop

Performing statefile check in case of geo-rep stop, so as to provide
proper error message in case session is not created.

However in case of geo-rep stop force, we allow the command to succeed
even in case that the session is not created, because the stop command
is a failsafe command to stop running geo-rep sessions on any nodes.

Change-Id: I2b6a0253de977633606c422cbbc9e37cede9a268
BUG: 989541
Signed-off-by: Avra Sengupta <asengupt@redhat.com>
Reviewed-on: http://review.gluster.org/5417
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Amar Tumballi <amarts@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
WIP: doc: Drop docbook admin guide

It has been converted to Markdown.

Change-Id: I744b717a7fac9e9bc15da849bf1ad0accf2af530
WIP: doc: Move glusterd.vol to extras/ directory

It's actually not documentation.

Change-Id: I35c0ee8bc8a92396e636963210816c7a8031892a
WIP: doc: Drop generated files

TODO: Makefiles to regenerate them if needed.

Change-Id: I11864318acb517bba927393df560bfa82978c927
WIP: doc: Drop volfiles from documentation tree

They're mostly useless.

Change-Id: I8c88f3d3e30eb5d61e46444d33fd21c0188ed332
WIP: doc: Rename architectural diagram

It should not be specific to old gluster version anyway and the dot in name
causes trouble to LaTeX:

pandoc: Error producing PDF from TeX source.
! LaTeX Error: Unknown graphics extension: .2_Architecture.png.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.98 ...ages/640px-GlusterFS_3.2_Architecture.png}

Change-Id: Ic342f0344f03d98edb9682d4270c7ecc79ef1e63
WIP: doc: Get rid of weird quoting

pandoc: Error producing PDF from TeX source.
! Package inputenc Error: Unicode char \u8:‟ not set up for use with LaTeX.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
 ...

l.6216 ... the objects access rights to "public‟

Change-Id: I1b1ba667dc56e9682e10c0a5b0a20ede2ba29920
WIP: doc: Drop corrupted and unused file

Change-Id: I09cc8e31e84b18ef87bd0c7445d341f414c03c0a
WIP: doc: convert coding standards to markdown

Change-Id: I56cc6fc3cef7713ccae2d73c5f639a09591457b1
WIP: doc: convert hacker guide to markdown

No huge edits were done, basically just s/xlator/translator.
Still largely obsolete, but might be a good start for extending.

Change-Id: I81414be59fbdf8629da068c9d43f6a86678a1642
WIP: doc: convert write-behind translator documentation to markdown

Change-Id: I701461d01c8fab889ac213133b56ffabd9ccf0ad
WIP: doc: remove bdb translator documentation

The translator was removed in ea08bf886732d9680f2d6de19f3d68908a55143b.

Change-Id: I6ea2c3f95d072ebd67bb76bf8e27702057bc1d55