From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Snitzer Subject: Re: [PATCH 1/2] dm: Add accessor dm_table_md_suspended Date: Fri, 13 Nov 2009 09:19:01 -0500 Message-ID: <20091113141901.GA18455@redhat.com> References: <20091113080637.17587.64935.stgit@localhost.localdomain> <20091113080642.17587.37581.stgit@localhost.localdomain> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20091113080642.17587.37581.stgit@localhost.localdomain> 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 On Fri, Nov 13 2009 at 3:06am -0500, Mike Anderson wrote: > Add a dm_table accessor function to check if md is suspended. > > Signed-off-by: Mike Anderson I was thinking of doing then same because I have a need to test if a table is suspended in the snapshot target. I stopped short of doing so but it is clear that it is better to put this generic DM export in place rather than have each target add their own 'suspended' flag in presuspend (or some equivalent). Acked-by: Mike Snitzer