Currently `gluster volume list` prints: [root@gqac026 ~]# gluster volume list 5 volumes present in cluster 1. nfs-test-0 2. nfs-test-3 3. nfs-test-2 4. lockt 5. nfs-test-big Making it script friendly is more useful. The number of volumes can be got by piping to `wc -l' and we can get the numbering by piping to nl. The above pretty printing is quite redundant when we can use some good old unix tools. The proposed volume list could be like: [root@gqac026 ~]# gluster volume list nfs-test-0 nfs-test-3 nfs-test-2 lockt nfs-test-big So that I can script it. For eg: var=`gluster volume list | grep big` gluster volume start $var . . . so on... Currently, if I need something like above I have to take all the pain of doing a sed/cut etc.
CHANGE: http://review.gluster.com/3207 (cli: fix the output of 'gluster volume list') merged in master by Anand Avati (avati)
Works as expected on qa39