Re: POINTER_ALIGNED_P (was: Re: CVS commit: src/sys)

2021-02-17 Thread Christos Zoulas
In article <5912ca9e-b4e7-423d-a45d-f4693d1c9...@zoulas.com>, Christos Zoulas wrote: >-=-=-=-=-=- Here's the final changes - Make ALIGNED_POINTER use __alignof(t) instead of sizeof(t). This is more correct because it works with non-primitive types and provides the ABI alignment for the

Re: fsync_range and O_RDONLY

2021-02-17 Thread Greg Troxel
David Holland writes: > Last year, fdatasync() was changed to allow syncing files opened > read-only, because that ceased to be prohibited by POSIX and something > apparently depended on it. I have a dim memory of this and mongodb. > However, fsync_range() was not also so changed. Should it

fsync_range and O_RDONLY

2021-02-17 Thread David Holland
Last year, fdatasync() was changed to allow syncing files opened read-only, because that ceased to be prohibited by POSIX and something apparently depended on it. However, fsync_range() was not also so changed. Should it have been? It's now inconsistent with fsync and fdatasync and it seems like