Bug#667965: #667965 - eatmydata: Does not properly handle fsync/fdatasync on invalid file handles

2016-10-18 Thread Phil Susi
On 10/18/2016 2:27 AM, Petter Reinholdtsen wrote: > [Petter Reinholdtsen] >> This make me believe libeatmydata should change to behave according to the >> POSIX specification. > > And just to make it more clear why I believe this. My understanding of > eatmydata > is that it should make the

Bug#667965: #667965 - eatmydata: Does not properly handle fsync/fdatasync on invalid file handles

2016-10-18 Thread Petter Reinholdtsen
[Petter Reinholdtsen] > This make me believe libeatmydata should change to behave according to the > POSIX specification. And just to make it more clear why I believe this. My understanding of eatmydata is that it should make the computer behave as normal while ignoring any calls to force file

Bug#667965: #667965 - eatmydata: Does not properly handle fsync/fdatasync on invalid file handles

2016-09-17 Thread Petter Reinholdtsen
Perhaps most interesting is the POSIX specification, which state that both fsync() and fdatasync() should return EBADF when passed an invalid file descriptor not open for writing. See http://pubs.opengroup.org/onlinepubs/009695399/functions/fsync.html > and

Bug#667965: #667965 - eatmydata: Does not properly handle fsync/fdatasync on invalid file handles

2014-12-14 Thread Phillip Susi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 12/13/2014 09:12 AM, Mattia Rizzolo wrote: On Fri, 15 Feb 2013 14:44:55 -0500 Phillip Susi ps...@ubuntu.com wrote: I think this is a bug in gnulib rather than eatmydata. fsync() can't be expected to report errors that may have happened when

Bug#667965: #667965 - eatmydata: Does not properly handle fsync/fdatasync on invalid file handles

2014-12-13 Thread Mattia Rizzolo
Control: reassign -1 libeatmydata1 On Fri, 15 Feb 2013 14:44:55 -0500 Phillip Susi ps...@ubuntu.com wrote: I think this is a bug in gnulib rather than eatmydata. fsync() can't be expected to report errors that may have happened when it doesn't actually try to do anything. In other words,