{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/rocksdb/issues/583","labels_url":"https://api.github.com/repos/facebook/rocksdb/issues/583/labels{/name}","comments_url":"https://api.github.com/repos/facebook/rocksdb/issues/583/comments","events_url":"https://api.github.com/repos/facebook/rocksdb/issues/583/events","html_url":"https://github.com/facebook/rocksdb/issues/583","id":68793728,"number":583,"title":"fallocate test in build_detect_patform is broken on Centos 6","user":{"login":"pshareghi","id":7822007,"avatar_url":"https://avatars.githubusercontent.com/u/7822007?v=3","gravatar_id":"","url":"https://api.github.com/users/pshareghi","html_url":"https://github.com/pshareghi","followers_url":"https://api.github.com/users/pshareghi/followers","following_url":"https://api.github.com/users/pshareghi/following{/other_user}","gists_url":"https://api.github.com/users/pshareghi/gists{/gist_id}","starred_url":"https://api.github.com/users/pshareghi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pshareghi/subscriptions","organizations_url":"https://api.github.com/users/pshareghi/orgs","repos_url":"https://api.github.com/users/pshareghi/repos","events_url":"https://api.github.com/users/pshareghi/events{/privacy}","received_events_url":"https://api.github.com/users/pshareghi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-15T21:44:28Z","updated_at":"2015-04-15T21:44:28Z","closed_at":null,"body":"When building Rocksdb on Centos 6, we noticed that the ROCKSDB_FALLOCATE_PRESENT flag is never present, although our kernel support fallocate and the FALLOC_FL_PUNCH_HOLE flag.\r\n\r\nThe reason for test failure is that FALLOC_FL_PUNCH_HOLE is defined in ```linux/falloc.h``` which is missing from the test in build_detect_platform script\r\n```\r\n#include <fcntl.h>\r\nint main() {\r\n  int fd = open(\"/dev/null\", 0);\r\n  fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, 0, 1024);\r\n}\r\n```\r\n\r\nI will add a separate pull request to merge our fix."}}