I didn't suggest that a sync should close files but that it should flush the files. Easy enough to fix - one line call to flush all. -- Charles On Sep 12, 2009 3:06 AM, wrote: Sorry , sent from wrong account. Charles Manning wrote: > resend because list was down > On Wednesday 09 September 2009 22:30:28 Voser, Peter wrote: > >> Hi all, >> >> When I modify a file, invoke sync and unplug the power of my device, the >> expected file content has been saved, but the time stamp is still the old >> one (without fclose invocation). >> >> When I do the same with a friendly reboot, the file content is there *and* >> the time stamp has been updated (still without fclose invocation). >> >> I would expect the file stamp to be updated with sync, too. >> >> Is this a bug or on purpose? >> > > Hi Peter > > At present a file system sync just snapshots the file system (ie does a > checkpoint) . It does not flush the headers for the individual files. > A friendly reboot closes all the files > man sync: DESCRIPTION Force changed blocks to disk, update the super block. I've never seen that sync closes open files so I see no expectation for that but if I'm reading the man page correctly it seems the headers should be put out too. It does not seem to be a case where an individual fs should decide what the "desired" functionality is. best regards. > Is this a bug? Well I guess it depends on the desired functionality. > > -- CHarles > > > > _______________________________________________ > yaffs mailing list > yaffs@lists.aleph1.co.uk > http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs > > > _______________________________________________ yaffs mailing list yaffs@lists.aleph1.co.uk http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs