home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 May / CMCD0505.ISO / Software / Complet / Colinux / coLinux-0.6.2.exe / cofs.txt next >
Text File  |  2005-02-05  |  3KB  |  89 lines

  1. The cofs driver in the coLinux kernel is based on work by the people 
  2. responsible for the fuse-1.3 library and kernel code, namely Miklos 
  3. Szeredi <miklos@szeredi.hu>.
  4.  
  5. cofs is similar to UML's hostfs. It is a binding between the host's 
  6. VFS and Linux's VFS layers. By using cofs it is possible to mount 
  7. host OS directories inside Linux.
  8.  
  9. * Flat mode (default)
  10.  
  11.   Mounting in flat mode (the default) under Windows, means that the 
  12.   expected behavior of the mounted file system is similar to that of 
  13.   vfar or samba, which means there is no support for the regular 
  14.   UNIX meta data and all the UNIX attributes (mode, uid, gid) are
  15.   virtually the same for all files and directories. Creation of special 
  16.   files like symlinks, device nodes, and pipes are not supported.
  17.  
  18. * UNIX meta data mode
  19.  
  20.   Future versions of cofs support will introduce the UNIX meta data
  21.   mode, which is similiar to hostfs. It will allow to have a true
  22.   UNIX file system on top of a Windows (or Linux) file system by 
  23.   storing the VM's UNIX meta data as regular inaccessible files. 
  24.   Theoretically, it will allow to boot a full Linux system without 
  25.   a root file system image.
  26.  
  27. * Ports
  28.  
  29.   For the host OS side, cofs is only supported on the Windows port 
  30.   at the time this is written (October 23, 2004).
  31.  
  32.   The planned Linux port will be designed to behave more like UML's
  33.   hostfs in flat mode (with support for UNIX attributes), and UML's
  34.   humfs in UNIX meta data mode.
  35.  
  36. * Configuring cofs (using the colinux-daemon command line interface):
  37.  
  38.     cofsXX=host-pathname
  39.  
  40.   XX is a number between 0 and 31.
  41.  
  42. * mount syntax:
  43.  
  44.     mount -t cofs (cofs)XX(:path) (-o options) /mnt/point
  45.      
  46.   'cofs' as a prefix to the device name is optional and its purpose
  47.   it clarity. 
  48.  
  49.   The optional ':path' suffix can specify an inner path to mount 
  50.   instead of the mapped root.
  51.  
  52.   'options' are parallel to smbfs:
  53.  
  54.     gid=        Set the default group.
  55.     uid=        Set the default user.
  56.     dmask=      Set the default directory permission.
  57.     fmask=      Set the default regular file permission.
  58.  
  59. * Examples:
  60.     
  61.   Using the following configuration:
  62.   
  63.     colinux-daemon kernel=vmlinux hda1=root_fs cofs0=c:\ 
  64.  
  65.       This map cofs0 to c:\.
  66.  
  67.     mount -t cofs 0 /mnt/windows
  68.  
  69.       Mount c:\ as /mnt/windows.
  70.  
  71.     mount -t cofs cofs0 -o uid=dax,gid=dax /mnt/windows
  72.  
  73.       Mount c:\ as /mnt/windows and give dax full access to all the
  74.       files and directories.
  75.  
  76.     mount -t cofs cofs0:Share -o uid=dax,gid=dax,dmask=0700,fmask=0700 /mnt/windows
  77.  
  78.       Mount c:\Share as /mnt/windows and give dax exclusive full 
  79.       access to all the files and directories.
  80.  
  81.     mount -t cofs cofs0:Share -o uid=dax,gid=dax,dmask=0700,fmask=0700 /mnt/windows
  82.  
  83.       Mount c:\Share as /mnt/windows and give dax exclusive full 
  84.       access to all the files and directories.
  85.  
  86.     An example fstab entry:
  87.  
  88.       cofs0:Share      /mnt/windows            cofs    defaults          0 0
  89.