On 08/12/2013 12:17 PM, Justin Clift wrote:
On 12/08/2013, at 7:44 PM, Jay Vyas wrote:
i like the install file idea. packaging always seems easier and memorizing
CLI magic seems like another feature which would lend itself more to forcing
devs to read documentation to get it working correctly. The deployment via
packaging is always easier to modify and learn on the fly
Yeah, it's appealing more to me as well, the more I think
about it. :)
Not sure what the structure of the accompanying meta-data
file (likely XML) would need to be.
Something like this might work, and also let the translator
be applied to several volumes (if needed), with options
set per volume:
Might also need a <filename> tag in there, but I'm more
inclined to not have it, just using a convention of:
* [filename].so/.py, matches [filename].xml
How's that sounding?
I agree with name matching.
I picture the definition looking more like:
<translator>
<name>features/marker</name>
<type>server</name>
<graph>
<after>features/index</after>
<!-- OR <before>debug/io-stats</before> -->
</graph>
<subvolumes>
<count>1</count>
<!-- could be an expansion of some macro, like ${replica} -->
</subvolumes>
<cli>
<target>volume</target>
<options>
<option>
<name>quota</name>
<type>boolean</type>
<default>off</default>
</option>
<option>
<name>xtime</name>
<type>boolean</type>
<default>off</default>
</option>
<option>
<name>timestamp-file</name>
<type>string</type>
<default>/var/lib/glusterd/vols/${vol}/marker.tstamp</default>
<!-- note the need for some macros again -->
<hidden/>
</option>
</options>
</cli>
</translator>
_______________________________________________
Gluster-devel mailing list
Gluster-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/gluster-devel