<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Jun 13, 2012, at 2:32 PM, Konstantinos Smanis wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Tue, Jun 12, 2012 at 11:33 AM, Maarten De Meyer<br><<a href="mailto:de.meyer.maarten@gmail.com">de.meyer.maarten@gmail.com</a>> wrote:<br><blockquote type="cite"><br></blockquote><blockquote type="cite">This is an automatically generated e-mail. To reply, visit:<br></blockquote><blockquote type="cite"><a href="http://git.reviewboard.kde.org/r/105224/">http://git.reviewboard.kde.org/r/105224/</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Review request for kdelibs, Solid and Lukáš Tinkl.<br></blockquote><blockquote type="cite">By Maarten De Meyer.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Description<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">This patch mounts vfat filesystems (mostly usb devices) with the flush<br></blockquote><blockquote type="cite">option when using the UDisks backend. The hal backend already did this.<br></blockquote><blockquote type="cite">The flush option makes sure changes are written to the device immediately.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Please let me know it this should be implemented in an other (optional)<br></blockquote><blockquote type="cite">way or if this should be in the UDev rules directly.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">ps. I do not have commit rights.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Testing<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Compiled without error, mounted multiple devices without problems.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Bugs: 273792<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Diffs<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">solid/solid/backends/udisks/udisksstorageaccess.cpp (7d72a88)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">View Diff<br></blockquote><br>I tested the patch against 4.8.3, works as expected.<br><br>However, I too think that this option should be implemented somewhere<br>else in the stack (udisks/udev: whatever is most fit). Although a sane<br>default, you should be able to configure it more easily.<br></div></blockquote></div><br><div>I'm erring on the side that this smells of policy, which should NOT be hard coded, but rather site or host specified. If I'm a user, I might rather have my application's writer thread not block on write, but cache then write via the kernel, then so be it (yes, I understand the risk related if I remove the disk before the flush has occurred, but in this case, that's what umount is for, which calls flush before unmounting the filesystem.....</div><div><br></div><div>--</div><div>Gary L. Greene, Jr.<br>===============================================================<br>Developer and Project Lead for the AltimatOS open source project<br>See <a href="http://www.altimatos.com/">http://www.altimatos.com/</a> for more information<br>===============================================================<br><br></div></body></html>