Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1466007
| From | Ajay Garg <ajaygargnsit@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Seeking recommendation on whether a bahviour is right/wrong |
| Date | 2016-08-19 07:30 +0200 |
| Message-ID | <s7Kxs-1qQ-29@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Seeking recommendation on whether a bahviour is right/wrong Ajay Garg <ajaygargnsit@gmail.com> - 2016-08-19 07:30 +0200 Re: Seeking recommendation on whether a bahviour is right/wrong One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2016-08-19 12:40 +0200
csiph-web