This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: ftell() fails on files in shared folders
On Mar 18 20:54, Yuri Gribov wrote:
> Corinna,
Please, don't http://cygwin.com/acronyms/#TOFU
Thanks.
> > Corinna,
> >
> > Thanks for your answer!
> >
> >> Wrong style.
> >
> > Yeah, I know but it worked this time and it's so handy to just use
> > good ol' DOS paths...
> >
> >> Â$ ./a ./test.bin
> >> Âsuccess
> >> Â$ ./a //this-machine/c\$/cygwin/home/corinna/test/bin
> >> Âsuccess
> >> Â$ ./a //other-machine/c\$/cygwin/home/corinna/test/bin
> >> Âsuccess
> >
> > Note that you used "test/bin" instead of test.bin in last two examples
No, that was a typo. I used test.bin.
> > but this shouldn't make any difference provided that you have test
> > folder and no test/bin folder in your $HOME.
> >
> > Interesing, I just did exactly same and it failed:
> > Âgribov.y@s-cw-head ~/build/upc/opt
> > Â$ ./a.exe //s-cw-head/c\$/test.bin  # <- same node
> > Âsuccess
> >
> > Âgribov.y@s-cw-head ~/build/upc/opt
> > Â$ ./a.exe //s-cw-node01/c\$/test.bin  # <- different node
> > Âftell(p) == sizeof(data) failed at io.c:29
>
> Is your $HOME shared across all your nodes? Can you try running on c$/test.bin?
No. In my examples ./test.bin and
//this-machine/c\$/cygwin/home/corinna/test.bin refer to the same file,
//other-machine/c\$/cygwin/home/corinna/test.bin is a file on another
machine.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple