On Tue, Jan 02, 2018 at 08:45:04PM +0000, Sami Kerola wrote: > In reply to reference comment commit: > > It would be nice to have something more elegant than sleep, any idea? > > Adding fsync(2) might be superficial when writing to device file, but Well, we use fsync() before close(). I don't think we want to use fsync() after a separate write as we use more than one write pretty often. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html