beautypg.com

System and custom metadata, System metadata available – HP StoreAll Storage User Manual

Page 180

background image

System and custom metadata

Two types of metadata are supported for queries, and both can be referenced in the same query:

System metadata applies to all files and directories. Each file and directory stored in IBRIX
includes a fixed set of attributes comprising its system metadata. System metadata attributes
are distinguished from custom metadata attributes by the system:: prefix. System metadata
attributes cannot be deleted by the user through the API.

Custom metadata applies only to files and directories where the user assigns them. Custom
metadata names are user-defined, with value strings also defined by the user. Custom metadata
is meaningful to the user, but it is not used by IBRIX. Custom metadata can be added, replaced,
or deleted by the user (see

“Custom metadata assignment” (page 171)

).

System metadata available

The following table describes the system metadata attributes available for query and updates using
the API.

For "date" types, see

“API date formats” (page 174)

.

With the exception of system::deleteTime, all of the system metadata attributes listed in this
table are valid for live (for example, not-yet-deleted) files and directories. For deleted files, only
the following attributes are valid: system::path, system::deleteTime,
system::lastActivityTime

and system::lastActivityReason.

Writeable

Example

Description

Type

System attribute (key)

no

images/xray.jpg

The pathname of the
file or directory,

string

system::path

expressed as a path
relative to the mount
point of the IBRIX file
system.

This attribute is always
returned above the
JSON stanza of
requested attributes
within curly braces { },
not inside the stanza.

no

433

The IBRIX user ID (UID)
number of the owner of
the file or directory.

numeric

system::ownerUserId

no

1025489

The file size. The
number of bytes stored

numeric

system::size

by IBRIX to hold the
file’s contents.

no

700

The IBRIX group ID
(GID) number of the

numeric

system::ownerGroupId

primary group to which
the owner of the file or
directory belongs.

180 Express Query