Mounting a Clone File System in the Control Directory (CLI)

This task enables you to mount a clone file system in the control directory. When you perform this task, the specified clone file system is unshared and unmounted from the current mount point. Then, the clone file system is mounted in the source file system's control directory and is shared only with its source file system.

  1. To configure a control directory for the file system share, set the mountpoint property value to clonedir.
    hostname:shares myproject/demo_share> set mountpoint=clonedir
        mountpoint=clonedir(uncommitted)

    When you run this command, the clone appears in the .zfs/clone directory. Note that this action does not affect the visibility of the control directory.

  2. Commit the change.
    hostname:shares myproject/demo_share> commit

To stop using the control directory for the file system share, set the mountpoint property value to the mount point, such as /export/demo_share.

hostname:shares myproject/demo_share> set mountpoint=/export/demo_share
    mountpoint=/export/demo_share(uncommitted)
hostname:shares myproject/demo_share> commit