I don't think your example would copy the file correctly, but I'm getting the same error when I run a similar test on our file system. It works on the local file system.<br><br>Trygve<br><br><div class="gmail_quote">
On Mon, Jun 29, 2009 at 4:59 PM, eagleeyes <span dir="ltr"><<a href="mailto:eagleeyes@126.com" target="_blank">eagleeyes@126.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="margin: 10px; font-size: 10pt; font-family: verdana;">
<div><font color="#000080" face="" size="2">Thanks ,the attachment is a java
nio with mmap , You could use it for testing </font></div>
<div><font color="#000080">You should mount GFS at directory
/alfresco ,and touch a file named file.txt with some
words , then in the /alfresco implement "javac FcTest.java " and "java
FcTest " ,if create outFile.txt which have the same words
with file.txt ,the test is success . if there is some error
like :</font></div>
<div>[root@iaas-1 alfresco]# java FcTest
<div>> java.io.IOException: No such device</div>
<div>> at sun.nio.ch.FileChannelImpl.map0(Native Method)</div>
<div>> at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:747)</div>
<div>> at FcTest.main(FcTest.java:18)</div>
<div>the test is fault </div></div>
<div><font color="#000080" face="Verdana" size="2"></font> </div>
<div><font color="#000080" face="Verdana" size="2"></font> </div>
<div><font color="#c0c0c0" face="Verdana" size="2">2009-06-29 </font></div><font color="#000080" face="Verdana" size="2">
<hr style="width: 100px;" align="left" color="#b5c4df" size="1">
</font>
<div><font color="#c0c0c0" face="Verdana" size="2"><span>eagleeyes</span>
</font></div>
<hr color="#b5c4df" size="1">
<div><font face="Verdana" size="2"><b>发件人:</b> Trygve Hardersen
</font></div>
<div><font face="Verdana" size="2"><b>发送时间:</b> 2009-06-29 19:36:54
</font></div>
<div><font face="Verdana" size="2"><b>收件人:</b> eagleeyes </font></div>
<div><font face="Verdana" size="2"><b>抄送:</b> Anand Babu </font></div>
<div><font face="Verdana" size="2"><b>主题:</b> Re: help friend :java nio
problem </font></div>
<div><font face="Verdana" size="2"></font> </div>
<div><font face="Verdana" size="2"><div>Hello<br><br>Can you send me a snippet of the NIO
code that you're using? We're using NIO, but probably not the mmap
function.<br><br>Trygve<br><br>
</div><div class="gmail_quote"><div>On Mon, Jun 29, 2009 at 8:47 AM, eagleeyes <span dir="ltr"><<a href="mailto:eagleeyes@126.com" target="_blank">eagleeyes@126.com</a>></span>
wrote:<br>
</div><div><div></div><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="margin: 10px; font-size: 10pt; font-family: verdana;">
<div><font face="Verdana" size="2">Dear friends :</font></div>
<div> You had said that you used java nio with gluster very
well ,Could you help me ?</div>
<div> My java nio used mmap model not <font color="#000080">position model , so nio couldn't creat files into
gluster directory . </font></div>
<div><font color="#000080"> What your successed configure ? I
couldn't find fuse mmap operation in Gluster source codes .</font></div>
<div><font face="Verdana" size="2"></font> </div>
<div align="left"><font color="#c0c0c0" face="Verdana" size="2">2009-06-29
</font></div><font face="Verdana" size="2">
<hr style="width: 122px; height: 2px;" align="left" size="2">
<div><font color="#c0c0c0" face="Verdana" size="2"><span>eagleeyes</span>
</font></div></font></div></blockquote></div></div></div><br></font></div></div>
</blockquote></div><br>