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 (Sameer Naik) >> > My current installation of ntfs-3g-2010.8.8-2.fc13.i686 does not exhibit > this behaviour, albeit, I am not using my own C program to > copy a file to an ntfs partition. I am just using /bin/cp. > I have my windows xp partition mounted as /sda1. >
Maybe because cp does a fsync() (I have not checked). > $ ls -l /tmp/nss-deplists.txt > -rw-r--r-- 1 jd jd 72247 Sep 15 08:10 /tmp/nss-deplists.txt > $ cp /tmp/nss\-deplists.txt /sda1/Tmp; sudo umount /sda1; sudo mount > /sda1; ls -l /sda1/Tmp/nss* > -rwxrwxrwx 1 jd jd 72247 Sep 15 08:32 /sda1/Tmp/nss-deplists.txt > > Where can I find Sameer's test program to see the problem for myself? > It was attached to his original post on this list (which I received on Aug 24 1:03pm - must mean 11:03 am UTC). Just add a fflush(outfile) before the fsync(). If you cannot get it, ask again. Regards Jean-Pierre ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ ntfs-3g-devel mailing list ntfs-3g-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel