openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/util-linux/2.33.2-r0/util-linux-2.33.2/libfdisk/src/label.c
int fdisk_reorder_partitions(struct fdisk_context* cxt)
{
    if (!cxt || !cxt->label)
        return -EINVAL;
    if (!cxt->label->op->reorder)
        return -ENOSYS;

    return cxt->label->op->reorder(cxt);
}
/**
 * fdisk_reorder_partitions
 * @cxt: fdisk context
 *
 * Sort partitions according to the partition start sector.
 *
 * Returns: 0 on success, 1 reorder unnecessary, otherwise a corresponding
 * error.
 */
fdisk_reorder_partitions
@cxt: fdisk context

Sort partitions according to the partition start sector.

0 on success, 1 reorder unnecessary, otherwise a corresponding
error.
fdisk_reorder_partitions @cxt : fdisk context Sort partitions according to the partition start sector . 0 on success 1 reorder unnecessary otherwise a corresponding error .
int fdisk_reorder_partitions(struct fdisk_context* cxt)
{
    if (!cxt || !cxt->label)
        return -EINVAL;
    if (!cxt->label->op->reorder)
        return -ENOSYS;
    return cxt->label->op->reorder(cxt);
}
int fdisk_reorder_partitions ( struct fdisk_context * cxt ) { if ( ! cxt || ! cxt -> label ) return - EINVAL ; if ( ! cxt -> label -> op -> reorder ) return - ENOSYS ; return cxt -> label -> op -> reorder ( cxt ) ; }
fdisk_reorder_partitions
 @cxt: fdisk context
fdisk_reorder_partitions @cxt : fdisk context