Re: 64 Bits from Larry McVoy

Marc Singer (elf@netcom.com)
Mon, 4 Nov 1996 15:10:59 -0800 (PST)

> The first thing to notice is that I have divided GB by 2. If I don't do
> this the program fails after making a 1G file, and I get a nice printk()
> from the ext2fs. So I divided by two and reran. Now I can make a very
> large file, but something is still wrong:
>
> total 76
> -rwxrwxrwx 1 jlnance users 14378 Nov 4 07:39 a.out*
> -rw-rw-rw- 1 jlnance users 544 Nov 4 07:38 big.c
> -r-xrwS--T 1 jlnance users 10200547329 Nov 4 07:43 bigfile*
>
> I don't know how the S--T bits got set on bigfile, but I certainly did
> not mean to do it. I have also found that if I do much in the directory
> containing bigfile, its size will eventually shrink down to 1.6G.

I think there is a bug in your code. If you examine the man page for
open, there is a form with three arguments. When you create files, it
is a good idea to pass the third parameter explicitly. It's the mode
for the new file. ;-)

-- Marc Singer

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com



Feedback | Store | News | Support | Product Errata | About Us | Linux Info | Search | JumpWords
No Frames | Show Frames

Copyright © 1995-1997 Red Hat Software. Legal notices