* libparted/labels/pt-tools.c (ptt_geom_clear_sectors): New function.
* libparted/labels/pt-tools.h: Declare it.
? 1 : ped_device_write (dev, zero, start + n_z_sectors * i, rem));
}
+/* Zero N sectors of GEOM->dev, starting with GEOM->start + START.
+ Return nonzero to indicate success, zero otherwise. */
+int
+ptt_geom_clear_sectors (PedGeometry *geom, PedSector start, PedSector n)
+{
+ return ptt_clear_sectors (geom->dev, geom->start + start, n);
+}
+
#include "pt-limit.c"
/* Throw an exception and return 0 if PART's starting sector number or
int ptt_read_sectors (PedDevice const *dev, PedSector start_sector,
PedSector n_sectors, void **buf);
int ptt_clear_sectors (PedDevice *dev, PedSector start, PedSector count);
+int ptt_geom_clear_sectors (PedGeometry *geom, PedSector start,
+ PedSector count);
int ptt_partition_max_start_len (char const *label_type,
const PedPartition *part);