Copy fsync() defines into test_fsync.c, someday place them in an include.
Copy fsync() defines into test_fsync.c, someday place them in an
include.

Propery align for O_DIRECT.

Check for write()/fsync() failures.

techdragon/Postgres-XL,atris/gpdb,yuanzhao/gpdb,zeroae/postgres-xl,snaga/postgres-xl,pavanvd/postgres-xl,arcivanov/postgres-xl,arcivanov/postgres-xl,lpetrov-pivotal/gpdb,0x0FFF/gpdb,foyzur/gpdb,tpostgres-projects/tPostgres,kaknikhil/gpdb,jmcatamney/gpdb,chrishajas/gpdb,ovr/postgres-xl,rubikloud/gpdb,yuanzhao/gpdb,Chibin/gpdb,adam8157/gpdb,techdragon/Postgres-XL,yuanzhao/gpdb,CraigHarris/gpdb,greenplum-db/gpdb,royc1/gpdb,janebeckman/gpdb,tangp3/gpdb,tpostgres-projects/tPostgres,greenplum-db/gpdb,Chibin/gpdb,rvs/gpdb,xinzweb/gpdb,lpetrov-pivotal/gpdb,postmind-net/postgres-xl,rvs/gpdb,tpostgres-projects/tPostgres,lpetrov-pivotal/gpdb,royc1/gpdb,Chibin/gpdb,zeroae/postgres-xl,ashwinstar/gpdb,0x0FFF/gpdb,foyzur/gpdb,cjcjameson/gpdb,zaksoup/gpdb,yuanzhao/gpdb,cjcjameson/gpdb,zaksoup/gpdb,oberstet/postgres-xl,Quikling/gpdb,lintzc/gpdb,50wu/gpdb,ahachete/gpdb,jmcatamney/gpdb,zaksoup/gpdb,kaknikhil/gpdb,ahachete/gpdb,jmcatamney/gpdb,CraigHarris/gpdb,randomtask1155/gpdb,edespino/gpdb,oberstet/postgres-xl,ashwinstar/gpdb,rubikloud/gpdb,atris/gpdb,ahachete/gpdb,tangp3/gpdb,ashwinstar/gpdb,0x0FFF/gpdb,yuanzhao/gpdb,cjcjameson/gpdb,royc1/gpdb,adam8157/gpdb,edespino/gpdb,atris/gpdb,chrishajas/gpdb,atris/gpdb,foyzur/gpdb,adam8157/gpdb,rvs/gpdb,xuegang/gpdb,xinzweb/gpdb,cjcjameson/gpdb,xinzweb/gpdb,janebeckman/gpdb,edespino/gpdb,rubikloud/gpdb,postmind-net/postgres-xl,cjcjameson/gpdb,50wu/gpdb,lpetrov-pivotal/gpdb,ahachete/gpdb,0x0FFF/gpdb,atris/gpdb,rvs/gpdb,janebeckman/gpdb,greenplum-db/gpdb,xuegang/gpdb,Postgres-XL/Postgres-XL,royc1/gpdb,lintzc/gpdb,zeroae/postgres-xl,kaknikhil/gpdb,techdragon/Postgres-XL,ahachete/gpdb,greenplum-db/gpdb,zaksoup/gpdb,CraigHarris/gpdb,yazun/postgres-xl,Chibin/gpdb,jmcatamney/gpdb,50wu/gpdb,xinzweb/gpdb,rubikloud/gpdb,0x0FFF/gpdb,tpostgres-projects/tPostgres,yuanzhao/gpdb,arcivanov/postgres-xl,greenplum-db/gpdb,jmcatamney/gpdb,foyzur/gpdb,randomtask1155/gpdb,cjcjameson/gpdb,yuanzhao/gpdb,cjcjameson/gpdb,ovr/postgres-xl,ashwinstar/gpdb,jmcatamney/gpdb,pavanvd/postgres-xl,CraigHarris/gpdb,tangp3/gpdb,atris/gpdb,ashwinstar/gpdb,tangp3/gpdb,lintzc/gpdb,kmjungersen/PostgresXL,kaknikhil/gpdb,rubikloud/gpdb,kaknikhil/gpdb,kmjungersen/PostgresXL,kmjungersen/PostgresXL,CraigHarris/gpdb,adam8157/gpdb,janebeckman/gpdb,arcivanov/postgres-xl,zaksoup/gpdb,oberstet/postgres-xl,ahachete/gpdb,rvs/gpdb,CraigHarris/gpdb,ovr/postgres-xl,rvs/gpdb,lisakowen/gpdb,chrishajas/gpdb,chrishajas/gpdb,rvs/gpdb,rvs/gpdb,royc1/gpdb,greenplum-db/gpdb,pavanvd/postgres-xl,royc1/gpdb,yazun/postgres-xl,zeroae/postgres-xl,xuegang/gpdb,0x0FFF/gpdb,randomtask1155/gpdb,lisakowen/gpdb,lpetrov-pivotal/gpdb,Quikling/gpdb,ahachete/gpdb,kaknikhil/gpdb,zaksoup/gpdb,kaknikhil/gpdb,cjcjameson/gpdb,lintzc/gpdb,snaga/postgres-xl,xuegang/gpdb,lpetrov-pivotal/gpdb,tangp3/gpdb,Quikling/gpdb,janebeckman/gpdb,rubikloud/gpdb,jmcatamney/gpdb,pavanvd/postgres-xl,edespino/gpdb,lisakowen/gpdb,janebeckman/gpdb,lintzc/gpdb,randomtask1155/gpdb,xinzweb/gpdb,yazun/postgres-xl,tangp3/gpdb,postmind-net/postgres-xl,chrishajas/gpdb,Chibin/gpdb,ashwinstar/gpdb,Chibin/gpdb,atris/gpdb,50wu/gpdb,techdragon/Postgres-XL,0x0FFF/gpdb,lisakowen/gpdb,Quikling/gpdb,edespino/gpdb,cjcjameson/gpdb,tpostgres-projects/tPostgres,yuanzhao/gpdb,xuegang/gpdb,greenplum-db/gpdb,rvs/gpdb,lintzc/gpdb,yuanzhao/gpdb,ovr/postgres-xl,randomtask1155/gpdb,lisakowen/gpdb,royc1/gpdb,adam8157/gpdb,foyzur/gpdb,lintzc/gpdb,lisakowen/gpdb,janebeckman/gpdb,tangp3/gpdb,pavanvd/postgres-xl,randomtask1155/gpdb,0x0FFF/gpdb,Postgres-XL/Postgres-XL,oberstet/postgres-xl,Quikling/gpdb,Quikling/gpdb,xuegang/gpdb,xuegang/gpdb,tangp3/gpdb,randomtask1155/gpdb,lisakowen/gpdb,kaknikhil/gpdb,Postgres-XL/Postgres-XL,janebeckman/gpdb,ashwinstar/gpdb,janebeckman/gpdb,kaknikhil/gpdb,lintzc/gpdb,Quikling/gpdb,adam8157/gpdb,Quikling/gpdb,Quikling/gpdb,chrishajas/gpdb,lintzc/gpdb,cjcjameson/gpdb,rubikloud/gpdb,ashwinstar/gpdb,50wu/gpdb,chrishajas/gpdb,snaga/postgres-xl,foyzur/gpdb,oberstet/postgres-xl,janebeckman/gpdb,foyzur/gpdb,postmind-net/postgres-xl,kmjungersen/PostgresXL,zeroae/postgres-xl,techdragon/Postgres-XL,xinzweb/gpdb,CraigHarris/gpdb,snaga/postgres-xl,atris/gpdb,rubikloud/gpdb,yazun/postgres-xl,Postgres-XL/Postgres-XL,chrishajas/gpdb,snaga/postgres-xl,edespino/gpdb,arcivanov/postgres-xl,edespino/gpdb,ovr/postgres-xl,adam8157/gpdb,Chibin/gpdb,edespino/gpdb,ahachete/gpdb,rvs/gpdb,50wu/gpdb,lpetrov-pivotal/gpdb,kaknikhil/gpdb,yuanzhao/gpdb,Quikling/gpdb,xuegang/gpdb,Postgres-XL/Postgres-XL,adam8157/gpdb,arcivanov/postgres-xl,zaksoup/gpdb,lpetrov-pivotal/gpdb,CraigHarris/gpdb,xuegang/gpdb,xinzweb/gpdb,royc1/gpdb,Chibin/gpdb,50wu/gpdb,postmind-net/postgres-xl,zaksoup/gpdb,CraigHarris/gpdb,Chibin/gpdb,edespino/gpdb,greenplum-db/gpdb,xinzweb/gpdb,lisakowen/gpdb,yazun/postgres-xl,edespino/gpdb,jmcatamney/gpdb,50wu/gpdb,kmjungersen/PostgresXL,randomtask1155/gpdb,Chibin/gpdb,foyzur/gpdb