From: Alasdair G Kergon Subject: Re: [PATCH] self-contained "kpartx kicker" Date: Thu, 7 Apr 2005 12:46:31 +0100 Message-ID: <20050407114631.GM9049@agk.surrey.redhat.com> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: device-mapper development List-Id: dm-devel.ids > +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@redhat.com