Re: [ntfs-3g-devel] fsync() does not write out the file to the disk (Sameer Naik)

2010-09-16 Thread Sameer Naik
Please find attached. P.S. I have added the fflush () call before the fsync () call. Regards ~Sameer 2010/9/15 Jean-Pierre André : > Hi, > > JD wrote: >> >> >> On 09/15/2010 03:21 AM, ntfs-3g-devel-requ...@lists.sourceforge.net wrote: >> >>> Re: fsync() does not write out the file to the disk (Sa

Re: [ntfs-3g-devel] fsync() does not write out the file to the disk (Sameer Naik)

2010-09-16 Thread Sameer Naik
Here is the test i performed: To test whether the file is being written out to the disk, - i mount a usb thumb drive - copy a file into the mounted usb partition and call fsync() before closing the fd - when the process is complete, disconnect the pen drive (without umount'ing) - connect and mount

Re: [ntfs-3g-devel] fsync() does not write out the file to the disk (Sameer Naik)

2010-09-16 Thread JD
On 09/16/2010 09:42 AM, Sameer Naik wrote: > Thanks i will try it out. > > On Thu, Sep 16, 2010 at 9:59 PM, JD wrote: >> >> On 09/16/2010 03:00 AM, Sameer Naik wrote: >>> Please find attached. >>> P.S. I have added the fflush () call before the fsync () call. >>> >>> Regards >>> ~Sameer >> Well,

Re: [ntfs-3g-devel] fsync() does not write out the file to the disk (Sameer Naik)

2010-09-16 Thread JD
On 09/16/2010 01:21 PM, JD wrote: > > > On 09/16/2010 09:42 AM, Sameer Naik wrote: >> Thanks i will try it out. >> >> On Thu, Sep 16, 2010 at 9:59 PM, JD wrote: >>> >>> On 09/16/2010 03:00 AM, Sameer Naik wrote: Please find attached. P.S. I have added the fflush () call before the fsyn