Operating System - OpenVMS
1752786 Members
5952 Online
108789 Solutions
New Discussion юеВ

Re: LinkCount On ODS-5 Volumes

 
Robert Atkinson
Respected Contributor

LinkCount On ODS-5 Volumes

Anyone come across the LinkCount setting on ODS-5 files? :-

PARAMS.DAT;25 File ID: (12051,3,0)
Size: 15/69 Owner: [1,1]
Created: 8-FEB-2005 08:09:56.32
Revised: 8-FEB-2005 08:10:15.80 (2)
Expires:
Backup:
Effective:
Recording:
Accessed:
Attributes:
Modified:
Linkcount: 1

Anyone know what this is? There's also an undocumented DIR/LINKCOUNT qualifier as well!

Rob.
5 REPLIES 5
Jan van den Ende
Honored Contributor

Re: LinkCount On ODS-5 Volumes

Rob,

ODS-5 supports *UX-style links, so I am not surprised that there also is a way to keep track of them.

fwiw,

Proost.

Have one on me.

Jan
Don't rust yours pelled jacker to fine doll missed aches.
Kris Clippeleyr
Honored Contributor

Re: LinkCount On ODS-5 Volumes

Rob,

Me thinks it has someting to do with the (also new, and hardly documented) qualifier
/VOLUME_CHARACTERISTICS=[NO]HARDLINKS
for the INITIALIZE command.

Regards,
Kris (aka Qkcl)
I'm gonna hit the highway like a battering ram on a silver-black phantom bike...
Ian Miller.
Honored Contributor

Re: LinkCount On ODS-5 Volumes

Uwe Zessin
Honored Contributor

Re: LinkCount On ODS-5 Volumes

Right, now it should be less likely to kill the primary entry when there are still alternate entries to the file. This has improved over time, but before links existed, there still were some holes:

$$ write sys$output f$getsyi("version")
V6.2-1H3
$$
$$ create a.tmp
*EXIT*
$$ set file/enter=b.tmp a.tmp
$$ directory/size a.tmp,b

Directory USER_x:[ZESSIN]

A.TMP;1 0
B.TMP;1 0

Total of 2 files, 0 blocks.
$$
$$ delete a.tmp;
$$ directory/size a.tmp,b

Directory USER_x:[ZESSIN]

B.TMP;1 no such file

Total of 1 file, 0 blocks.
$$

--
On a different system with a disk that has hard links enabled, I get:

$ delete a.tmp;
$ dir/size a.tmp,b

Directory USER_y:[ZESSIN]

B.TMP;1 0

Total of 1 file, 0 blocks.
$
.
Robert Atkinson
Respected Contributor

Re: LinkCount On ODS-5 Volumes

Closed