devexports File

Purpose

Lists all devices that can be exported into workload partitions, and lists the devices that are exported by default.

Description

A devexports file is a stanza file containing a list of global devices that can be legally exported to workload partitions (WPAR). Devices are specified by name, which can contain shell-style wildcards. devexports stanzas have the following format:
name:
   value = "{/dev/devname}"
   auto = "{yes|no}"

The stanza header is always name. The value attribute contains the full path to the device (for example, /dev/null) or a shell-style pattern representing multiple devices (for example, /dev/*random). The existence of the stanza in the file indicates that one or more devices can be exported. The auto attribute indicates whether the device is exported by default. If the auto attribute is not specified, auto=yes is assumed.

You can configure a workload partition with a devexports file using the -b flag of the mkwpar command or the restwpar command. If you do not specify the file, the /etc/wpars/devexports file is used by default.

The -D flag of the mkwpar command can override the default exporting behavior that the auto attribute indicates. However, devices that are not represented in the devexports file related to the WPAR cannot be exported.

Device exports are synchronized when you run the startwpar command, in case configurations have changed since the last run command. Device exports are resynchronized when you run the chwpar command to change device-related settings using the -D flag.