linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Seeking recommendation on whether a bahviour is right/wrong
@ 2016-08-19  5:26 Ajay Garg
  2016-08-19 10:34 ` One Thousand Gnomes
  0 siblings, 1 reply; 2+ messages in thread
From: Ajay Garg @ 2016-08-19  5:26 UTC (permalink / raw)
  To: linux-kernel

Hi All.

I have been trying to debug a strange issue occurring on a "mostly
mainline"-linux-kernel, running on a proprietary embedded-platform.

I still haven't been able to zero-on the issue with 100% confirmation,
but I think the following might be happening ::

a)
A C-user-application is running, and a file is being written, one byte
at a time.
Let's say the file-name being written is "file1.txt"

b)
There's another file "file2.txt", which is in absolutely sane-state
(no open file-descriptors, etc.)

c)
Now, a cron-script reboots the machine via /sbin/reboot "abruptly"
(i.e. without closing the open-file-descriptor of "file1.txt").

d)
When the machine comes up, we find that "file2.txt" is corrupted.


In this behaviour, is the kernel at fault?
Or the cron-job is the culprit for abrupt reboot?



Thanks and Regards,
Ajay

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Seeking recommendation on whether a bahviour is right/wrong
  2016-08-19  5:26 Seeking recommendation on whether a bahviour is right/wrong Ajay Garg
@ 2016-08-19 10:34 ` One Thousand Gnomes
  0 siblings, 0 replies; 2+ messages in thread
From: One Thousand Gnomes @ 2016-08-19 10:34 UTC (permalink / raw)
  To: Ajay Garg; +Cc: linux-kernel

On Fri, 19 Aug 2016 10:56:37 +0530
Ajay Garg <ajaygargnsit@gmail.com> wrote:

> Hi All.
> 
> I have been trying to debug a strange issue occurring on a "mostly
> mainline"-linux-kernel, running on a proprietary embedded-platform.

Then you should talk to whoever provided you that kernel, and probably
also read up on journalling types for the file system, fsync, fdatasync.


Alan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-19 10:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-19  5:26 Seeking recommendation on whether a bahviour is right/wrong Ajay Garg
2016-08-19 10:34 ` One Thousand Gnomes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).