From: "Reng Zeng" Subject: Question about 'dmsetup remove' and dtr of target_type Date: Sun, 9 Nov 2008 00:27:24 -0500 Message-ID: <60468f1e0811082127h3dac5b60h829d871fb38dd63a@mail.gmail.com> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1080997157==" Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: dm-devel@redhat.com List-Id: dm-devel.ids --===============1080997157== Content-Type: multipart/alternative; boundary="----=_Part_55339_23420779.1226208444450" ------=_Part_55339_23420779.1226208444450 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I suppose "dmsetup remove' will invoke dtr of target_type to remove the device. However, I use "dmsetup remove" hundreds times, as the debug info, but it never enter the dtr function I defined. Anybody have idea on this? Or how to dig into that to discover the reason? Thanks. To be of more details, I have cache_target as below. static struct target_type cache_target = { ... .dtr = cache_dtr, ... }; I add debug info into cache_dtr, it show it never enter into cache_dtr when I "dmsetup remove". Thanks again, Alan ------=_Part_55339_23420779.1226208444450 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,

I suppose "dmsetup remove' will invoke dtr of target_type to remove the device.

However, I use "dmsetup remove" hundreds times, as the debug info, but it never enter the dtr function I defined.

Anybody have idea on this? Or how to dig into that to discover the reason? Thanks.

To be of more details, I have cache_target as below.
static struct target_type cache_target = {
...
        .dtr    = cache_dtr,
...
};
I add debug info into cache_dtr, it show it never enter into cache_dtr when I "dmsetup remove".

Thanks again,
Alan

------=_Part_55339_23420779.1226208444450-- --===============1080997157== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============1080997157==--