[Mono-bugs] [Bug 548148] Add option for MONO_IOMAP for run/debug remotely

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Oct 26 14:59:30 EDT 2009


User martin at novell.com added comment

--- Comment #12 from Martin Baulig <martin at novell.com>  2009-10-26 12:59:29 MDT ---
/work/mordor is a cifs mounted directory.

Compile this little C program:

#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>

main (int argc, const char *argv[])
    struct stat stat_buf;
    int ret;

    ret = stat ("C:\\work\\mordor\\Martin\\A.cs", &stat_buf);
    printf ("stat() returned: %d - %d (%s)\n", ret, errno, strerror (errno));

and then:

martin at isengard:/work/boston/debugger> /work/boston/debugger/test/g 
stat() returned: -1 - 2 (No such file or directory)
martin at isengard:/work/boston/debugger> cd /work/mordor/
martin at isengard:/work/mordor> /work/boston/debugger/test/g 
stat() returned: -1 - 22 (Invalid argument)

Surprisingly, stat() is returning a different 'errno' depending on the current
directory !

And I think that's what makes MONO_IOMAP fail on my machine when I'm inside
that mounted filesystem.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list