Skip to content
Snippets Groups Projects
Commit a7276dd8 authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #11059: O_DIRECT requires 4k alignment on Lustre

parent 3681cc1a
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,9 @@ namespace LOFAR ...@@ -43,7 +43,9 @@ namespace LOFAR
virtual size_t size(); virtual size_t size();
// formally, the required alignment for O_DIRECT is determined by the file system // formally, the required alignment for O_DIRECT is determined by the file system
static const size_t alignment = 512; // for local disks, 512 is a typical default.
// for Lustre, 4096 is required.
static const size_t alignment = 4096;
private: private:
// writes the remainder, padded with zeros if needed. Returns the number of zero-pad bytes written. // writes the remainder, padded with zeros if needed. Returns the number of zero-pad bytes written.
size_t writeRemainder(); size_t writeRemainder();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment