<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Dne 10. 09. 22 v 20:46 Pra.. Dew..
      napsal(a):<br>
    </div>
    <blockquote type="cite"
cite="mid:BY5PR14MB3893CAD48C0E0661811682A386429@BY5PR14MB3893.namprd14.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}.MsoChpDefault
        {mso-style-type:export-only;}div.WordSection1
        {page:WordSection1;}</style>
      <div class="WordSection1">
        <p class="MsoNormal">Hello,</p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">I need to setup dm-verity from my
          program-basically mount verity enabled filesystems from my
          code. I have looked at veritysetup and devicemapper (libdm)
          library. I was wondering if there is some simple C code to use
          the DM IOCTLs directly to setup verity. Any guidance to
          directly use the dm IOCTLs or libdm would also be helpful.
          Thank you for the guidance.</p>
        <p class="MsoNormal"><o:p> </o:p></p>
      </div>
    </blockquote>
    <p><br>
    </p>
    <p>Hi<br>
    </p>
    <p>I'd recommend  to exec "dmsetup"  call - as that's by far the
      simplest solution for your problem.</p>
    <p>Verity tool should supposedly solve 'compatibility' between
      various versions and various capabilities of driver.</p>
    <p>What is the idea behind redevelopment of this tool by your  C
      code  (as clearly you should then do the same thing as verity
      tool)  ?<br>
    </p>
    <p><br>
    </p>
    <p>Regards</p>
    <p><br>
    </p>
    <p>Zdenek<br>
    </p>
  </body>
</html>