<HTML>
<HEAD>
<TITLE>Re: [Openstack] Libguestfs weirdness??</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Ok, so part of the findings here is that when that flag is not enabled, it seems like the resize2fs and commands that run on the image file beforehand might actually screw up the image file (if it is qcow2). Has anyone tried this flag with a false value and used qcow2 images. Is there a patch to ubuntus resize2fs that makes it work with qcow2 images. I don’t see how this could have worked without something like that previously (if ever). <BR>
<BR>
It seems like the right way forward is to use libguestfs resize (which requires disk images to have a partition).<BR>
<BR>
On 6/4/12 10:12 AM, "Joshua Harlow" <<a href="harlowja@yahoo-inc.com">harlowja@yahoo-inc.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi all,<BR>
<BR>
I was wondering if there has been anyone else who has used this flag with libguestfs (on RH 6.2) that has noticed file sync issues.<BR>
<BR>
</SPAN></FONT><FONT COLOR="#323232"><FONT SIZE="1"><FONT FACE="Courier, Courier New"><SPAN STYLE='font-size:9pt'>force_raw_images=true<BR>
</SPAN></FONT><SPAN STYLE='font-size:9pt'><FONT FACE="Calibri, Verdana, Helvetica, Arial"><BR>
</FONT></SPAN></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I have been turning that to false so that images need not be expanded for actual usage (it seems this only affects the base images in _base) but when turning that to false and when file injection occurs, it seems that the files get written (I’ve added os.listdir and such for debugging) but when unmounted and later that image is started it seems like those files either do not get synced back to the image (I even added a manual ‘sync’ call) or there is some other corruption that happens that causes those images to not contain those files when started (for reference I am using qcow2 files).<BR>
<BR>
Has anyone else seen this type of issue?<BR>
It seems when it is set to true it is not a problem, but when it isn’t then some weirdness happens....<BR>
<BR>
-Josh </SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>