delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/14/14:31:59

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: Shankar Unni <shankar AT cotagesoft DOT com>
Subject: Reading mount point entries via /proc/registry
Date: Mon, 14 Jul 2003 11:29:22 -0700
Lines: 20
Message-ID: <beusoo$rk9$1@main.gmane.org>
Mime-Version: 1.0
X-Complaints-To: usenet AT main DOT gmane DOT org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (Compact)
X-Accept-Language: en-us, en

Weird issue. Just documenting it here - it's more of a curiosity.

You can't look up mount point registry entries via the /proc/registry
interface, because the mount point names (which become the directory
entries) have "/"s in them.

$ ls -l /proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Cygnus\
Solutions/Cygwin/mounts\ v2/
total 0
drwxrwx---+   8 shankar  Users           0 Apr 25 13:31 /
drwxrwx---+   2 shankar  Users           0 Jul 11 15:11 /usr/bin
drwxrwx---+  21 shankar  Users           0 Jul 11 15:11 /usr/lib
-r--r-----    1 shankar  Users           4 Jul 11 15:11 cygdrive flags
-r--r-----    1 shankar  Users          10 Jul 11 15:11 cygdrive prefix

Oh, but how do I look inside that "/" entry :-/?

(How *would* something like this be done, anyway? Would it make sense to
encode the special characters in the key and value names somehow?)



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