21.6 Viewing Hard Links for a Volume (OES SP1 NetWare, NetWare 6.5 SP4)

To view a list of all hard links that exist for a volume: At the server console, enter

/nss /ListHardLinks=vol:path\filename.ext

Replace path with the file’s primary link path or one of its hard link paths where you want to start the search. Replace filename.ext with the actual filename of the file, including the extension.

The command returns a list of hard links, where the first link in the list is the primary link. The second link is the most recently created hard link. This is the hard link that becomes the new primary link if the primary link is deleted. All links for the file are listed in the order they appear in the metadata, which is also the order in which a new primary name would be assigned.

For example, if you wanted the hard link listed as name 4 in the list to become the primary link path, names 1 (the primary link), name 2 (the most recently created hard link), and name 3 (the next most recently created link), would each need to be deleted without creating any new links in the meantime.

IMPORTANT:Make sure that you are aware of the impact of the link deletion on the inherited rights for the file as you are deleting links and the primary link is reassigned to the next hard link in the list.

The list reports the following information for the file:

Line

Information

Line 1

The ZID (file number) of the inode that contains the metadata for the hard link file set and the number of links associated with that inode.

Line 2

The complete name of the primary link, including the path and filename

Line 3

The complete name of the most recently created hard link name, including the path and filename. This is the next candidate in line to become the primary link if the primary link is deleted.

Line 4 - 65,536 (up to 65,535 links)

The complete name of each of the hard link names, including the path and filename, in the reverse chronological order of their creation time.