TAPE_CREATE_PARTITION structure (ntddtape.h)

The TAPE_CREATE_PARTITION structure is used in conjunction with the IOCTL_TAPE_CREATE_PARTITION request to create a specified number of fixed, select, or initiator partitions of a given size on the tape media.

Syntax

typedef struct _TAPE_CREATE_PARTITION {
  ULONG Method;
  ULONG Count;
  ULONG Size;
} TAPE_CREATE_PARTITION, *PTAPE_CREATE_PARTITION;

Members

Method

Indicates the method used to create the partitions. This member can have one of the following values:

Method Meaning
TAPE_FIXED_PARTITIONS Partitions the tape based on the device's default definition of partitions. The Count and Size parameters are ignored.
TAPE_SELECT_PARTITIONS Partitions the tape into the number of partitions specified by Count. The Size parameter is ignored. The size of the partitions is determined by the device's default partition size. For more specific information, refer to the documentation for your tape device.
TAPE_INITIATOR_PARTITIONS Partitions the tape into the number and size of partitions specified by Count and Size, respectively, except for the last partition. The size of the last partition is the remainder of the tape.

Count

Indicates the number of partitions to create.

Size

Indicates the size of each partition, in bytes.

Requirements

Requirement Value
Header ntddtape.h (include Ntddtape.h, Minitape.h)

See also

IOCTL_TAPE_CREATE_PARTITION

TapeMiniCreatePartition