Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ucla-cs!ames!sdcsvax!ucbvax!LLL-ICDC.ARPA!oberman%icaen.DECnet From: oberman%icaen.DECnet@LLL-ICDC.ARPA ("ICAEN::OBERMAN") Newsgroups: comp.os.vms Subject: Re: SET FILE/ENTRY Message-ID: <8706280847.AA17078@ucbvax.Berkeley.EDU> Date: Sun, 28-Jun-87 03:19:00 EDT Article-I.D.: ucbvax.8706280847.AA17078 Posted: Sun Jun 28 03:19:00 1987 Date-Received: Sun, 28-Jun-87 09:44:35 EDT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: "ICAEN::OBERMAN" Distribution: world Organization: The ARPA Internet Lines: 38 >Sorry if this Q has been asked before; I am not on the list, so please could >any replies be copied to me? thankyou. > >The DCL manual says that use of $SET FILE/ENTER is "discouraged" but >doesnt say why. Please could somebody kindly tell me why? What precautions >should I take if I go ahead & do it anyway? > >If asked I will explain why I want to do this, but I dont want to inflict >a very long explanation on the whole list. >mark Actually, I don't know of any recent discussion of this. So I'm posting it. File aliases are possible, but not supported in the ODS-2 disk structure. The problem is that if you create aliases (SET FILE/ENTRY) the file system thinks there are two files. If you delete one, the second is gone too. The directory entry remain, but it points off to nowhere. UNIX keeps a count, as I understand it, of aliased entries and does not actually delete a file until the count is 0. If you go ahead an do it, just be careful that the file is protected from accidental deletion and that if you want to delete it you delete all aliases first. Or at least all but one entry. There is no differentiation between the original and its aliases. DON'T delete all of the entries, as this will leave the file with no directory and it and its disk blocks are lost until an ANALYZE/DISK/REPAIR is done. R. Kevin Oberman Lawrence Livermore National Laboratory arpa: oberman@lll-icdc.arpa (415) 422-6955 Disclaimer: Neither my employer nor myself can take resposibility for the accuracy of this information. I believe it is correct, but if it's not I can only say "Sorry". I'm a rotten typist and a worse speller, so forgive any silly errors. ------