/* Checks to see if the target joins onto the end of the table.  */
static int adjoin(struct dm_table *table, struct dm_target *ti)
/* Checks to see if the target joins onto the end of the table.  */
static int adjoin(struct dm_table *table, struct dm_target *ti)
{
	struct dm_target *prev;
	if (!table->num_targets)
		return !ti->begin;
	prev = &table->targets[table->num_targets - 1];
	return (ti->begin == (prev->begin + prev->len));
}