Assigning pattern tables to file systems

A pattern table contains patterns against which a file's name and creating process' UID and GID are matched as a file is created in a directory. If the directory does not have its own pattern table or an inheritable allocation policy, the file system's pattern table takes effect. The first successful match is used to set the allocation policies of the file.

See the fsapadm(1M) manual page.

The following example shows how to assign pattern tables to a file system in a volume set that contains two volumes from different classes of storage. The pattern table is contained within the pattern file mypatternfile.

To assign pattern tables to directories

  1. Define two allocation policies called mydata and mymeta to refer to the vol1 and vol2 volumes:

      # fsapadm define /mnt1 mydata vol1
      # fsapadm define /mnt1 mymeta vol2
  2. Assign the pattern table:

      # fsapadm assignfspat -F mypatternfile /mnt1