home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / vms / 19887 < prev    next >
Encoding:
Internet Message Format  |  1992-12-26  |  3.0 KB

  1. Path: sparky!uunet!usc!elroy.jpl.nasa.gov!news.claremont.edu!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL
  2. From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
  3. Newsgroups: comp.os.vms
  4. Subject: Re: Request help !
  5. Date: 26 Dec 1992 05:32:24 GMT
  6. Organization: HST Wide Field/Planetary Camera
  7. Lines: 55
  8. Distribution: world
  9. Message-ID: <1hgqp8INNfjb@gap.caltech.edu>
  10. References: <00965847.9D4D2780.30461@VAX1.Bemidji.MSUS.EDU>
  11. Reply-To: carl@SOL1.GPS.CALTECH.EDU
  12. NNTP-Posting-Host: sol1.gps.caltech.edu
  13.  
  14. In article <00965847.9D4D2780.30461@VAX1.Bemidji.MSUS.EDU>, w1c2l3@VAX1.BEMIDJI.MSUS.EDU writes:
  15. =Hi, everybody !
  16. =
  17. =I read a mail (I forgot the name of the sender) about recursive directory
  18. =specification, using this command :
  19. =
  20. =$ CREATE /DIR [.1]
  21. =$ SET FILE /ENTER=[.1]2.DIR 1.DIR
  22. =
  23. =The first time I access 1.DIR, I could see 2.DIR.
  24. =Then, when I access 2.DIR, I could see another 2.DIR, and that 2.DIR seemed
  25. =endless. Everytime I access the next one, I would always see another one,
  26. =kind of getting deeper and deeper.
  27. =
  28. =Can someone please explain to me what in happening ?
  29.  
  30. Certainly.  A directory entry simply consists of a file name and a File
  31. IDentification number.   Nothing in the directory entry itself says anything
  32. about that the directory the entry's in is supposed to be called.  So, let's
  33. take the simplest case:  1.DIR his FID (75,1,0).  So the original entry for it
  34. says that file 1.DIR;1 in your original directory is the file with FID
  35. (75,1,0).  Now, when you SET FILE/ENTER=[.1]2.DIR 1.DIR, you're telling VMS to
  36. put a directory entry in file (75,1,0) that says that that directory contains
  37. the file (75,1,0), which is to be called 2.DIR;1.  At this point, things have
  38. become self-referential.  The file [.1]2.DIR;1 now contains an entry
  39. associating directory 2.DIR;1 with its own FID.  This is a situation one
  40. generally tries to avoid.
  41.  
  42. =I also tried to delete the directory :
  43. =I delete 2.DIR first, since it's lower that 1.DIR, using this command :
  44. =( I did this after I access 1.DIR)
  45. =
  46. =$ SET PROT:O:D 2.DIR
  47. =$ DEL 2.DIR;*
  48.  
  49. Well, since [.1]2.DIR;1 and []1.DIR;1 are the same file, when you changed the
  50. protection of 2.DIR you did the same thing to the protection of 1.DIR.  This
  51. means that you no longer have read, write, or execute permission for 1.DIR;1.
  52. So when you try to modify it with the command:
  53.  
  54. $ DEL 2.DIR;1
  55.  
  56. =But, instead I got error message :
  57. =insufficient privilege or file protection violation.
  58.  
  59. Which is telling you you need to:
  60.     $ SET PROTECTION=O=RWED 1.DIR;1
  61. --------------------------------------------------------------------------------
  62. Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
  63.  
  64. Disclaimer:  Hey, I understand VAXen and VMS.  That's what I get paid for.  My
  65. understanding of astronomy is purely at the amateur level (or below).  So
  66. unless what I'm saying is directly related to VAX/VMS, don't hold me or my
  67. organization responsible for it.  If it IS related to VAX/VMS, you can try to
  68. hold me responsible for it, but my organization had nothing to do with it.
  69.