Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 List'" From: Larry Hall Subject: Re: find-utils: updatedb/locate scripts In-Reply-To: <410713BC.4080600@tlinx.org> References: <4106976A DOT 8060809 AT tlinx DOT org> <410712F6 DOT 6020008 AT tlinx DOT org> <410713BC DOT 4080600 AT tlinx DOT org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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/