.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "GFXATTR" "1" "18 August 2009" "Gfarm" ""
.SH NAME
gfxattr \- Manipulate extended attributes in Gfarm file system
.SH SYNOPSIS
\fBgfxattr\fR [ \fB-s\fR | \fB-g\fR | \fB-l\fR | \fB-r\fR ] [ \fB-x\fR ] [ \fB-c\fR | \fB-m\fR ] [ \fB-f \fIxattrfile\fB\fR ] \fB\fIfile\fB\fR [ \fB\fIxattrname\fB\fR ]
.SH "DESCRIPTION"
.PP
gfxattr manipulates extended attributes and XML extended attributes of
a specified file. An extended attribute consists of an attribute name
and an attribute value, which are arbitrary strings. An XML extended
attribute is an extended attribute having an XML attribute value.
Since XML extended attributes have a different name space from
extended attributes, the same attribute name can be used.
.PP
When the -x option is specified, XML extended attributes are
manipulated. It is possible to search XML extended attributes by
XPath query using gffindxmlattr command.
.PP
All files and directories in Gfarm file system can keep extended
attributes. When removing a file or directory, the associated
extended attributes are also removed.
.PP
Either -s, -g, -l, or -r option should be specified.
.SH "OPTIONS"
.TP
\fB-s\fR
sets a new value with an extended attribute xattrname for a specified
file. With the -f option, the value can be specified by the file
xattrfile instead of by the standard input. When neither -c nor -m
option is specified, the extended attribute is overwritten if it is
already set.
.TP
\fB-g\fR
reads a value with an extended attribute xattrname for a
specified file.
.TP
\fB-l\fR
display a list of extended attributes for a specified
file.
.TP
\fB-r\fR
removes a extended attribute xattrname for a specified
file.
.TP
\fB-x\fR
manipulates XML extended attributes.
.TP
\fB-c\fR
sets a new extended attribute if it is not set. This option is
used with the -s option.
.TP
\fB-m\fR
modifies the extended attribute if there it is. This option is
used with the -s option.
.TP
\fB-f xattrfile\fR
With the -s option, reads an extended attribute from the specified
xattrfile instead of from the standard input. With the -g option,
writes the extended attribute to the specified xattrfile instead of to
the standard output.
.TP
\fB-?\fR
displays usage.
.SH "SEE ALSO"
.PP
\fBgffindxmlattr\fR(1)