HP3000-L Archives

June 1995, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jeff Vance <[log in to unmask]>
Reply To:
Jeff Vance <[log in to unmask]>
Date:
Thu, 1 Jun 1995 16:01:26 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (74 lines)
On Jun 2,  8:26am, Jim Wowchuk wrote:
 
> >> >I didn't think you could have two objects (files) of the same name in the
> >> > same directory?!
> >> >
> >>
> >> But you don't, of course.  One file is called "PUB" and the other is
called
> >> "PUB/".  Both residing in the subdirectory "/JVNM/" in the temporary
domain.
> >
> >JV: Not true. The trailing slash is appended (by LISTFILE code) to the file
> >    name if the object type = "dir"; thus the 2 names are the same.
>
> And of course the object types are *NOT* type "dir".  Ergo, they are two
> files with two different file names, with the latter have the "/" as part of
> the file name stored in the directory.
 
JV: An MPE group (PUB in this case) is not an HFS directory object, but
    is considered a generic directory object.  In fact the listfile code
    assumes that any HFS dir, group dir, acct dir or root dir is a directory.
    Here is the code fragment:
 
        if is_dir(object) and (line[strlen(line)] <> '/') then
           strappend (line, '/');
 
  So in the 1st instance of PUB we don't think it is is a "directory", and in
  the 2nd we do (unless you are right about '/' actually being in the filename,
   but this seems too bizzare for me...)
 
>
> But continuing this wierd situation.  Observe the following:
>
> \\BARNEY\DEVEL\PUB:build ./All/;temp
> \\BARNEY\DEVEL\PUB:build ./Bad/;temp
> \\BARNEY\DEVEL\PUB:build ./Machines/;temp
> \\BARNEY\DEVEL\PUB:build ./Run/;temp
> \\BARNEY\DEVEL\PUB:build ./UNIX/;temp
> \\BARNEY\DEVEL\PUB:listfile ./@,2;temp
>
>  TEMPORARY FILES FOR MGR.DEVEL
>
>  PATH= /DEVEL/PUB/
>
>  CODE  ------------LOGICAL RECORD-----------  ----SPACE----  FILENAME
>          SIZE  TYP        EOF      LIMIT R/B  SECTORS #X MX
>
>          128W  FB           0       1023   1        0  0  *  All/
>          128W  FB           0       1023   1        0  0  *  Bad/
>          128W  FB           0       1023   1        0  0  *  Machines/
>          128W  FB           0       1023   1        0  0  *  Run/
>          128W  FB           0       1023   1        0  0  *  UNIX
>
> \\BARNEY\DEVEL\PUB:
>
> Notice that UNIX *did not* get the trailing "/" while all the others did.
> Ah hah!  A conspiricy to protect Unix, eh?????   :)
>
> No it seems if the name is a valid mpe_namespace name, then the trailing "/"
> is stripped, if posix_namespace then it is left on.
 
JV:
This explanation is consistent with the results.  We need Steve Elmer to help
out here.  Perhaps the names in the TEMP directory actually have the trailing
slash (which they shouldn't).  Posix allows a trialing slash to be specified in
a pathname, but it is suppossed to be ignored.  SR time?
 
snip...
 
 
 
--
Jeff Vance

ATOM RSS1 RSS2