home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!cs.utexas.edu!usc!sdd.hp.com!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!deimos.cis.ksu.edu!mccall!mccall!tp
- From: tp@mccall.com (Terry Poot)
- Newsgroups: vmsnet.vms-posix
- Subject: Re: Device names in Posix
- Message-ID: <1992Aug12.125615@mccall.com>
- Date: 12 Aug 92 18:56:15 GMT
- References: <1992Aug7.123949.802@galaxy.gov.bc.ca> <1992Aug7.205104.24377@src.honeywell.com> <1992Aug7.163152.804@galaxy.gov.bc.ca>
- Reply-To: tp@mccall.com (Terry Poot)
- Organization: The McCall Pattern Co., Manhattan, KS, USA
- Lines: 62
- Nntp-Posting-Host: mis1
- Nntp-Posting-User: tp
-
-
- In article <1992Aug7.163152.804@galaxy.gov.bc.ca>, ewilts@galaxy.gov.bc.ca (Ed
- Wilts) writes:
- >UCX BIND DISK2 "/disk2"
- >UCX BIND BCSC$DISK2 "/bcsc$disk2"
-
- I'm not sure which of 2 possible questions you are asking, so:
-
- I don't use UCX BIND, I use POSIX 'mount'. It works fine for me using a logical
- name for the device name, for instance:
-
- psx> mount 'x1:' /x1
- psx> mount
- ...
- MIS1$DKA500: on /x1
-
- >
- >where BCSC$DISK2 is a logical name pointing to DISK2
- >
- >This gives me the error message:
- >BINDERROR, Error processing BIND or UNBIND request
- >DEVMOUNT, device is already mounted
-
- If you want to provide 2 directories mapped to the same device, how about
- symbolically linking one of them to the other? BIND one of them, and then within
- Posix use ln -s to link the additional device name to the one you bound.0
-
- >
- >The problem is that we multiple logical names pointing to the same physical
- >device. For example, we may have another group ENV$DISK1 that also points to
- >DISK2. The user's default may be something like
- >BCSC$DISK2:[BCSC.USERS.EWILTS]
-
- Is that the only reason you want to do this? Why do you need it. Consider the
- following:
-
- MIS1$ sh def
- PSRC:[MISC]
- MIS1$ sh log psrc
- "PSRC" = "X1:[PUBLIC.]" (LNM$SYSTEM_TABLE)
- MIS1$ posix
- psx> pwd
- /x1/public/misc
- psx>
-
- (The output of mount showing /x1 is above.) Note that in this case my default
- was to a directory using a rooted logical, and it still got it right. It appears
- to:
-
- 1) Translate the current default down to a physical device and directory string
- 2) Scan the mount table for that device, and use that as the first element of
- the path.
- 3) Attach the directory spec, suitably converted.
-
- I've never seen it miss if the disk is actually mounted to posix. Did you do a
- POSIX 'mount' after the UCX BIND? The docs say that if you use UCX BIND you have
- to do a mount (no parameters) in POSIX for POSIX to recognize the newly bound
- device. Could that be your problem?
- --
- Terry Poot <tp@mccall.com> The McCall Pattern Company
- (uucp: ...!rutgers!depot!mccall!tp) 615 McCall Road
- (800)255-2762, in KS (913)776-4041 Manhattan, KS 66502, USA
-