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. Trygve On Mon, Jun 29, 2009 at 4:59 PM, eagleeyes <eagleeyes at 126.com> wrote: > Thanks ,the attachment is a java nio with mmap , You could use it for > testing > 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 : > [root at iaas-1 alfresco]# java FcTest > java.io.IOException: No such device > > at sun.nio.ch.FileChannelImpl.map0(Native Method) > > at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:747) > > at FcTest.main(FcTest.java:18) > the test is fault > > > 2009-06-29 > ------------------------------ > eagleeyes > ------------------------------ > *????* Trygve Hardersen > *?????* 2009-06-29 19:36:54 > *????* eagleeyes > *???* Anand Babu > *???* Re: help friend :java nio problem > Hello > > Can you send me a snippet of the NIO code that you're using? We're using > NIO, but probably not the mmap function. > > Trygve > > On Mon, Jun 29, 2009 at 8:47 AM, eagleeyes <eagleeyes at 126.com> wrote: > >> Dear friends : >> You had said that you used java nio with gluster very well ,Could you >> help me ? >> My java nio used mmap model not position model , so nio couldn't >> creat files into gluster directory . >> What your successed configure ? I couldn't find fuse mmap operation >> in Gluster source codes . >> >> 2009-06-29 >> ------------------------------ >> eagleeyes >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://zresearch.com/pipermail/gluster-users/attachments/20090630/f39d74ff/attachment.htm>