From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ming-Hung Tsai Subject: Re: [PATCH] thin_dump: added --device-id, --skip-mappings, and new output --format's Date: Sun, 20 Mar 2016 23:59:09 +0800 Message-ID: References: <20160317154553.GC4033@rh-vpn> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: 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 2016-03-18 6:45 GMT+08:00 Eric Wheeler : > > On Thu, 17 Mar 2016, Joe Thornber wrote: > >> If you're skipping the mappings does the new thin_ls provide enough >> information for you? > > Our primary need is the ability to specify --device-id in the o:L:d output > format (old_format.cc) with mappings. Our nightly dumps now take 50 > seconds instead of 40 minutes since we only dump the dev_id's that we > need. I think that the --device-id option is required for thin_dump, but the necessity of --skip-mappings could be discussed. If thin_ls supports --device-id, then thin_dump might not require --skip-mappings. I put my code here for reference (based on v0.7-devel) https://github.com/mingnus/thin-provisioning-tools/commits/v0.7-thin_dump-enhancement I borrow the option name "--skip-mappings" and function name "set_skip_mappings" from Eric, since that they sounds more clear. Build method: # autoconf; ./configure --enable-dev-tools; make My use cases: # thin_dump --device-id= --format= [--skip-mappings] Ming-Hung Tsai