<meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">Hi Anush,<div><br></div><div>The conf. files are in the follow. And I have tried to modify the method fuse_statfs in 3.2.4 like this: </div>
<div> 2297 | ret = fuse_loc_fill (&state->loc, state, finh->nodeid, 0, NULL); </div><div>Because I also test 3.3beta2, and it sets the ino as the finh>nodeid instead of 1.</div><div><br></div><div>Now, it is getting better, when I create, remove, modify folders, doc and excel files, the folder can refresh itself automatically. But still sometimes failed to open files by MS-Office. </div>
<div><br></div><div>Here is the samba conf. file:</div><div><div>debian04:~# cat /etc/samba/smb.conf</div><div><br></div><div>[aaa]</div><div> comment = Public Directory</div><div> path = /home/guest/Public</div>
<div> browseable = yes</div><div><span style="white-space: pre-wrap; "> </span>valid users = guest</div><div> writable = yes</div><div> write list = guest,@guest</div><div> admin users = guest,@guest</div>
<div> guest ok = yes</div><div> create mask = 0777</div><div> force create mask = 0777</div><div><div>////////////////////////////////////////////////////////</div></div><div><br></div><div>And server conf. files</div>
<div>debian04:/usr/local/workspace/server01# cat server.vol </div><div>volume posix1</div><div> type storage/posix</div><div> option directory /usr/local/workspace/server01_share/</div><div>end-volume</div><div><br></div>
<div>volume locks1</div><div> type features/locks</div><div> subvolumes posix1</div><div>end-volume</div><div><br></div><div>volume brick1</div><div> type performance/io-threads</div><div> option thread-count 8</div>
<div> subvolumes locks1</div><div>end-volume</div><div><br></div><div>volume server-tcp</div><div> type protocol/server</div><div> option transport-type tcp</div><div> option auth.addr.brick1.allow *</div><div>
option transport.socket.listen-port 10004</div><div> option transport.socket.nodelay on</div><div> subvolumes brick1</div><div>end-volume</div><div>----------------------------------------</div><div><div>debian04:/usr/local/workspace# cat server02/server.vol </div>
<div>volume posix1</div><div> type storage/posix</div><div> option directory /usr/local/workspace/server02_share/</div><div>end-volume</div><div><br></div><div>volume locks1</div><div> type features/locks</div><div> subvolumes posix1</div>
<div>end-volume</div><div><br></div><div>volume brick1</div><div> type performance/io-threads</div><div> option thread-count 8</div><div> subvolumes locks1</div><div>end-volume</div><div><br></div><div>volume server-tcp</div>
<div> type protocol/server</div><div> option transport-type tcp</div><div> option auth.addr.brick1.allow *</div><div> option transport.socket.listen-port 10005</div><div> option transport.socket.nodelay on</div>
<div> subvolumes brick1</div><div>end-volume</div></div><div>///////////////////////////////////////////////////////////////</div><div><br></div><div>The client conf files:</div><div><div>debian04:/usr/local/workspace# cat client/client.vol</div>
<div>volume node-1-10004</div><div> type protocol/client</div><div> option transport-type tcp</div><div> option remote-host 127.0.0.1</div><div> option transport.socket.nodelay on</div><div> option remote-port 10004</div>
<div> option remote-subvolume brick1</div><div>end-volume</div><div><br></div><div>volume node-1-10005</div><div> type protocol/client</div><div> option transport-type tcp</div><div> option remote-host 127.0.0.1</div>
<div> option transport.socket.nodelay on</div><div> option remote-port 10005</div><div> option remote-subvolume brick1</div><div>end-volume</div><div><br></div><div>volume distribute</div><div> type cluster/dht</div>
<div> option layout-version 1</div><div> option min-free-disk 5%</div><div> option lookup-unhashed on</div><div> subvolumes node-1-10005 node-1-10004</div><div>end-volume</div></div><div>//////////////////////////////////////////////</div>
<div><div><br></div><div>debian04:/usr/local/workspace# uname -a</div><div>Linux debian04 2.6.26-1-amd64 #1 SMP Fri Mar 13 17:46:45 UTC 2009 x86_64 GNU/Linux</div></div><div><div>debian04:/usr/local/workspace# smbd --version</div>
<div>Version 3.2.5</div></div><div><br></div><div>I mount it on WindowsXP, and operate by MS-office 2007.</div><div><br></div><div>////////////////////////////////////////////////</div><div><br></div><div>Thank you</div><div>
<br></div><div>Dan</div></div></span><br><div class="gmail_quote">On Thu, Nov 3, 2011 at 5:10 PM, Anush Shetty <span dir="ltr"><<a href="mailto:anush@gluster.com">anush@gluster.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Hi Daniel,<br>
<br>
Can you please paste your samba conf file and "gluster volume info" output here.
<br>
<br>
-<br>
Anush<br>
<div style="font-family:Times New Roman;color:rgb(0, 0, 0);font-size:16px">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma" size="2"><b>From:</b> gluster-devel-bounces+anush=<a href="mailto:zresearch.com@nongnu.org" target="_blank">zresearch.com@nongnu.org</a> [gluster-devel-bounces+anush=<a href="mailto:zresearch.com@nongnu.org" target="_blank">zresearch.com@nongnu.org</a>] on behalf of Daniel Wong [<a href="mailto:wangjinxin.gluster@gmail.com" target="_blank">wangjinxin.gluster@gmail.com</a>]<br>
<b>Sent:</b> 02 November 2011 17:49:00<br>
<b>To:</b> <a href="mailto:gluster-devel@nongnu.org" target="_blank">gluster-devel@nongnu.org</a><br>
<b>Subject:</b> [Gluster-devel] Doesn't work well with SAMBA<br>
</font><br>
</div><div><div></div><div class="h5">
<div></div>
<div>Hello,
<div><br>
</div>
<div>I am using GlusterFS 3.2.4. When it is shared by SAMBA, on the windows client, it doesn't works well, the folder has to be refreshed manually for adding, renaming and removing, sometimes the MS office doc can't be opened. </div>
<div><br>
</div>
<div>Could you help me with this?</div>
<div><br>
</div>
<div>Thanks a lot</div>
<div><br>
</div>
<div>Daniel</div>
</div>
</div></div></div>
</div>
</div>
</blockquote></div><br>