<div dir="ltr">Hi, all<div style>I&#39;m confused about the progress of this function. Actually in its steps:</div><div style><br></div><div style><br></div><div><div>      1) Create a sparse COW</div><div>      2) Loopback mount the image and the COW</div>
<div>      3) Create a device-mapper snapshot of the image</div><div>         using the COW</div><div>      4) Resize the filesystem to the minimal size</div><div>      5) Determine the amount of space used in the COW</div>
<div>      6) Restroy the device-mapper snapshot</div><div>      7) Truncate the COW, removing unused space</div><div>      8) Create a squashfs of the COW</div></div><div><br></div><div><br clear="all"><div style>why not resize2fs -M osmin.img directly?</div>
<div style><br></div><div style>In document <a href="http://fedoraproject.org/wiki/LiveOS_image">http://fedoraproject.org/wiki/LiveOS_image</a>, </div><div style>it said&quot;osmin.img is a minimized OS image which is used to aid traditional installation from a LiveOS image source to a hard disk.&quot;, but how does this lvm snapshot help with installation to disk?</div>
<div style><br></div><div style>Is &quot;os.fturncate this file(snapshot file <i>osmin</i>)&quot; dangerously?</div><div style><br></div><div style>Thanks</div><div style>-- </div><div dir="ltr"><font color="#444444">Gareth</font><div>
<font color="#444444"><br></font><div><i><font color="#444444">Cloud Computing, OpenStack, Fitness, Basketball</font></i></div><div><i><font color="#666666">OpenStack contributor</font></i></div><div><i><font color="#666666">Company: <a href="http://www.ustack.com" target="_blank">UnitedStack</a></font></i></div>
<div><i><font color="#999999">My promise: if you find any spelling or grammar mistakes in my email from Mar 1 2013, notify me </font></i></div><div><i><font color="#999999">and I&#39;ll donate $1 or ¥1 to an open organization you specify.  </font></i></div>
</div></div>
</div></div>