This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: find-utils: updatedb/locate scripts


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]