[dm-devel] [PATCH] self-contained "kpartx kicker"

Alasdair G Kergon agk at redhat.com
Thu Apr 7 11:46:31 UTC 2005


> +char *
> +dm_mapname(int major, int minor)

> +	if (!(dmt = dm_task_create(DM_DEVICE_LIST)))
> +		return 0;

You don't need this.  Just set the major/minor directly.
cf dmsetup -j -m

Alasdair.
-- 
agk at redhat.com




More information about the dm-devel mailing list