<div dir="ltr"><div><div><div><div><div><div><div><div><div>Dear Gluster Devels,<br><br></div>at the moment I do some Xlator stuff and I want to know if there is a way to simulate the existing of a file to the client. It should be a kind of &quot;virtual file&quot;. Here are more details.<br><br></div>1. Client lookup for a file e.g. &quot;apple.test&quot;. This file does not exist in the backend <br></div>$ ls -l apple.test</div><div>ls: cannot access apple.test: No such file or directory<br></div><div><br></div><div>Normally the system will not find that file<br></div><div><br></div>2. In the backend I have a real file calledĀ  e.g. &quot;apple&quot;. Now there is a Xlator which manipulates the lookup request and is looking for the file &quot;apple&quot; instead of &quot;apple.test&quot;. Gluster finds the file &quot;apple&quot; and the client will get a message from gluster that there is a file called &quot;apple.test&quot; with the attributes of the file &quot;apple&quot; (maybe we can manipulate that attributes too).<br></div><div><br></div><div>$ ls -l apple.test<br>-rw-r--r-- 1 davids davids 0 JanĀ  5 15:42 apple.test<br></div><div><br></div>My first idea is, to have a special lookup and lookup_cbk in some Xlator in the server stack. Or it is better to have this Xlator in the Client Stack?<br></div>The lookup function has a parameter called &quot;loc_t *loc&quot;. In a first test I tried to manipulate loc-&gt;name and loc-path. If I manipulate loc-&gt;path I got an error and my volume crashed.<br><br></div>Any hints?<br><br></div>Regards<br></div>David Spisla <br></div>