linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "lode leroy" <lode_leroy@hotmail.com>
To: linux-kernel@vger.kernel.org
Subject: 2.5.70 lockup while write()ing to /dev/hda1
Date: Wed, 06 Aug 2003 14:32:19 +0200	[thread overview]
Message-ID: <Sea2-F12XkCBewSQRg600027013@hotmail.com> (raw)

I just want to report a problem I saw on linux 2.5.70:
(since I have a workaround, I do not intend to debug this further)

the following program locks up the computer.
sometimes this has happened after about 16MB,
sometimes after about 64MB...

main()
{
    int f = open("/dev/hda1", O_RDWR);
    char buffer[8192];
    for(i=0;1;i++) {
       printf("%d\r", i);
       write(f, buffer, sizeof(buffer);
       /* fsync(f); */
    }
    close(f)
}

when using adding the fsync(), all goes fine!

_________________________________________________________________
Receive your Hotmail & Messenger messages on your mobile phone with MSN 
Mobile http://www.msn.be/gsm/smsservices


             reply	other threads:[~2003-08-06 12:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-06 12:32 lode leroy [this message]
2003-08-06 12:47 ` 2.5.70 lockup while write()ing to /dev/hda1 Michael Buesch
2003-08-06 13:38   ` Andreas Schwab
2003-08-06 13:05 ` Felipe Alfaro Solana
2003-08-06 14:50 lode leroy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Sea2-F12XkCBewSQRg600027013@hotmail.com \
    --to=lode_leroy@hotmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).