|
From: | Lluís Pàmies i Juárez |
Subject: | Re: [Gluster-devel] empty xlator |
Date: | Thu, 6 Feb 2014 00:33:15 -0800 |
Hi Anand,
Yes I tried both things you mention and they work just fine.
Thanks
The nop xlator by itself seems OK. Have you tried the stripe config with the nop xlator on top? or even without the nop xlator?AvatiOn Wed, Feb 5, 2014 at 3:26 PM, Lluís Pàmies i Juárez <address@hidden> wrote: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] |