<feed xmlns='http://www.w3.org/2005/Atom'>
<title>glusterfs.git/cli/src/cli.h, branch v3.5.6</title>
<subtitle>GlusterFS is a distributed file-system capable of scaling to several petabytes. It aggregates various storage bricks over Infiniband RDMA or TCP/IP interconnect into one large parallel network file system.</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/anoopcs/public_git/glusterfs.git/'/>
<entry>
<title>features/quota : Fix XML output for quota list command</title>
<updated>2015-07-07T16:11:38+00:00</updated>
<author>
<name>vmallika</name>
<email>vmallika@redhat.com</email>
</author>
<published>2015-06-15T07:01:48+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/anoopcs/public_git/glusterfs.git/commit/?id=c9e92231e8fb31e6e4a9f061746daaedd77ad1b7'/>
<id>c9e92231e8fb31e6e4a9f061746daaedd77ad1b7</id>
<content type='text'>
This is a backport of http://review.gluster.org/#/c/9481/

&gt; Sample output:
&gt; ---------------
&gt;
&gt; Sample 1)
&gt; ----------
&gt; [root@snapshot-28 glusterfs]# gluster volume quota vol1 list /dir1 /dir4
&gt; /dir5 --xml
&gt; &lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
&gt; &lt;cliOutput&gt;
&gt;   &lt;opRet&gt;0&lt;/opRet&gt;
&gt;   &lt;opErrno&gt;0&lt;/opErrno&gt;
&gt;   &lt;opErrstr/&gt;
&gt;   &lt;volQuota&gt;
&gt;     &lt;limit&gt;
&gt;       &lt;path&gt;/dir1&lt;/path&gt;
&gt;       &lt;hard_limit&gt;10.0MB&lt;/hard_limit&gt;
&gt;       &lt;soft_limit&gt;80%&lt;/soft_limit&gt;
&gt;       &lt;used_space&gt;0Bytes&lt;/used_space&gt;
&gt;       &lt;avail_space&gt;10.0MB&lt;/avail_space&gt;
&gt;     &lt;/limit&gt;
&gt;     &lt;limit&gt;
&gt;       &lt;path&gt;/dir4&lt;/path&gt;
&gt;       &lt;path&gt;No such file or directory&lt;/path&gt;
&gt;     &lt;/limit&gt;
&gt;     &lt;limit&gt;
&gt;       &lt;path&gt;/dir5&lt;/path&gt;
&gt;       &lt;path&gt;No such file or directory&lt;/path&gt;
&gt;     &lt;/limit&gt;
&gt;   &lt;/volQuota&gt;
&gt; &lt;/cliOutput&gt;
&gt;
&gt; Sample 2)
&gt; ---------
&gt; gluster volume quota vol1 list --xml
&gt; &lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
&gt; &lt;cliOutput&gt;
&gt;   &lt;opRet&gt;0&lt;/opRet&gt;
&gt;   &lt;opErrno&gt;0&lt;/opErrno&gt;
&gt;   &lt;opErrstr/&gt;
&gt;   &lt;volQuota/&gt;
&gt; &lt;/cliOutput&gt;
&gt; &lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
&gt; &lt;cliOutput&gt;
&gt;   &lt;volQuota&gt;
&gt;     &lt;limit&gt;
&gt;       &lt;path&gt;/dir&lt;/path&gt;
&gt;       &lt;hard_limit&gt;10.0MB&lt;/hard_limit&gt;
&gt;       &lt;soft_limit&gt;80%&lt;/soft_limit&gt;
&gt;       &lt;used_space&gt;0Bytes&lt;/used_space&gt;
&gt;       &lt;avail_space&gt;10.0MB&lt;/avail_space&gt;
&gt;     &lt;/limit&gt;
&gt;     &lt;limit&gt;
&gt;       &lt;path&gt;/dir1&lt;/path&gt;
&gt;       &lt;hard_limit&gt;10.0MB&lt;/hard_limit&gt;
&gt;       &lt;soft_limit&gt;80%&lt;/soft_limit&gt;
&gt;       &lt;used_space&gt;0Bytes&lt;/used_space&gt;
&gt;       &lt;avail_space&gt;10.0MB&lt;/avail_space&gt;
&gt;     &lt;/limit&gt;
&gt;   &lt;/volQuota&gt;
&gt; &lt;/cliOutput&gt;
&gt;
&gt; Change-Id: I8a8d83cff88f778e5ee01fbca07d9f94c412317a
&gt; BUG: 1185259
&gt; Signed-off-by: Sachin Pandit &lt;spandit@redhat.com&gt;
&gt; Reviewed-on: http://review.gluster.org/9481
&gt; Reviewed-by: Vijaikumar Mallikarjuna &lt;vmallika@redhat.com&gt;
&gt; Tested-by: Gluster Build System &lt;jenkins@build.gluster.com&gt;
&gt; Reviewed-by: Kaushal M &lt;kaushal@redhat.com&gt;

Change-Id: Ibdf51db626a07e68b5ace98140877f6d21918c20
BUG: 1231641
Signed-off-by: vmallika &lt;vmallika@redhat.com&gt;
Reviewed-on: http://review.gluster.org/11220
Tested-by: Gluster Build System &lt;jenkins@build.gluster.com&gt;
Reviewed-by: Sachin Pandit &lt;spandit@redhat.com&gt;
Reviewed-by: Niels de Vos &lt;ndevos@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a backport of http://review.gluster.org/#/c/9481/

&gt; Sample output:
&gt; ---------------
&gt;
&gt; Sample 1)
&gt; ----------
&gt; [root@snapshot-28 glusterfs]# gluster volume quota vol1 list /dir1 /dir4
&gt; /dir5 --xml
&gt; &lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
&gt; &lt;cliOutput&gt;
&gt;   &lt;opRet&gt;0&lt;/opRet&gt;
&gt;   &lt;opErrno&gt;0&lt;/opErrno&gt;
&gt;   &lt;opErrstr/&gt;
&gt;   &lt;volQuota&gt;
&gt;     &lt;limit&gt;
&gt;       &lt;path&gt;/dir1&lt;/path&gt;
&gt;       &lt;hard_limit&gt;10.0MB&lt;/hard_limit&gt;
&gt;       &lt;soft_limit&gt;80%&lt;/soft_limit&gt;
&gt;       &lt;used_space&gt;0Bytes&lt;/used_space&gt;
&gt;       &lt;avail_space&gt;10.0MB&lt;/avail_space&gt;
&gt;     &lt;/limit&gt;
&gt;     &lt;limit&gt;
&gt;       &lt;path&gt;/dir4&lt;/path&gt;
&gt;       &lt;path&gt;No such file or directory&lt;/path&gt;
&gt;     &lt;/limit&gt;
&gt;     &lt;limit&gt;
&gt;       &lt;path&gt;/dir5&lt;/path&gt;
&gt;       &lt;path&gt;No such file or directory&lt;/path&gt;
&gt;     &lt;/limit&gt;
&gt;   &lt;/volQuota&gt;
&gt; &lt;/cliOutput&gt;
&gt;
&gt; Sample 2)
&gt; ---------
&gt; gluster volume quota vol1 list --xml
&gt; &lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
&gt; &lt;cliOutput&gt;
&gt;   &lt;opRet&gt;0&lt;/opRet&gt;
&gt;   &lt;opErrno&gt;0&lt;/opErrno&gt;
&gt;   &lt;opErrstr/&gt;
&gt;   &lt;volQuota/&gt;
&gt; &lt;/cliOutput&gt;
&gt; &lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
&gt; &lt;cliOutput&gt;
&gt;   &lt;volQuota&gt;
&gt;     &lt;limit&gt;
&gt;       &lt;path&gt;/dir&lt;/path&gt;
&gt;       &lt;hard_limit&gt;10.0MB&lt;/hard_limit&gt;
&gt;       &lt;soft_limit&gt;80%&lt;/soft_limit&gt;
&gt;       &lt;used_space&gt;0Bytes&lt;/used_space&gt;
&gt;       &lt;avail_space&gt;10.0MB&lt;/avail_space&gt;
&gt;     &lt;/limit&gt;
&gt;     &lt;limit&gt;
&gt;       &lt;path&gt;/dir1&lt;/path&gt;
&gt;       &lt;hard_limit&gt;10.0MB&lt;/hard_limit&gt;
&gt;       &lt;soft_limit&gt;80%&lt;/soft_limit&gt;
&gt;       &lt;used_space&gt;0Bytes&lt;/used_space&gt;
&gt;       &lt;avail_space&gt;10.0MB&lt;/avail_space&gt;
&gt;     &lt;/limit&gt;
&gt;   &lt;/volQuota&gt;
&gt; &lt;/cliOutput&gt;
&gt;
&gt; Change-Id: I8a8d83cff88f778e5ee01fbca07d9f94c412317a
&gt; BUG: 1185259
&gt; Signed-off-by: Sachin Pandit &lt;spandit@redhat.com&gt;
&gt; Reviewed-on: http://review.gluster.org/9481
&gt; Reviewed-by: Vijaikumar Mallikarjuna &lt;vmallika@redhat.com&gt;
&gt; Tested-by: Gluster Build System &lt;jenkins@build.gluster.com&gt;
&gt; Reviewed-by: Kaushal M &lt;kaushal@redhat.com&gt;

Change-Id: Ibdf51db626a07e68b5ace98140877f6d21918c20
BUG: 1231641
Signed-off-by: vmallika &lt;vmallika@redhat.com&gt;
Reviewed-on: http://review.gluster.org/11220
Tested-by: Gluster Build System &lt;jenkins@build.gluster.com&gt;
Reviewed-by: Sachin Pandit &lt;spandit@redhat.com&gt;
Reviewed-by: Niels de Vos &lt;ndevos@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>glusterd/geo-rep: more glusterd and cli fixes for geo-rep.</title>
<updated>2014-01-27T17:44:33+00:00</updated>
<author>
<name>Ajeet Jha</name>
<email>ajha@redhat.com</email>
</author>
<published>2013-12-02T07:25:18+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/anoopcs/public_git/glusterfs.git/commit/?id=f33d09f23b089bd07437eb714f8dffa43460d6b5'/>
<id>f33d09f23b089bd07437eb714f8dffa43460d6b5</id>
<content type='text'>
    -&gt; handle option validation cases in reset case.
    -&gt; Creating valid conf path when glusterd restarts.
    -&gt; Reading the gsyncd worker thread status and displaying it.
    -&gt; Displaying status-detail per worker.
    -&gt; Fetch checkpoint info in geo-rep status.
    -&gt; use-tarssh value validation added.

misc: misc geo-rep fixes based on cluster, logrotate etc..
    -&gt; cluster/dht: fix 'stime' getxattr getting overwritten.
    -&gt; cluster/afr: return max of 'stime' values in subvol.
    -&gt; geo-rep-logrotate: Sending SIGHUP to geo-rep auxiliary.
    -&gt; cluster/dht: fix convoluted logic while aggregating.
    -&gt; cluster/*: fix 'stime' min/max fetch logic.

Change-Id: I811acea0bbd6194797a3e55d89295d1ea021ac85
BUG: 1036552
Signed-off-by: Ajeet Jha &lt;ajha@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6405
Tested-by: Gluster Build System &lt;jenkins@build.gluster.com&gt;
Reviewed-by: Amar Tumballi &lt;amarts@gmail.com&gt;
Reviewed-by: Anand Avati &lt;avati@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6810
Reviewed-by: Vijay Bellur &lt;vbellur@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
    -&gt; handle option validation cases in reset case.
    -&gt; Creating valid conf path when glusterd restarts.
    -&gt; Reading the gsyncd worker thread status and displaying it.
    -&gt; Displaying status-detail per worker.
    -&gt; Fetch checkpoint info in geo-rep status.
    -&gt; use-tarssh value validation added.

misc: misc geo-rep fixes based on cluster, logrotate etc..
    -&gt; cluster/dht: fix 'stime' getxattr getting overwritten.
    -&gt; cluster/afr: return max of 'stime' values in subvol.
    -&gt; geo-rep-logrotate: Sending SIGHUP to geo-rep auxiliary.
    -&gt; cluster/dht: fix convoluted logic while aggregating.
    -&gt; cluster/*: fix 'stime' min/max fetch logic.

Change-Id: I811acea0bbd6194797a3e55d89295d1ea021ac85
BUG: 1036552
Signed-off-by: Ajeet Jha &lt;ajha@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6405
Tested-by: Gluster Build System &lt;jenkins@build.gluster.com&gt;
Reviewed-by: Amar Tumballi &lt;amarts@gmail.com&gt;
Reviewed-by: Anand Avati &lt;avati@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6810
Reviewed-by: Vijay Bellur &lt;vbellur@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cli, glusterd: More quota fixes ...</title>
<updated>2013-12-03T09:48:31+00:00</updated>
<author>
<name>Krutika Dhananjay</name>
<email>kdhananj@redhat.com</email>
</author>
<published>2013-11-25T09:46:23+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/anoopcs/public_git/glusterfs.git/commit/?id=8ed37473b124c97363b3f7eaf9824070559b4ec2'/>
<id>8ed37473b124c97363b3f7eaf9824070559b4ec2</id>
<content type='text'>
... which may be grouped under the following categories:

1. Fix incorrect cli exit status for 'quota list' cmd
2. Print appropriate error message on quota parse errors in cli

        Authored by: Anuradha Talur &lt;atalur@redhat.com&gt;

3. glusterd: Improve quota validation during stage-op
4. Fix peer probe issues resulting from quota conf checksum mismatches
5. Enhancements to CLI output in the event of quota command failures

        Authored by: Kaushal Madappa &lt;kmadappa@redhat.com&gt;

7. Move aux mount location from /tmp to /var/run/gluster

        Authored by: Krishnan Parthasarathi &lt;kparthas@redhat.com&gt;

8. Fix performance issues in quota limit-usage

        Authored by: Krutika Dhananjay &lt;kdhananj@redhat.com&gt;

Note: Some functions that were used in earlier version of quota,
      that aren't called anymore have been removed.

Change-Id: I963d4145f3ecdfe30c61bfa8920baccb33d2d4bd
BUG: 969461
Signed-off-by: Krutika Dhananjay &lt;kdhananj@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6386
Tested-by: Gluster Build System &lt;jenkins@build.gluster.com&gt;
Reviewed-by: Vijay Bellur &lt;vbellur@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
... which may be grouped under the following categories:

1. Fix incorrect cli exit status for 'quota list' cmd
2. Print appropriate error message on quota parse errors in cli

        Authored by: Anuradha Talur &lt;atalur@redhat.com&gt;

3. glusterd: Improve quota validation during stage-op
4. Fix peer probe issues resulting from quota conf checksum mismatches
5. Enhancements to CLI output in the event of quota command failures

        Authored by: Kaushal Madappa &lt;kmadappa@redhat.com&gt;

7. Move aux mount location from /tmp to /var/run/gluster

        Authored by: Krishnan Parthasarathi &lt;kparthas@redhat.com&gt;

8. Fix performance issues in quota limit-usage

        Authored by: Krutika Dhananjay &lt;kdhananj@redhat.com&gt;

Note: Some functions that were used in earlier version of quota,
      that aren't called anymore have been removed.

Change-Id: I963d4145f3ecdfe30c61bfa8920baccb33d2d4bd
BUG: 969461
Signed-off-by: Krutika Dhananjay &lt;kdhananj@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6386
Tested-by: Gluster Build System &lt;jenkins@build.gluster.com&gt;
Reviewed-by: Vijay Bellur &lt;vbellur@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cli/glusterd: Changes to quota command Quota feature</title>
<updated>2013-11-26T18:25:27+00:00</updated>
<author>
<name>Raghavendra G</name>
<email>rgowdapp@redhat.com</email>
</author>
<published>2013-11-14T11:35:26+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/anoopcs/public_git/glusterfs.git/commit/?id=0d5cd92f51c02b8d664000b5a2d22a2ddbbc23b6'/>
<id>0d5cd92f51c02b8d664000b5a2d22a2ddbbc23b6</id>
<content type='text'>
 re-work.

Following are the cli commands that are new/re-worked:
======================================================

volume quota &lt;VOLNAME&gt; {enable|disable|list [&lt;path&gt; ...]|remove &lt;path&gt;| default-soft-limit &lt;percent&gt;} |
volume quota &lt;VOLNAME&gt; {limit-usage &lt;path&gt; &lt;size&gt; [&lt;percent&gt;]} |
volume quota &lt;VOLNAME&gt; {alert-time|soft-timeout|hard-timeout} {&lt;time&gt;}
volume status [all | &lt;VOLNAME&gt; [nfs|shd|&lt;BRICK&gt;|quotad]] [detail|clients|mem|inode|fd|callpool]
volume statedump &lt;VOLNAME&gt; [nfs|quotad] [all|mem|iobuf|callpool|priv|fd|inode|history]

glusterd changes:
=================
* Quota limits are now set as extended attributes by glusterd from
  the aux mount created by the cli.
* The gfids of the directories on which quota limits are set
  for a given volume are stored in
  /var/lib/glusterd/vols/&lt;volname&gt;/quota.conf file in binary format,
  and whose cksum and version is stored in
  /var/lib/glusterd/vols/&lt;volname&gt;/quota.cksum.

Original-author: Krutika Dhananjay &lt;kdhananj@redhat.com&gt;
Original-author: Krishnan Parthasarathi &lt;kparthas@redhat.com&gt;

BUG: 969461
Change-Id: If32bba36c67f9c2a30417af9c6389045b2b7c13b
Signed-off-by: Krutika Dhananjay &lt;kdhananj@redhat.com&gt;
Signed-off-by: Raghavendra G &lt;rgowdapp@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6003
Tested-by: Gluster Build System &lt;jenkins@build.gluster.com&gt;
Reviewed-by: Anand Avati &lt;avati@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 re-work.

Following are the cli commands that are new/re-worked:
======================================================

volume quota &lt;VOLNAME&gt; {enable|disable|list [&lt;path&gt; ...]|remove &lt;path&gt;| default-soft-limit &lt;percent&gt;} |
volume quota &lt;VOLNAME&gt; {limit-usage &lt;path&gt; &lt;size&gt; [&lt;percent&gt;]} |
volume quota &lt;VOLNAME&gt; {alert-time|soft-timeout|hard-timeout} {&lt;time&gt;}
volume status [all | &lt;VOLNAME&gt; [nfs|shd|&lt;BRICK&gt;|quotad]] [detail|clients|mem|inode|fd|callpool]
volume statedump &lt;VOLNAME&gt; [nfs|quotad] [all|mem|iobuf|callpool|priv|fd|inode|history]

glusterd changes:
=================
* Quota limits are now set as extended attributes by glusterd from
  the aux mount created by the cli.
* The gfids of the directories on which quota limits are set
  for a given volume are stored in
  /var/lib/glusterd/vols/&lt;volname&gt;/quota.conf file in binary format,
  and whose cksum and version is stored in
  /var/lib/glusterd/vols/&lt;volname&gt;/quota.cksum.

Original-author: Krutika Dhananjay &lt;kdhananj@redhat.com&gt;
Original-author: Krishnan Parthasarathi &lt;kparthas@redhat.com&gt;

BUG: 969461
Change-Id: If32bba36c67f9c2a30417af9c6389045b2b7c13b
Signed-off-by: Krutika Dhananjay &lt;kdhananj@redhat.com&gt;
Signed-off-by: Raghavendra G &lt;rgowdapp@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6003
Tested-by: Gluster Build System &lt;jenkins@build.gluster.com&gt;
Reviewed-by: Anand Avati &lt;avati@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>bd_map: Remove bd_map xlator</title>
<updated>2013-11-13T19:38:28+00:00</updated>
<author>
<name>M. Mohan Kumar</name>
<email>mohan@in.ibm.com</email>
</author>
<published>2013-11-13T17:14:42+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/anoopcs/public_git/glusterfs.git/commit/?id=15a8ecd9b3eedf80881bd3dba81f16b7d2cb7c97'/>
<id>15a8ecd9b3eedf80881bd3dba81f16b7d2cb7c97</id>
<content type='text'>
Remove bd_map xlator and CLI related changes.

Change-Id: If7086205df1907127c1a1fa4ba603f1c48421d09
BUG: 1028672
Signed-off-by: M. Mohan Kumar &lt;mohan@in.ibm.com&gt;
Reviewed-on: http://review.gluster.org/5747
Tested-by: Gluster Build System &lt;jenkins@build.gluster.com&gt;
Reviewed-by: Anand Avati &lt;avati@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove bd_map xlator and CLI related changes.

Change-Id: If7086205df1907127c1a1fa4ba603f1c48421d09
BUG: 1028672
Signed-off-by: M. Mohan Kumar &lt;mohan@in.ibm.com&gt;
Reviewed-on: http://review.gluster.org/5747
Tested-by: Gluster Build System &lt;jenkins@build.gluster.com&gt;
Reviewed-by: Anand Avati &lt;avati@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cli,glusterd: Changes to cli-glusterd communication</title>
<updated>2013-10-17T18:26:45+00:00</updated>
<author>
<name>Kaushal M</name>
<email>kaushal@redhat.com</email>
</author>
<published>2013-07-03T11:01:22+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/anoopcs/public_git/glusterfs.git/commit/?id=fc637b14cfad4d08e72bee7064194c8007a388d0'/>
<id>fc637b14cfad4d08e72bee7064194c8007a388d0</id>
<content type='text'>
Glusterd changes:
With this patch, glusterd creates a socket file in
DATADIR/run/glusterd.socket , and listen on it for cli requests. It
listens for 2 rpc programs on the socket file,
- The glusterd cli rpc program, for all cli commands
- A reduced glusterd handshake program, just for the 'system:: getspec'
  command

The location of the socket file can be changed with the glusterd option
'glusterd-sockfile'.

To retain compatibility with the '--remote-host' cli option, glusterd
also listens for the cli requests on port 24007. But, for the sake of
security, it listens using a reduced cli rpc program on the port. The
reduced rpc program only contains read-only procs used for 'volume
(info|list|status)', 'peer status' and 'system:: getwd' cli commands.

CLI changes:
The gluster cli now uses the glusterd socket file for communicating with
glusterd by default. A new option '--gluster-sock' has been added to
allow specifying the sockfile used to connect. Using the '--remote-host'
option will make cli connect to the given host &amp; port.

Tests changes:
cluster.rc has been modified to make use of socket files and use
different log files for each glusterd.
Some of the tests using cluster.rc have been fixed.

Change-Id: Iaf24bc22f42f8014a5fa300ce37c7fc9b1b92b53
BUG: 980754
Signed-off-by: Kaushal M &lt;kaushal@redhat.com&gt;
Reviewed-on: http://review.gluster.org/5280
Tested-by: Gluster Build System &lt;jenkins@build.gluster.com&gt;
Reviewed-by: Krishnan Parthasarathi &lt;kparthas@redhat.com&gt;
Reviewed-by: Vijay Bellur &lt;vbellur@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Glusterd changes:
With this patch, glusterd creates a socket file in
DATADIR/run/glusterd.socket , and listen on it for cli requests. It
listens for 2 rpc programs on the socket file,
- The glusterd cli rpc program, for all cli commands
- A reduced glusterd handshake program, just for the 'system:: getspec'
  command

The location of the socket file can be changed with the glusterd option
'glusterd-sockfile'.

To retain compatibility with the '--remote-host' cli option, glusterd
also listens for the cli requests on port 24007. But, for the sake of
security, it listens using a reduced cli rpc program on the port. The
reduced rpc program only contains read-only procs used for 'volume
(info|list|status)', 'peer status' and 'system:: getwd' cli commands.

CLI changes:
The gluster cli now uses the glusterd socket file for communicating with
glusterd by default. A new option '--gluster-sock' has been added to
allow specifying the sockfile used to connect. Using the '--remote-host'
option will make cli connect to the given host &amp; port.

Tests changes:
cluster.rc has been modified to make use of socket files and use
different log files for each glusterd.
Some of the tests using cluster.rc have been fixed.

Change-Id: Iaf24bc22f42f8014a5fa300ce37c7fc9b1b92b53
BUG: 980754
Signed-off-by: Kaushal M &lt;kaushal@redhat.com&gt;
Reviewed-on: http://review.gluster.org/5280
Tested-by: Gluster Build System &lt;jenkins@build.gluster.com&gt;
Reviewed-by: Krishnan Parthasarathi &lt;kparthas@redhat.com&gt;
Reviewed-by: Vijay Bellur &lt;vbellur@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cli,glusterd: Implement 'volume status tasks'</title>
<updated>2013-10-09T06:13:16+00:00</updated>
<author>
<name>Krutika Dhananjay</name>
<email>kdhananj@redhat.com</email>
</author>
<published>2013-09-24T11:31:46+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/anoopcs/public_git/glusterfs.git/commit/?id=e51ca3c1c991416895e1e8693f7c3e6332d57464'/>
<id>e51ca3c1c991416895e1e8693f7c3e6332d57464</id>
<content type='text'>
oVirt's Gluster Integration needs an inexpensive command that can be
executed every 10 seconds to monitor async tasks and their parameters,
for all volumes.

The solution involves adding a 'tasks' sub-command to 'volume status'
to fetch only the async task IDs, type and other relevant parameters.
Only the originator glusterd participates in this command as all the
information needed is available on all the nodes. This is to make the
command suitable for being executed every 10 seconds.

Change-Id: I1edc607baf29b001a5585079dec681d7c641b3d1
BUG: 1012346
Signed-off-by: Krutika Dhananjay &lt;kdhananj@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6006
Tested-by: Gluster Build System &lt;jenkins@build.gluster.com&gt;
Reviewed-by: Kaushal M &lt;kaushal@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
oVirt's Gluster Integration needs an inexpensive command that can be
executed every 10 seconds to monitor async tasks and their parameters,
for all volumes.

The solution involves adding a 'tasks' sub-command to 'volume status'
to fetch only the async task IDs, type and other relevant parameters.
Only the originator glusterd participates in this command as all the
information needed is available on all the nodes. This is to make the
command suitable for being executed every 10 seconds.

Change-Id: I1edc607baf29b001a5585079dec681d7c641b3d1
BUG: 1012346
Signed-off-by: Krutika Dhananjay &lt;kdhananj@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6006
Tested-by: Gluster Build System &lt;jenkins@build.gluster.com&gt;
Reviewed-by: Kaushal M &lt;kaushal@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>logging: Remove multiple definitions of DEFAULT_LOG_FILE_DIRECTORY</title>
<updated>2013-09-24T19:00:35+00:00</updated>
<author>
<name>Vijay Bellur</name>
<email>vbellur@redhat.com</email>
</author>
<published>2013-09-13T05:41:41+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/anoopcs/public_git/glusterfs.git/commit/?id=848471799236063961eb37cb7bda3cf0e9a6f956'/>
<id>848471799236063961eb37cb7bda3cf0e9a6f956</id>
<content type='text'>
Change-Id: I8d670a228d3c1282aa7d70b151f166d04abc40e5
BUG: 764890
Signed-off-by: Vijay Bellur &lt;vbellur@redhat.com&gt;
Reviewed-on: http://review.gluster.org/5909
Reviewed-by: Anand Avati &lt;avati@redhat.com&gt;
Tested-by: Anand Avati &lt;avati@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I8d670a228d3c1282aa7d70b151f166d04abc40e5
BUG: 764890
Signed-off-by: Vijay Bellur &lt;vbellur@redhat.com&gt;
Reviewed-on: http://review.gluster.org/5909
Reviewed-by: Anand Avati &lt;avati@redhat.com&gt;
Tested-by: Anand Avati &lt;avati@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: Add statusStr xml tag to task list and rebalance/remove brick status</title>
<updated>2013-09-12T17:57:22+00:00</updated>
<author>
<name>Aravinda VK</name>
<email>avishwan@redhat.com</email>
</author>
<published>2013-08-30T09:07:03+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/anoopcs/public_git/glusterfs.git/commit/?id=cd7951aa31ae4bbdf35fc6d1f2466636844b889d'/>
<id>cd7951aa31ae4bbdf35fc6d1f2466636844b889d</id>
<content type='text'>
New xml tag statusStr added to following gluster cli commands
gluster volume status all --xml (For Task status)
gluster volume rebalance &lt;VOLNAME&gt; status --xml
gluster volume remove-brick &lt;VOLNAME&gt; &lt;BRICK1..&gt; status --xml

Example(volume status all):
&lt;task&gt;
    &lt;type&gt;Rebalance&lt;/type&gt;
    &lt;id&gt;82d8d122-8738-4144-8507-d93fc98b61df&lt;/id&gt;
    &lt;status&gt;3&lt;/status&gt;
    &lt;statusStr&gt;completed&lt;/statusStr&gt;
&lt;/task&gt;

Example(volume rebalance &lt;VOL&gt; status)
&lt;node&gt;
    &lt;nodeName&gt;localhost&lt;/nodeName&gt;
    &lt;files&gt;0&lt;/files&gt;
    &lt;size&gt;0&lt;/size&gt;
    &lt;lookups&gt;0&lt;/lookups&gt;
    &lt;failures&gt;0&lt;/failures&gt;
    &lt;status&gt;3&lt;/status&gt;
    &lt;statusStr&gt;completed&lt;/statusStr&gt;
&lt;/node&gt;

Also modified task status as string instead of showing number
in gluster volume status all

Example:
Status of volume: gv1
Gluster process                                         Port    Online  Pid
------------------------------------------------------------------------------
Brick sumne.sumne:/gfs/b1                               49154   Y       15489
Brick sumne.sumne:/gfs/b2                               49155   Y       15493
NFS Server on localhost                                 N/A     N       15913

           Task                                      ID         Status
           ----                                      --         ------
      Rebalance    82d8d122-8738-4144-8507-d93fc98b61df      completed

BUG: 1003521
Change-Id: Ib283016af4c18132fb13fb33d44075782d77823c
Signed-off-by: Aravinda VK &lt;avishwan@redhat.com&gt;
Reviewed-on: http://review.gluster.org/5739
Reviewed-by: Kaushal M &lt;kaushal@redhat.com&gt;
Tested-by: Gluster Build System &lt;jenkins@build.gluster.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
New xml tag statusStr added to following gluster cli commands
gluster volume status all --xml (For Task status)
gluster volume rebalance &lt;VOLNAME&gt; status --xml
gluster volume remove-brick &lt;VOLNAME&gt; &lt;BRICK1..&gt; status --xml

Example(volume status all):
&lt;task&gt;
    &lt;type&gt;Rebalance&lt;/type&gt;
    &lt;id&gt;82d8d122-8738-4144-8507-d93fc98b61df&lt;/id&gt;
    &lt;status&gt;3&lt;/status&gt;
    &lt;statusStr&gt;completed&lt;/statusStr&gt;
&lt;/task&gt;

Example(volume rebalance &lt;VOL&gt; status)
&lt;node&gt;
    &lt;nodeName&gt;localhost&lt;/nodeName&gt;
    &lt;files&gt;0&lt;/files&gt;
    &lt;size&gt;0&lt;/size&gt;
    &lt;lookups&gt;0&lt;/lookups&gt;
    &lt;failures&gt;0&lt;/failures&gt;
    &lt;status&gt;3&lt;/status&gt;
    &lt;statusStr&gt;completed&lt;/statusStr&gt;
&lt;/node&gt;

Also modified task status as string instead of showing number
in gluster volume status all

Example:
Status of volume: gv1
Gluster process                                         Port    Online  Pid
------------------------------------------------------------------------------
Brick sumne.sumne:/gfs/b1                               49154   Y       15489
Brick sumne.sumne:/gfs/b2                               49155   Y       15493
NFS Server on localhost                                 N/A     N       15913

           Task                                      ID         Status
           ----                                      --         ------
      Rebalance    82d8d122-8738-4144-8507-d93fc98b61df      completed

BUG: 1003521
Change-Id: Ib283016af4c18132fb13fb33d44075782d77823c
Signed-off-by: Aravinda VK &lt;avishwan@redhat.com&gt;
Reviewed-on: http://review.gluster.org/5739
Reviewed-by: Kaushal M &lt;kaushal@redhat.com&gt;
Tested-by: Gluster Build System &lt;jenkins@build.gluster.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>glusterd/cli: Geo-Replication "status detail" cmd</title>
<updated>2013-09-05T02:50:49+00:00</updated>
<author>
<name>Venky Shankar</name>
<email>vshankar@redhat.com</email>
</author>
<published>2013-08-12T16:39:45+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/anoopcs/public_git/glusterfs.git/commit/?id=fe98c2902fd13dac93e5add60d1f10b2cef8ae37'/>
<id>fe98c2902fd13dac93e5add60d1f10b2cef8ae37</id>
<content type='text'>
Provides detailed status info in the following format

                    MASTER &lt;master-vol&gt;  SLAVE &lt;slave-vol&gt;

NODE   HEALTH   UPTIME  FILES SYNCD  FILES PENDING  BYTES PENDING  DELETES PENDING
-----------------------------------------------------------------------------------

This patch introdues "status detail" command to show crawl related
information in CLI. These values are "pulled" from gsyncd when
"status detail" is executed.

Change-Id: I1fdaf7180eacce054a864d34971dc160bd7301e1
BUG: 990420
Signed-off-by: Venky Shankar &lt;vshankar@redhat.com&gt;
Reviewed-on: http://review.gluster.org/5590
Tested-by: Gluster Build System &lt;jenkins@build.gluster.com&gt;
Reviewed-by: Avra Sengupta &lt;asengupt@redhat.com&gt;
Tested-by: Avra Sengupta &lt;asengupt@redhat.com&gt;
Reviewed-by: Anand Avati &lt;avati@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Provides detailed status info in the following format

                    MASTER &lt;master-vol&gt;  SLAVE &lt;slave-vol&gt;

NODE   HEALTH   UPTIME  FILES SYNCD  FILES PENDING  BYTES PENDING  DELETES PENDING
-----------------------------------------------------------------------------------

This patch introdues "status detail" command to show crawl related
information in CLI. These values are "pulled" from gsyncd when
"status detail" is executed.

Change-Id: I1fdaf7180eacce054a864d34971dc160bd7301e1
BUG: 990420
Signed-off-by: Venky Shankar &lt;vshankar@redhat.com&gt;
Reviewed-on: http://review.gluster.org/5590
Tested-by: Gluster Build System &lt;jenkins@build.gluster.com&gt;
Reviewed-by: Avra Sengupta &lt;asengupt@redhat.com&gt;
Tested-by: Avra Sengupta &lt;asengupt@redhat.com&gt;
Reviewed-by: Anand Avati &lt;avati@redhat.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
