File-matching options for file pool policies

You can configure a file pool policy for files that match specific criteria.

The following file-matching options can be specified when you create or edit a file pool policy.

Note Image

OneFS supports UNIX shell-style (glob) pattern matching for file name attributes and paths.


The following table lists the file attributes that you can use to define a file pool policy.

File attribute

Specifies

Name

Includes or excludes files based on the file name.

You can specify whether to include or exclude full or partial names that contain specific text. Wildcard characters are allowed.

Path

Includes or excludes files based on the file path.

You can specify whether to include or exclude full or partial paths that contain specified text. You can also include the wildcard characters *, ?, and [ ].

File type

Includes or excludes files based on one of the following file-system object types:
  • File

  • Directory

  • Other

Size

Includes or excludes files based on their size.
Note Image

File sizes are represented in multiples of 1024, not 1000.

Modified

Includes or excludes files based on when the file was last modified.

In the web administration interface, you can specify a relative date and time, such as "older than 2 weeks," or a specific date and time, such as "before January 1, 2012." Time settings are based on a 24-hour clock.

Created

Includes or excludes files based on when the file was created.

In the web administration interface, you can specify a relative date and time, such as "older than 2 weeks," or a specific date and time, such as "before January 1, 2012." Time settings are based on a 24-hour clock.

Metadata changed

Includes or excludes files based on when the file metadata was last modified. This option is available only if the global access-time-tracking option of the cluster is enabled.

In the web administration interface, you can specify a relative date and time, such as "older than 2 weeks," or a specific date and time, such as "before January 1, 2012." Time settings are based on a 24-hour clock.

Accessed

Includes or excludes files based on when the file was last accessed based on the following units of time:

In the web administration interface, you can specify a relative date and time, such as "older than 2 weeks," or a specific date and time, such as "before January 1, 2012." Time settings are based on a 24-hour clock.

Note Image

Because it affects performance, access time tracking as a file pool policy criterion is disabled by default.

File attribute

Includes or excludes files based on a custom user-defined attribute.