Content-type: text/html Man page of tag2name

tag2name

Section: Maintenance Commands (8)
Index Return to Main Contents
 

NAME

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

SYNOPSIS

/sbin/advfs/tag2name tags_directory/tag


 

OPERANDS

Specifies the relative path of the AdvFS tags directory for the fileset. 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

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 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

Specifies the command path.
 

SEE ALSO

advfs(4)


 

Index

NAME
SYNOPSIS
OPERANDS
DESCRIPTION
RESTRICTIONS
EXAMPLES
FILES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 02:40:34 GMT, October 02, 2010