delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/06/04/13:10:26

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <4846CD6F.40506@x-ray.at>
Date: Wed, 04 Jun 2008 19:14:23 +0200
From: Reini Urban <rurban AT x-ray DOT at>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8.1.13) Gecko/20080313 SeaMonkey/1.1.9
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: free NFS client for Cygwin and/or support for FUSE?
References: <000c01c6fd2a$05618a10$a501a8c0 AT CAM DOT ARTIMI DOT COM>
In-Reply-To: <000c01c6fd2a$05618a10$a501a8c0@CAM.ARTIMI.COM>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Continuing on that...

Dave Korn schrieb:
> On 31 October 2006 12:47, Brian Dessent wrote:
> 
>> Ben Wing wrote:
> 
>>> Also, has anyone considered building something like FUSE into Cygwin? ...
>>> The result would be Cygwin-specific, i.e. wouldn't work in non-Cygwin
>>> utilities, but that's OK; the benefit of having such a system would be
>>> so great that it would vastly outdo the trouble of not being able to use
>>> non-Cygwin utils.
>> No doubt that many have *considered* it, but nobody has done it (to my
>> knowledge at least.)
>>
>> If you do it right and make it a real filesystem driver, then you both
>> need the expertise and time to code and test a NT kernel module,
> 
>   Yes, of course.  Goes without saying really.
...
>>   And in order to get any patches
>> of this kind accepted by Cygwin maintainers you'd need to show clear
>> evidence that the presence of all this extra code did not affect
>> performance of the standard filesystem access and path translation.
>> That part of the code tends to be somewhat of a sore spot, due to the
>> fact that it is already complex and easy to break, and a critical path
>> performance-wise.
> 
>   I think you worry too much.  The kernel-mode driver would be nicely
> isolated, and we'd just need to add a new fhandler type to interact with it;
> the extra code wouldn't ever be called if not used.

As I understand the issue, we only need to add another fhandler_fuse.cc 
to support /dev/fuse and the rest almost compiles out of the box.

sshfs builds fine and for fuse just the kernel driver (=> 
fhandler_fuse.cc) and our sys/mount.h headers are quirky.

Rationale: I really want sshfs or shfs or such in user-space without any 
ddk .sys involved. A simple ext3 or reiserfs driver can also be built 
upon that.

First I though of dynamic /lib/mount-<filesystem>.so loading when an 
unknown non-windows device is detected in /etc/fstab.
For other windows fs-devices such as NFS or Samba the specialities in 
fhandler_disk_file.cc are probably enough, but using real mount options 
and special support seems to a next step.

But with fuse support it would be even easier.
Delegate all non-windows mount types to fhandler_fuse and simply use the 
already available fuse filesystems.
No kernel drivers need at all.
-- 
Reini Urban
http://phpwiki.org/  http://murbreak.at/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019