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/context.c
int fdisk_enable_wipe(struct fdisk_context* cxt, int enable)
{
    if (!cxt)
        return -EINVAL;

    fdisk_set_wipe_area(cxt, 0, cxt->total_sectors, enable);
    return 0;
}
/**
 * fdisk_enable_wipe
 * @cxt: fdisk context
 * @enable: 1 or 0
 *
 * The library removes all PT/filesystem/RAID signatures before it writes
 * partition table. The probing area where it looks for signatures is from
 * the begin of the disk. The device is wiped by libblkid.
 *
 * See also fdisk_wipe_partition().
 *
 * Returns: 0 on success, < 0 on error.
 */
fdisk_enable_wipe
@cxt: fdisk context
@enable: 1 or 0

The library removes all PT/filesystem/RAID signatures before it writes
partition table. The probing area where it looks for signatures is from
the begin of the disk. The device is wiped by libblkid.



0 on success, < 0 on error.
fdisk_enable_wipe @cxt : fdisk context @enable : 1 or 0 The library removes all PT / filesystem / RAID signatures before it writes partition table . The probing area where it looks for signatures is from the begin of the disk . The device is wiped by libblkid . 0 on success < 0 on error .
int fdisk_enable_wipe(struct fdisk_context* cxt, int enable)
{
    if (!cxt)
        return -EINVAL;
    fdisk_set_wipe_area(cxt, 0, cxt->total_sectors, enable);
    return 0;
}
int fdisk_enable_wipe ( struct fdisk_context * cxt , int enable ) { if ( ! cxt ) return - EINVAL ; fdisk_set_wipe_area ( cxt , 0 , cxt -> total_sectors , enable ) ; return 0 ; }
fdisk_enable_wipe
 @cxt: fdisk context
 @enable: 1 or 0
fdisk_enable_wipe @cxt : fdisk context @enable : 1 or 0