files > 1GB

I.Ioannou roryt at hol.gr
Tue Mar 2 17:51:14 EET 1999


Kamia idea giati tha trelathw. Exw dyo linux paromoia. linux-2.0.36, 
gcc-2.7.2.3, fileutils-3.12. Dinw : 

dd if=/dev/zero of=file.txt count=1030k bs=1024

Sto men ena mou fiaxnei to arxeio kanonika (mexri ta 2Gb), sto allo mou
epistrefei file too large (EFBIG) akribws sto 1Gb.

Koitw sta sources tou kernel (fs/ext2/file.c) kai exei : 

static int ext2_file_write (struct inode * inode, struct file * filp,
                            const char * buf, int count)
{
        const loff_t two_gb = 2147483647;

 kai ligo parakatw :


        while (count > 0) {
                if (pos > two_gb) {
                        if (!written)
                                written = -EFBIG;
                        break;
                }

pou shmainei oti prepei na "skasei" akribws sta 2Gb kai oxi sto ena.
To exei sinantisei kaneis ? Kamia idea ? 

TIA

I.Ioannou <roryt at hol.gr>
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list