[Gluster-devel] Translator test harness

Anand Avati avati at gluster.org
Tue Nov 19 20:31:49 UTC 2013

On Tue, Nov 19, 2013 at 5:35 AM, Jeff Darcy <jdarcy at redhat.com> wrote:

> On 11/18/2013 11:32 PM, Anand Avati wrote:
>> It might be interesting to build a test harness using libgfapi
>> (specially the handle based APIs) to load a graph with the xlator to be
>> test (on top of posix) and using gfapi calls to bombard fops and
>> notifications and callbacks from multiple threads spawned by the testing
>> app/framework.
>> Along with a fault injection, we also need a "pedantic verifier"
>> translator (loaded both on top and blow the testing xlator) which
>> inspects all params of all calls and callbacks coming out of the xlator
>> to "conform" by the rules (e.g lookup_cbk op_ret is either -1 or 0 ONLY,
>> op_errno is one of the known standard values ONLY, struct stat does not
>> have mtime/ctime/atime from too far ahead into the future, mkdir_cbk's
>> struct stat has ia_type to be IA_IFDIR ONLY etc.)
> Sounds like we have another volunteer.  ;)
Certainly. I have a half-done "pedantic" translator (few years ago) lying
around somewhere and trying to dig it out..

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-devel/attachments/20131119/1e44d7f9/attachment-0001.html>

More information about the Gluster-devel mailing list