From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 9898 invoked from network); 6 Jun 1999 11:08:09 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 6 Jun 1999 11:08:09 -0000 Received: from voicenet.com (mail12.voicenet.com [207.103.0.6]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id GAA32539 for ; Sun, 6 Jun 1999 06:21:05 -0400 Received: (qmail 5264 invoked from network); 6 Jun 1999 10:14:22 -0000 Received: from dialpool0211-pri.voicenet.com (HELO voicenet.com) (209.71.85.76) by mail12.voicenet.com with SMTP; 6 Jun 1999 10:14:22 -0000 Sender: gat@mail.redhat.com Message-ID: <375A4984.A3CD7A48@voicenet.com> Date: Sun, 06 Jun 1999 06:12:20 -0400 From: Uncle George Organization: Big Endian X-Mailer: Mozilla 4.07 [en] (X11; I; Linux 2.0.36 i686) MIME-Version: 1.0 To: Pavel Machek , axp-list@redhat.com Subject: Re: files >4gig -- 2.2.9 is corrupting disk! References: <19990525010359Z92392-10847+89@mea.tmt.tele.fi> <374A776B.CC8661AA@voicenet.com> <374AFC56.EC206FB8@paralleldata.com> <374B1D98.C57BACFB@voicenet.com> <37586508.6CA0E9B5@voicenet.com> <19990605132923.A95@bug.ucw.cz> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit If ur corruption is the bogus 'mode' of the file, than that is not true. If ur fsck ( e2fcsk) fails, then u need to upgrade ( ie to the one from RH 6.0 sources). gat Pavel Machek wrote: > Hi! > > > So I created a 17 gig file using Linux 2.2.9 & a file in /tmp. Interestingly > > enough at 17 gig I get an error 22 ( still have space & inodes > > available ) . > > Reproduced on my 2.2.9/i386. Program does something different than it > claims to (due to limited ranges of ints etc), but causes > corruption. When I did ls -l c after run I saw rwx-----T or something > this crazy. I tried it twice, worked both times. > > If you don't want to trash your harddisk, be sure to sync; killall > bdflush; sync; run test; look what it caused and then _POWER OFF > WITHOUT SYNCING_. > > > #include > > #include > > #include > > #include > > /******************** BE CAREFULL ******************************/ > > /* This can kill the superblock on the partition the file is written on */ > > /* Which may not be recoverable gat 6/5/99 */ > > /******************** BE CAREFULL *******************************/ > > > > main() > > { > > long l,r; > > int e, w; > > int fd; > > fd = open("c",O_RDWR|O_CREAT|O_TRUNC); > > > > for ( l=0; l < 64000000000L; l+=1000000) { > > r = lseek(fd, l, 0); > > w = write(fd,"a",1); > > fprintf(stderr,"r=%lx, w=%d, l=%ld\n", r,w,l); > > } > > } > > -- > I'm really pavel@ucw.cz. Look at http://195.113.31.123/~pavel. Pavel > Hi! I'm a .signature virus! Copy me into your ~/.signature, please!