<div dir="ltr"><div>Hello,<br></div><div><br></div><div>I investigated cause of the low performance of the find command in the shared folder on a Linux guest.</div><div>I created a patch that returns the correct d_type in file_operations.iterator.</div><div>With this fix, `find /path/to/shared` gets significant performance improvement.</div><div>I tested this code in a Windows 7 and Mac OS X Yosemite hosts.</div><div><br></div><div>This patch is provided under the MIT license.</div><div><br></div><div>// before applying this patch</div><div>vagrant@debian-jessie:/vagrant/large-dir$ time find . > /dev/null</div><div><br></div><div>real  0m10.422s</div><div>user  0m0.060s</div><div>sys 0m5.068s</div><div><br></div><div>// after applying this patch</div><div>vagrant@debian-jessie:/vagrant/large-dir$ time find . > /dev/null</div><div><br></div><div>real  0m1.885s</div><div>user  0m0.036s</div><div>sys 0m0.644s</div><div><br></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Tatsuya Karino</div></div>
</div>