Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Uncle George <gatgul@voicenet.com>
To: axp-list@redhat.com, Remy.Card@linux.org,
	linux-kernel@vger.rutgers.edu, Wes Bauske <wsb@paralleldata.com>
Subject: files >4gig [WAS Adding more than 8 swap partitions]
Date: Fri, 04 Jun 1999 19:45:12 -0400	[thread overview]
Message-ID: <37586508.6CA0E9B5@voicenet.com> (raw)
In-Reply-To: 374B1D98.C57BACFB@voicenet.com

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 ) .
YOU ALSO NOW HAVE A CORRUPT / BUSTED-SUPER-BLOCK in the partition.
fsck wants to use an alternate superblock, and suggests using 8192(?), which
doesn't work. :-\
this is the little pgm used to create the 17gig sparse file.
So I guess its not a 2/4gig boundary problem anymore.
gat

BTW it may be that fsck cant handle it ( redhat 5.0 vintage ), but I dunno at the
moment :( It just at reboot time, i always force a fsck. Removeing the 17gig file
didn't help :-(


Pgm used:
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
/********************  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);
        }
}


Uncle George wrote:

> Gee, looks like 15gig.
>
> Ok, is this a feature of 2.2.x ? right ? or on on a diff os?
>
> Wes Bauske wrote:
>
> > Uncle George wrote:
> > >
> > > I dont know what u mean by "capable", but partition size may be >2gig ( at
> > > the time I had only a 4 gig drive ), but file size was still 2gig.  This was
> > > with a 2.0linux on a redhat 4.0 compilation CD for the alpha.
> > > Discussions since then about this limitation, only suggested that it was
> > > possible to do, but not yet done so. After ALL why hold back?
> > > Now u say its always been here ? I'd like to believe u, but my empirical
> > > experience says thats just  not true.
> > >
> > > ANYBODY out there can create a file >2gig on linux/alpha ?
> > > gat
> >
> > Sure.
> >
> > -rw-r--r--   1 wsb      pds      15039538080 May 16 23:01 junk
> >
> > Just having troubles lseek()'ing into it past 2GB. Still
> > testing though so hopefully I can determine if it's
> > something I did wrong, or glibc/kernel.


  parent reply	other threads:[~1999-06-05  0:32 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.3.96.990520142733.30572A-100000@ferret.lmh.ox.ac.uk>
1999-05-20 22:00 ` Adding more than 8 swap partitions Peter Rival
1999-05-21  1:41   ` Wes Bauske
1999-05-23 17:02     ` Richard Henderson
1999-05-23 20:28       ` Wes Bauske
1999-05-23 21:13         ` warp
1999-05-23 22:33           ` Wes Bauske
1999-05-24  9:27             ` Sean Hunter
1999-05-24 11:43               ` Uncle George
1999-05-24 13:13                 ` Dr . David Alan Gilbert
1999-05-24 14:52                   ` Speedracer
1999-05-24 17:00                     ` Sean Hunter
1999-05-24 20:10                       ` Wes Bauske
1999-05-25  1:05                   ` Uncle George
1999-05-25  1:03                     ` Matti Aarnio
1999-05-25  2:18                       ` LFS support (was: Re: Adding more than 8 swap partitions) Wes Bauske
1999-05-25 10:11                       ` Adding more than 8 swap partitions Uncle George
1999-05-25 19:39                         ` Wes Bauske
1999-05-25 20:49                           ` Michal Jaegermann
1999-05-25 22:00                           ` Uncle George
1999-05-26  3:38                             ` Wes Bauske
1999-05-26  9:48                               ` Uncle George
1999-06-04 23:45                             ` Uncle George [this message]
1999-06-05  2:50                               ` files >4gig [WAS Adding more than 8 swap partitions] Wes Bauske
1999-06-05  5:51                               ` Matti Aarnio
1999-06-05  9:08                                 ` Uncle George
1999-06-05 12:53                                   ` PC164 and the EV56 21164 CPU Darren Breeze
     [not found]                               ` <19990605132923.A95@bug.ucw.cz>
1999-06-06 10:12                                 ` files >4gig -- 2.2.9 is corrupting disk! Uncle George
1999-05-25  8:22                     ` Adding more than 8 swap partitions Dr . David Alan Gilbert
1999-05-26  1:25                       ` Peter Rival
1999-05-21  8:19   ` Dr . David Alan Gilbert
1999-05-21 12:52     ` Peter Rival
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox