<div class="gmail_quote">На 07 ноември 2011, 18:15, David Zeuthen <span dir="ltr">&lt;<a href="mailto:zeuthen@gmail.com" target="_blank">zeuthen@gmail.com</a>&gt;</span> написа:<br><div class="gmail_quote"><div><div></div>

<div class="h5"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hey,<br>
<br>
2011/11/5 Иво Георгиев &lt;<a href="mailto:ivo@linvo.org" target="_blank">ivo@linvo.org</a>&gt;:<br>
<div><div></div><div>&gt; The documentation says &quot;TODO: Consider allowing changing offset and size.&quot;<br>
&gt; under PartitionModify().<br>
&gt; If that feature is still desired/welcome, I&#39;d be happy to try to implement<br>
&gt; it. Is it?<br>
<br>
</div></div>Yes it is but the work should happen in udisks2 (which is now on the<br>
master branch, udisks 1.x is on the udisks1 branch) where a lot of<br>
work is currently going on wrt creating/deleting/modifying partitions.<br>
Interface/API-wise I think it would just be a method on the<br>
org.fd.UDisks2.Partition interface<br>
<br>
 <a href="http://people.freedesktop.org/~david/udisks2-20111102/gdbus-org.freedesktop.UDisks2.Partition.html" target="_blank">http://people.freedesktop.org/~david/udisks2-20111102/gdbus-org.freedesktop.UDisks2.Partition.html</a><br>



<br>
Thanks,<br>
<font color="#888888">David<br>
</font></blockquote></div></div></div><br>Shouldn&#39;t the method contain &quot;filesystem&quot; (since it will re-size the file-system first), or it would not re-size file-systems (only modifying the partition table)? <br>

And actually, from what I understand, the current UDisks partition modify helper has the ability to change the offset/size of an existing entry in the partition table (of course, without touching the FS itself), but the UDisks daemon does not allow this through the D-Bus API - judging from a quick code check, when partition modify is requested, it always passes the current size/offset to the helper.<br>


<br>Also, if I want to create a private (since this functionality is not planned for this branch of udisks) patch to allow changing the partition table, what do I have to call in a helper (or in the demon, after the helper finishes execution) to force UDisks update partition table data?<br>


<br>Thanks
</div><br>I&#39;m terribly sorry for sending this twice. I meant to send the reply in the mailing list but sent it to <span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">David Zeuthen personally by mistake.</span>