delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/27/22:53:23

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.1.0.6.0.20040727224232.033579e0@pop.prospeed.net>
X-Sender:
Date: Tue, 27 Jul 2004 22:45:13 -0400
To: linda w <cygwin AT tlinx DOT org>, "'Cygwin List'" <cygwin AT cygwin DOT com>
From: Larry Hall <lh-no-personal-replies-please AT cygwin DOT com>
Subject: Re: find-utils: updatedb/locate scripts
In-Reply-To: <410713BC.4080600@tlinx.org>
References: <4106976A DOT 8060809 AT tlinx DOT org> <Pine DOT GSO DOT 4 DOT 58 DOT 0407271402360 DOT 22400 AT slinky DOT cs DOT nyu DOT edu> <410712F6 DOT 6020008 AT tlinx DOT org> <410713BC DOT 4080600 AT tlinx DOT org>
Mime-Version: 1.0

At 10:47 PM 7/27/2004, you wrote:

>Igor Pechtchanski wrote:
>
>>Igor Pechtchanski wrote:
>>
>> Linda,
>>
>>On Tue, 27 Jul 2004, linda w wrote:
>>
>>
>> 
>>
>>>I generally have updatedb run every night on my win system.
>>>
>>>But lately it has been having trouble completing and am looking at
>>>the whole process and am noticing some oddities.
>>>
>>>in looking at the find command I see it tries not to look at remotely
>>>mounted drives unless they are in the NETWORK_PATHS var -- but on cygwin
>>>this isn't working as the updatedb-script authors would have wanted.
>>>
>>>looking at the file-system type of a file using "find":
>>>
>>>find / -type d -maxdepth 2 -printf "%p(%F)\n"
>>>
>>>I see some oddities:
>>>
>>>1) /proc seems to return a "fstype" of "unknown"
>>>and
>>>2) remotely mounted file systems and CDROMS return an fstype of "user", vs.
>>>the local IDE hard drive which returns fstype=system.
>>>
>>>-----
>>>Now this could be coded around, by various prune path statements or by
>>>fixing updatedb to know that under cygwin, "user" is a remotefs and
>>>"system" is local, but that seems a bit kludgey.
>>>  
>>
>>This is wrong. You can have local filesystems with type "user". "User"
>>simply means a user mount (and "system" means a system one).
>
>
>I did say it was kludgey, but it might not be a bad idea for updatedb
>to only index disks that were system-mounted  ("permanent"?),  disks
>anyway and use the NETWORK feature for any smb mounts one wants to
>index...
>


It's more than kludgey.  *Any* cygwin mount can be a 'system' mount or
a 'user' mount.  So the mounts that are now reporting 'user' for you 
could be changed to return 'system' by simply remounting them as 
'system' mounts and vice versa.  See 'man mount' for more details.



--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


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