# locked

## Synopsis

    locked

## Description

Used in a class definition to indicate that iDefrag must not move any extent that matches this class.

This may be useful for disk encryption software that requires a given file or files to remain in a particular location on the disk. It may also be useful in some cases involving copy protection.

## Example

    // Make sure my auth file doesn’t move

    class "Auth File" {
      match files where name = "/Applications/Some Program.app/Contents/authfile"
      locked
      color "Crayons:Tangerine"
    }

## See also

class, display class, don’t optimize