<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 31, 2015 at 9:00 PM, Christoph Hellwig <span dir="ltr"><<a href="mailto:hch@infradead.org" target="_blank">hch@infradead.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span>On Wed, Aug 26, 2015 at 02:02:32PM +0200, Jan Tulak wrote:<br>
> OS X does not have the timer used in xfs_repair.<br>
> Add a simple implementation providing the required<br>
> capabilities.<br>
<br>
</span>This doesn't look like it would actually work.<br>
</blockquote></div><br><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">​As I understand the timer usage, it should periodically send a signal. The timer code I posted really does this, at least when I take the <span style="font-size:12.8000001907349px;font-family:arial,sans-serif">timer_* functions "as it is" outside and test them, calling them in the same order as in the repair code. I tested that before sending the patch.</span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="font-size:12.8000001907349px;font-family:arial,sans-serif"><br></span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I have to try it in xfs_repair yet - this is limited by having small storage space for a filesystem, where the reporting interval would be noticeable. The best thing for this I have now is an old USB2 8 GB flash drive, filled with multiple copies of installed Debian. However, even on a raspberry pi, it still runs quickly. I guess few hundreds of GB would do it, but I need to dig out an old USB2-sata reduction somewhere and a HDD... (And I didn't noticed any difference in output.)</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="font-size:12.8000001907349px;font-family:arial,sans-serif"><br></span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="font-size:12.8000001907349px;font-family:arial,sans-serif">So in meantime, w</span><span style="font-family:arial,sans-serif;font-size:12.8000001907349px">hy do you think this won't work?</span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="font-family:arial,sans-serif;font-size:12.8000001907349px"><br></span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="font-family:arial,sans-serif;font-size:12.8000001907349px">Cheers,</span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="font-family:arial,sans-serif;font-size:12.8000001907349px">Jan</span></div><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div>Jan Tulak<br></div><a href="mailto:jtulak@redhat.com" target="_blank">jtulak@redhat.com</a> / <a href="mailto:jan@tulak.me" target="_blank">jan@tulak.me</a></div></div></div></div>
</div></div>