Allocation_Algorithm

This enumeration defines the allocation strategies available for use with the Create_Partition function. The allocation strategy is used to determine which block of free space, out of those available, should be used when creating a partition if one is not explicitly specified.


#include <lvm_intr.h>

typedef enum _Allocation_Algorithm {
    Automatic,        /* Let LVM decide which block to use                      */
    Best_Fit,         /* Use the block which is closest in size                 */
    First_Fit,        /* Use the first block which is large enough              */
    Last_Fit,         /* Use the last block which is large enough               */
    From_Largest,     /* Use the largest block out of those available           */
    From_Smallest,    /* Use the smallest possible block out of those available */
    All               /* Turn the drive or block into a single partition        */
} Allocation_Algorithm;