|
From: | Anand Avati |
Subject: | Re: [Gluster-devel] empty xlator |
Date: | Wed, 5 Feb 2014 21:29:01 -0800 |
Hello,As a proof of concept I'm trying to write a xlator that does nothing, I call it "nop". The code for "nop.c" is simply:#include "config.h"#include "call-stub.h"struct xlator_fops fops = {};struct xlator_cbks cbks = {};struct xlator_dumpops dumpops = {};struct volume_options options[] = {{.key={NULL}},};int32_t init (xlator_t *this){return 0;}int fini (xlator_t *this){return 0;}And I compile it with:$ gcc -fPIC -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DGF_LINUX_HOST_OS -shared -nostartfiles -lglusterfs -lpthread -I${GFS} -I${GFS}/libglusterfs/src -I${GFS}/contrib/uuid nop.c -o nop.soThen, if I try a test.vol file like that:volume test-posixtype storage/posixoption directory /home/llpamies/Projects/gluster/test-split/node0-dataend-volumevolume test-noptype features/nopsubvolumes test-posixend-volumevolume test-cachetype performance/io-cachesubvolumes test-nopend-volumeand mount it with:$ glusterfs --debug -f test.vol /mount/pointIt seems to work fine, doing nothing. However, when used together with the stripe xlator as follows:volume test-posix0type storage/posixoption directory /home/llpamies/Projects/gluster/test-split/node0-dataend-volumevolume test-posix1type storage/posixoption directory /home/llpamies/Projects/gluster/test-split/node1-dataend-volumevolume test-nop0type features/nopsubvolumes test-posix0end-volumevolume test-nop1type features/nopsubvolumes test-posix1end-volumevolume test-stripetype cluster/stripesubvolumes test-nop0 test-nop1end-volumeGlusterfs hangs during the first fuse lookup for ".Trash", and /mount/point looks unmounted with ???? permissions etc.Does it look like some bug in the stripe xlator or is there something fundamentally wrong with the nop xlator?Thank you,--
Lluís
_______________________________________________
Gluster-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/gluster-devel
[Prev in Thread] | Current Thread | [Next in Thread] |