fix private api issue with fdatasync
fix possible file download problem in example app