Re: Deleting alias files (blocks deleted)



Peter 'EPLAN' LANGSTOEGER wrote:
>
> In article <43A62BED.5E8EFE3B@xxxxxxxxxxx>, David J Dachtera <djesys.nospam@xxxxxxxxxxx> writes:
> >JF Mezei wrote:
> >> Is it normal when one is deleting an alias file that the delete command
> >> reports having deleted X blocks ?
> >>
> >> Shouldn't it report having deleted 0 blocks ?
> >>
> >> (This is on VAX VMS 7.2)
> >
> >DELETE will remove the directory entry and $DELETE the file. The
> >remaining directory entry(-ies) now point(s) to a file that no longer
> >exists.
>
> But only on VAXes. On Alphas it was fixed long ago and deletes the file
> only if this is the last pointer to the file.

Ooohhh... careful, there!

Remember: this "pointers" ("links") bit is new for ODS-5, and is only
true of ODS-5, AFAIK.

> (It is said to also fix
> the backlink pointer FID and the file name in the file header to make
> one of the secondary entries to the primary entry if the original entry
> gets deleted - but I haven't seen this so far !! - backlink pointer FID
> has a random value and file name in file header keeps unchanged)
>
> >You're looking for SET FILE/REMOVE, not DELETE (i.e., there is no
> >DELETE/ALIAS, AFAIK).
>
> Be careful.
> With SET FILE/REMOVE you can still remove the only/primary
> entry and get a lost file then (on Alphas, too).

That has always been true.

The "hard" part is identifying aliases without "turning hand-springs".

Perhaps DIRECTORY/FULL and/or DIRECTORY/ALIAS (new qualifier? - whaddaya
think, Guy?) should include some indication that the directory entry's
back-link FID does not match of the FID of the directory where the entry
was found, in addition to the link count.

--
David J Dachtera
dba DJE Systems
http://www.djesys.com/

Unofficial OpenVMS Hobbyist Support Page:
http://www.djesys.com/vms/support/

Unofficial Affordable OpenVMS Home Page:
http://www.djesys.com/vms/soho/

Unofficial OpenVMS-IA32 Home Page:
http://www.djesys.com/vms/ia32/

Coming soon:
Unofficial OpenVMS Marketing Home Page
.



Relevant Pages

  • Re: [OpenVMS Alpha V7.3-2] Batch/Print Job Numbering
    ... He posits that entry number re-use is hindering ... A job SUBMITted /HOLD once a minute for a day would yield 1440 entry ... Unofficial Affordable OpenVMS Home Page: ... Unofficial OpenVMS Hobbyist Support Page: ...
    (comp.os.vms)
  • Re: [OpenVMS Alpha V7.3-2] Batch/Print Job Numbering
    ... to find out why entry x failed. ... Sorry, didn't have a queue entry handy to use as an example, but that's ... Unofficial Affordable OpenVMS Home Page: ... Unofficial OpenVMS Hobbyist Support Page: ...
    (comp.os.vms)
  • Re: Deleting alias files (blocks deleted)
    ... >>> Fine example AEF. ... >>> not through an direct attribute of the entry. ... The fiel name in teh header is ... > Unofficial OpenVMS Hobbyist Support Page: ...
    (comp.os.vms)
  • Re: F$GETJPI doesnt match SHOW PROCESS/ACCOUNTING
    ... David has forgotten more about DCL than most programmers ever know, ... On available batch queue NODE$BATCH ... the standard SHOW ENTRY display. ... Unofficial OpenVMS Hobbyist Support Page: ...
    (comp.os.vms)
  • Re: [OpenVMS Alpha V7.3-2] Batch/Print Job Numbering
    ... David J Dachtera wrote: ... to find out why entry x failed. ... Sorry, didn't have a queue entry handy to use as an example, but that's ... Unofficial OpenVMS Hobbyist Support Page: ...
    (comp.os.vms)