#144 autobuild 20081212 junction not well supported by cofs

v0.8.x (devel)
closed-fixed
Henry N.
5
2009-01-04
2008-12-16
Xuefer
No

http://www.henrynestler.com/colinux/autobuild/devel-20081212/
http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx

in windows host:
c:
cd \ mkdir a
junction a d: (something like ln -s d: .\a)
in colinux guest:
ls /c/

in 0.8.0-20080924:
drwxr-xr-x 1 xuefer users 0 Dec 16 12:16 a/
in 0.8.0-20081212:
d-w------- 1 xuefer users 0 Dec 16 12:16 a/

Discussion

  • Xuefer
    Xuefer
    2008-12-16

    • labels: --> Daemons (Windows)
    • milestone: --> v0.8.x (devel)
    • assigned_to: nobody --> henryn
     
  • Xuefer
    Xuefer
    2008-12-16

    btw, i'm using same set of kernel modules but different driver linux.sys/vmlinux/colinux-daemon.exe/colinux-ndis-net-daemon.exe

     
  • Xuefer
    Xuefer
    2008-12-16

    FYI, SYSTEM account have full access to both c:\a d:\

     
  • Xuefer
    Xuefer
    2008-12-16

    • summary: autobuild 20081212 junction not supported by cofs --> autobuild 20081212 junction not well supported by cofs
     
  • Henry N.
    Henry N.
    2008-12-17

    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

    Thanks.

     
  • Henry N.
    Henry N.
    2009-01-03

    It works for me with coLinux devel-20081212 (autobuild).
    Unless the date is some mystic in future.

    C:\>mkdir a
    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

    Created: C:\a
    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)

     
  • Henry N.
    Henry N.
    2009-01-04

    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.

     
  • Henry N.
    Henry N.
    2009-01-04

    • status: open --> closed-fixed