Re: umount and data is lost?

2011-11-05 Thread Daniel Shahaf
On Sunday, November 06, 2011 8:21 AM, "Amos Shapira" wrote: > On 6 November 2011 08:12, Diego wrote: > > * disk is umounted using system("umount /data"), and then I call from C to > > sync(); > > > > Why not a direct umount(2) call? Do you check the return value of system()?

Re: umount and data is lost?

2011-11-05 Thread Micha
On 06/11/2011 02:03, Ori Berger wrote: On 11/05/2011 05:12 PM, Diego wrote: Hi list, I am trying to debug this problem in a system I am developing: at some point I need to write a number to a file, and then

Re: umount and data is lost?

2011-11-05 Thread Ori Berger
On 11/05/2011 05:12 PM, Diego wrote: Hi list, I am trying to debug this problem in a system I am developing: at some point I need to write a number to a file, and then reboot via an external device the machine. That device will cut of the power for a moment, and the machine will power on again

Re: umount and data is lost?

2011-11-05 Thread shimi
On Sun, Nov 6, 2011 at 12:15 AM, Diego wrote: > Using nand, cache is meaninless here, writing time is ... millisecs? > > The actual writing time, you're probably correct. Who said the controller does not wait for some more data to be more efficient in writing (to avoid wear or increase write perf

Re: umount and data is lost?

2011-11-05 Thread Diego
On Saturday, November 05, 2011 11:22:04 PM shimi wrote: > > man 2 sync says: > BUGS >According to the standard specification (e.g., POSIX.1-2001), > sync() schedules the writes, >but may return before the actual writing is done. However, since > version 1.3.20 Linux does >

Re: umount and data is lost?

2011-11-05 Thread shimi
On Sat, Nov 5, 2011 at 11:12 PM, Diego wrote: > Hi list, > > I am trying to debug this problem in a system I am developing: > > at some point I need to write a number to a file, and then reboot via an > external device the machine. That device will cut of the power for a > moment, > and the machi

Re: umount and data is lost?

2011-11-05 Thread Amos Shapira
On 6 November 2011 08:12, Diego wrote: > Hi list, > > I am trying to debug this problem in a system I am developing: > > at some point I need to write a number to a file, and then reboot via an > external device the machine. That device will cut of the power for a > moment, > and the machine will

umount and data is lost?

2011-11-05 Thread Diego
Hi list, I am trying to debug this problem in a system I am developing: at some point I need to write a number to a file, and then reboot via an external device the machine. That device will cut of the power for a moment, and the machine will power on again (this is to overcome a fault we cou

Re: Scheduling a Meeting in a Cafe or Restaurant

2011-11-05 Thread Dotan Cohen
2011/11/5 Shachar Shemesh : > On 11/05/2011 08:12 PM, Dotan Cohen wrote: > > On Thu, Nov 3, 2011 at 20:00, Tzafrir Cohen wrote: > > Now I'm confused. Smoke signals can only be used on a face-to-face > meeting nowadays, right? > > Shlomi is in Tel Aviv, that is in the west of the country. As we are

Re: Scheduling a Meeting in a Cafe or Restaurant

2011-11-05 Thread Shachar Shemesh
On 11/05/2011 08:12 PM, Dotan Cohen wrote: > On Thu, Nov 3, 2011 at 20:00, Tzafrir Cohen wrote: >> Now I'm confused. Smoke signals can only be used on a face-to-face >> meeting nowadays, right? >> > Shlomi is in Tel Aviv, that is in the west of the country. As we are > entering Autumn, with westwa

Re: Scheduling a Meeting in a Cafe or Restaurant

2011-11-05 Thread Daniel Shahaf
On Saturday, November 05, 2011 3:43 PM, "Shlomi Fish" wrote: > On Thu, 03 Nov 2011 19:01:32 +0200 > "Daniel Shahaf" wrote: > > You might want to clarify what it would be about and why it can't be > > held over phone or instant messaging or smoke signals. > > > > The meeting would be about seve

Re: Scheduling a Meeting in a Cafe or Restaurant

2011-11-05 Thread Dotan Cohen
On Thu, Nov 3, 2011 at 20:00, Tzafrir Cohen wrote: > Now I'm confused. Smoke signals can only be used on a face-to-face > meeting nowadays, right? > Shlomi is in Tel Aviv, that is in the west of the country. As we are entering Autumn, with westward winds, Shlomi can _receive_ smoke signals but hi

Re: Scheduling a Meeting in a Cafe or Restaurant

2011-11-05 Thread Shlomi Fish
On Thu, 03 Nov 2011 19:01:32 +0200 "Daniel Shahaf" wrote: > On Thursday, November 03, 2011 6:16 PM, "Shlomi Fish" > wrote: > > I don't see why a real-life meeting of people who share similar > > interests should be disallowed. > > That's the first time you even hinted at what the meeting would