delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/31/15:21:02

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: free NFS client for Cygwin and/or support for FUSE?
Date: Tue, 31 Oct 2006 20:20:34 -0000
Message-ID: <000c01c6fd2a$05618a10$a501a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <454745D0.DB85B786@dessent.net>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

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 you
> have to deal with the posix-to-Windows path+permissions+ownership
> translation headaches (i.e. the polar opposite of what cygwin1.dll deals
> with now) since it will be visible to all Windows apps.  Both of these
> put it vastly outside the scope of the Cygwin project, which is just a
> regular user-mode library.

  No, neither of these do ("put it vastly..."), AFAICS.  ioperm already
includes a kernel-mode driver.  As for the posix->windows translation, I don't
see how you have to do any such thing at all (nor how posix->windows is the
'opposite' to what cygwin does...); surely you simply make the thing look just
like a windows filesystem to cygwin, and then let the cygwin dll provide the
posix API support.  Pretty much the same as how things currently work with FAT
and NTFS access under cygwin...

> If you do it entirely in Cygwin then as you said it's only available to
> Cygwin apps, which sounds fine at first but I think you will find that
> for many people this is a dealbreaker.

  Well, all posix features are only available to cygwin apps.  I don't
understand what kind of people this could be a "dealbreaker" to:  non-cygwin
users perhaps?  This is no more of an objection than saying that grep's
dependency on cygwin might be a dealbreaker to some people....

>   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.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
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