in windows host:
junction a d: (something like ln -s d: .\a)
in colinux guest:
drwxr-xr-x 1 xuefer users 0 Dec 16 12:16 a/
d-w------- 1 xuefer users 0 Dec 16 12:16 a/
btw, i'm using same set of kernel modules but different driver linux.sys/vmlinux/colinux-daemon.exe/colinux-ndis-net-daemon.exe
FYI, SYSTEM account have full access to both c:\a d:\
The attribs are forwarded from host to Linux in recend versions. The directory has SYSTEM and HIDDEN attribute set. I will look more, what this special file does.
If you have problems, you can disable this new feature with "noattrib" in the Linux mount options, see cofs.txt in your installation or http://colinux.svn.sourceforge.net/viewvc/colinux/branches/devel/doc/cofs
It works for me with coLinux devel-20081212 (autobuild).
Unless the date is some mystic in future.
C:\>junction.exe a d:
Junction v1.05 - Windows junction creator and reparse point viewer
Copyright (C) 2000-2007 Mark Russinovich
Systems Internals - http://www.sysinternals.com
Targetted at: D:\
On coLinux (Debian 4):
$ ls -lF /media/C/ | grep a/
drwxr-xr-x 1 hn user 0 Apr 22 2009 a/
$ mount | grep "/media/C"
cofs1 on /media/C type cofs (rw,noexec,nosuid,nodev,uid=1000,gid=1000)
I see, the new implementation has to many problems.
FILE_BASIC_INFORMATION (used to get file times and attributes) does not work on junction. Under userland NtFileInfo the times are all 0, but the FILE_BASIC_INFORMATION inside a FILE_ALL_INFORMATIONS works. This can check with the tool FileTest.exe from www.sysinternals. From a ntkernel ZwQueryInformationFile (used for cofs) gots wrong date code, and perhaps also wrong flags.
The other problems are by Windows opend files, for example C:\pagefile.sys. Such file got an error for 'stat' or 'ls' on cofs, because they can't open for reading attributes.
SVN r1145 have reverted now, and commited as SVN r1199.