zfs.resource.processes

Retrieve the processes holding open files on the ZFS resource named by path.

A locked resource reports no processes, since nothing can have its contents open. An ENOENT error is raised when the resource does not exist or is a protected internal resource.

Type: object

Type: array
No Additional Items

Tuple Validation

Parameter 1: path

path

Type: string

Path of the zfs resource to list processes for.

Result

Type: array of object

Array of processes with open files on the resource.

No Additional Items
Each item of this array must be:

PoolProcess

Type: object
No Additional Properties

Pid

Type: integer

Process ID of the process using the pool.

Name

Type: string

Name of the process using the pool.

Service


Name of the service if this process belongs to a system service.

Type: string
Type: null

Cmdline


Full command line of the process.

Type: string

Must be at most 2147483647 characters long

Type: null


Required roles: ZFS_RESOURCE_READ