From: pavankumar.p@globaledgesoft.com Subject: Re: DM-Verity Tool Date: Fri, 24 May 2013 21:40:18 +0530 (IST) Message-ID: <11906.192.168.200.1.1369411818.squirrel@gesmail.globaledgesoft.com> References: <22416.192.168.200.1.1369149109.squirrel@gesmail.globaledgesoft.com> <519CA6F0.3000309@redhat.com> <519CF66C.8010808@gmail.com> <20204.192.168.200.1.1369291275.squirrel@gesmail.globaledgesoft.com> <519E806C.1050903@gmail.com> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <519E806C.1050903@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Milan Broz Cc: Marian Csontos , pavankumar.p@globaledgesoft.com, mpatocka@redhat.com, device-mapper development List-Id: dm-devel.ids Hi All, Thanks a lot for your support. Now I am able to configure verity target using both veritysetup & dmsetup. Regards, Pavan > > On 05/23/2013 08:41 AM, pavankumar.p@globaledgesoft.com wrote: >> 1. What are the difference between configuring a verity target using >> dmsetup & veritysetup. Can these be used interchangeably? > > dmsetup is just low level tool, you need to know all table parameters > while veritysetup will prepare table for you using high level commands > and on-disk metadata (if present). > >> 2. I tried passing the root hash value generated by veritysetup as a >> parameter to dmsetup but this doesn't work. On doing dmsetup status, the >> output is showing as the target corrupted (C). I examined dmesg & found >> the following error > > Be sure you are using proper parameters, metadata version etc. > > Try activate device with veritysetup, then run "dmsetup table" and > check what is different in your dmsetup line. > >> 3. After creating a verity target using "veritysetup" how to test the >> target for corrupted case (As soon as creating the status is Verified >> (V)) > > By corrupting the image? :) See tests/verity-compat-test in cryptsetup > tree, it is basic regression test which is simulating both data and hash > corruption (it just dd random data to know offset and expects failure.) > > Milan >