REASSIGN_BLOCKS structure

The REASSIGN_BLOCKS structure is used in conjunction with the IOCTL_DISK_REASSIGN_BLOCKS request to instruct a disk device to reassign the block numbers of the indicated bad blocks to good blocks.

Syntax

typedef struct _REASSIGN_BLOCKS {
  USHORT Reserved;
  USHORT Count;
  ULONG  BlockNumber[1];
} REASSIGN_BLOCKS, *PREASSIGN_BLOCKS;

Members

Reserved

Reserved for system use.

Count

Contains the number of blocks in the array pointed to by BlockNumber to reassign.

BlockNumber

Contains an array of block numbers corresponding to damaged blocks. These numbers will be reassigned to good blocks taken from the device's spare block pool.

Requirements

   
Header ntdddisk.h (include Ntdddisk.h)

See Also

IOCTL_DISK_REASSIGN_BLOCKS