Index Index for Section 8
Index Alphabetical listing for T

tag2name(8)

NAME

tag2name - prints the path name of a file given the tag number

SYNOPSIS

/sbin/advfs/tag2name tags_directory/tag

OPERANDS

tags_directory Specifies the relative path of the AdvFS tags directory for the fileset. tag Specifies the AdvFS file tag number.

DESCRIPTION

Internally, AdvFS identifies files by tag numbers (similar to inodes in UFS). Internal messages, error messages, and output from diagnostic utilities usually specify a tag number in place of a file name. To determine the name and path of the file identified by a tag number, use the tag2name command. Each mounted AdvFS fileset has a .tags directory in its mount point. To obtain the file name, specify the path to the .tags directory in the fileset followed by the desired tag number as the argument to the tag2name command. The full path name of the corresponding file will be printed to standard out.

RESTRICTIONS

You must have root-user privilege to access this command. The tag you specify must be numeric and greater than 1.

EXAMPLES

1. The following example prints the file name corresponding to tag 5 in the usr fileset. It assumes the current working directory is /usr: # /sbin/advfs/tag2name .tags/5 /usr/quota.group 2. The following example prints the file name corresponding to tag 145 in the staff2 fileset. The current working directory is /staff2/.tags: # /sbin/advfs/tag2name 145 /staff2/joe/save/oldfile

FILES

/sbin/advfs/tag2name Specifies the command path.

SEE ALSO

advfs(4)