Re: [PATCH] libfdisk: fsync(2) after writing partition data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux