[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: max file size.
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: max file size.
- From: Matt Riben <matter_(_at_)_superlink_(_dot_)_net>
- Date: Tue, 24 Nov 1998 09:21:53 -0500 (EST)
due to the lack of responses to my previous post, i think i need to make
it more clear what im trying to do...
% dd if=/dev/zero of=/var/vnd/pd0 bs=1k count=4096000
# vnconfig -v -c svnd1 /var/vnd/pd0
i can create a 4gig file with dd, and after using vnconfig i can label it
in disklabel... only when i try to newfs it...
# newfs /dev/rsvnd1d
write error: 8191999
wtfs: File too large
#limit
cputime unlimited
filesize unlimited
datasize 1048576 kbytes
stacksize 32768 kbytes
coredumpsize unlimited
memoryuse unlimited
descriptors 1772
memorylocked unlimited
maxproc 532
i also checked the the getrlimit(2) page.
RLIMIT_FSIZE The largest size (in bytes) file that may be created.
im confused though, i can create the file with dd, no problem... i just
cant newfs it...
i think newfs is dying here:
/usr/src/sbin/newfs/mkfs.c
1182 n = write(fso, bf, size);
1183 if (n != size) {
1184 printf("write error: %ld\n", bno);
1185 perror("wtfs");
1186 exit(36);
1187 }
this is 2.3 on an i386, if that makes a difference... any suggestions on
what im doing wrong here would be great...
thank you.
-matt
On Mon, 23 Nov 1998, Matt Riben wrote:
> in the ERRORS section of the man page for write(2) it mentions EFBIG...
>
> [EFBIG] An attempt was made to write a file that exceeds the pro-
> cess's file size limit or the maximum file size.
>
> only im not sure where that limit is set ?... i tried the shell built-in
> 'limit', sysctl, and had a look at the kernel config file... any
> suggestions where i should be looking to raise this limit ?...
>
> thank you.
>
> -matt
>
Visit your host, monkey.org