<html><body><div style="font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000"><div>Hi,<br></div><div><br></div><div>This is a strange behavior, i tried reproducing it with a simple batch scripts that checks if the file exists, i didn't see any issue.<br></div><div>Could you please provide the following data:<br></div><div>$ testparm -v | grep case<br>$ testparm -v | grep unix<br></div><div><br></div><div>Also could you try disabling metadata caching for glusterFS volume:</div><div>$ gluster volume set &lt;volname&gt; stat-prefetch off</div><div><br>Regards,<br></div><div>Poornima<br></div><div><br></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Jon" &lt;sphinx_man_60@yahoo.com&gt;<br><b>To: </b>gluster-users@gluster.org<br><b>Sent: </b>Friday, October 31, 2014 8:45:43 PM<br><b>Subject: </b>[Gluster-users] VFS plug-in for Gluster breaks case sensitivity.<br><div><br></div><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">Hello, I first posted this question to the IRC but it was suggested I also post here for better visibility. I am currently having a bit of trouble with Gluster, Samba, and the VFS plug-in between them. I am also posting to the Samba mailing list.</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style=""><br class="" style=""></div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">The behavior I am seeing is that by using the samba-vfs-gluster plug-in the case sensitivity setting for Samba breaks in a subtle but noticeable way. Windows clients are unable to do a “does file exist” check when one of the directory names in the path is not the correct case (/RELEASE_1234/ vs /release_1234/). An old Delphi client program first exposed this bug but I’ve been able to reproduce it in Java. The confusing part to me is Windows explorer is able to navigate straight to the file even if the incorrect case is used and once Windows has opened a connection to that directory subsequent file look-ups succeed even when using the incorrect case. I suspect there is Windows or Samba caching magic happening there, but that is beyond me. Mounting the Gluster volume to one of the nodes locally then sharing that through Samba fixes the problem but I’ve found this arrangement to have terrible performance.</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style=""><br class="" style=""></div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">Below that are Samba log snippets I grabbed that I believe highlight the issue. In a correctly working setup the incoming RELEASE is converted to lowercase at the “unix_convert” point. In the VFS setup, it remains all caps.</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style=""><br class="" style=""></div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">This behavior has been reproduced on two seperate systems. One is CentOS7, Samba 4.1.1-37, samba-vfs-glusterfs.x86_64 4.1.1-37, Gluster version 3.5.2. Other is CentOS 6.5, Samba 3.6, samba-glusterfs.x86_64 &nbsp;3.6.23-12, Gluster version 3.5.2.</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">&nbsp;</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">testHost - Samba mounting gluster volume which is mounted via FUSE</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">default case sensitivity - works as expected</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">[2014/10/30 11:46:50.302252, &nbsp;3] smbd/process.c:1467(switch_message)</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">&nbsp; switch message SMBtrans2 (pid 23296) conn 0x7ff2f5310a40</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">[2014/10/30 11:46:50.302357, &nbsp;4] smbd/uid.c:351(change_to_user)</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">&nbsp; Skipping user change - already user</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">[2014/10/30 11:46:50.302461, &nbsp;3] smbd/trans2.c:5111(call_trans2qfilepathinfo)</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">&nbsp; call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1034</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">[2014/10/30 11:46:50.302567, &nbsp;5] smbd/filename.c:257(unix_convert)</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">&nbsp; unix_convert called on file "RELEASE_2268/150373E7A0148258/150817BC917FFB00.zon"</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">[2014/10/30 11:46:50.302747, &nbsp;3] smbd/vfs.c:905(check_reduced_name)</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">&nbsp; check_reduced_name [release_2268/150373E7A0148258/150817BC917FFB00.zon] [/mnt/gv-00]</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">[2014/10/30 11:46:50.302883, &nbsp;3] smbd/vfs.c:1039(check_reduced_name)</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">&nbsp; check_reduced_name: release_2268/150373E7A0148258/150817BC917FFB00.zon reduced to /mnt/gv-00/release_2268/150373E7A0148258/150817BC917FFB00.zon</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">[2014/10/30 11:46:50.303004, &nbsp;3] smbd/trans2.c:5255(call_trans2qfilepathinfo)</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">&nbsp; call_trans2qfilepathinfo release_2268/150373E7A0148258/150817BC917FFB00.zon (fnum = -1) level=1034 call=5 total_data=0</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">[2014/10/30 11:46:50.303112, &nbsp;5] smbd/trans2.c:4223(smbd_do_qfilepathinfo)</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">&nbsp; smbd_do_qfilepathinfo: release_2268/150373E7A0148258/150817BC917FFB00.zon (fnum = -1) level=1034 max_data=56</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style=""><br class="" style=""></div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">testHost - Samba using vfs-gluster</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">default case sensitivity - behaving as if case sensitivity is enabled</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">[2014/10/30 11:52:13.488127, &nbsp;3] smbd/process.c:1414(switch_message)</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">&nbsp; switch message SMBtrans2 (pid 8411) conn 0x7f6ecee9a740</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">[2014/10/30 11:52:13.488186, &nbsp;4] smbd/uid.c:351(change_to_user)</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">&nbsp; Skipping user change - already user</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">[2014/10/30 11:52:13.488246, &nbsp;3] smbd/trans2.c:5240(call_trans2qfilepathinfo)</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">&nbsp; call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">[2014/10/30 11:52:13.488310, &nbsp;5] smbd/filename.c:257(unix_convert)</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">&nbsp; unix_convert called on file "RELEASE_2268/150373E7A0148258/150817BC917FFB00.zon"</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">[2014/10/30 11:52:13.488371, &nbsp;5] smbd/filename.c:416(unix_convert)</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">&nbsp; unix_convert begin: name = RELEASE_2268/150373E7A0148258/150817BC917FFB00.zon, dirpath = , start = RELEASE_2268/150373E7A0148258/150817BC917FFB00.zon</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">[2014/10/30 11:52:13.493304, &nbsp;5] smbd/filename.c:682(unix_convert)</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">&nbsp; Intermediate not found RELEASE_2268</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">[2014/10/30 11:52:13.493424, &nbsp;3] smbd/error.c:81(error_packet_set)</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">&nbsp; error packet at smbd/trans2.c(5276) cmd=50 (SMBtrans2) NT_STATUS_UNSUCCESSFUL</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">&nbsp;&nbsp;</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">case sensitivity = no - still not finding the file</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">[2014/10/30 11:53:11.096059, &nbsp;5] auth/token_util.c:527(debug_unix_user_token)</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">&nbsp; UNIX token of user 270</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">&nbsp; Primary group is 501 and contains 0 supplementary groups</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">[2014/10/30 11:53:11.096376, &nbsp;5] smbd/uid.c:317(change_to_user_internal)</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">&nbsp; Impersonated user: uid=(0,270), gid=(0,501)</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">[2014/10/30 11:53:11.096458, &nbsp;3] smbd/trans2.c:5240(call_trans2qfilepathinfo)</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">&nbsp; call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">[2014/10/30 11:53:11.096607, &nbsp;5] smbd/filename.c:257(unix_convert)</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">&nbsp; unix_convert called on file "RELEASE_2268/150373E7A0148258/150817BC917FFB00.zon"</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">[2014/10/30 11:53:11.096703, &nbsp;5] smbd/filename.c:416(unix_convert)</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">&nbsp; unix_convert begin: name = RELEASE_2268/150373E7A0148258/150817BC917FFB00.zon, dirpath = , start = RELEASE_2268/150373E7A0148258/150817BC917FFB00.zon</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">[2014/10/30 11:53:11.101561, &nbsp;5] smbd/filename.c:682(unix_convert)</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">&nbsp; Intermediate not found RELEASE_2268</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">[2014/10/30 11:53:11.101678, &nbsp;3] smbd/error.c:81(error_packet_set)</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">&nbsp; error packet at smbd/trans2.c(5276) cmd=50 (SMBtrans2) NT_STATUS_UNSUCCESSFUL</div><div id="yui_3_16_0_1_1414762346505_6380" class="" style="">[2014/10/30 11:53:11.101743, &nbsp;5] lib/util.c:332(show_msg)</div><div class="" style="" id="yui_3_16_0_1_1414762346505_6540"><br class="" style=""></div><div id="yui_3_16_0_1_1414762346505_6380" class="" style=""><br class="" style=""></div></div><br>_______________________________________________<br>Gluster-users mailing list<br>Gluster-users@gluster.org<br>http://supercolony.gluster.org/mailman/listinfo/gluster-users</div><div><br></div></div></body></html>