* [9fans] kfs file size limit?
@ 2003-04-23 3:29 okamoto
2003-04-23 4:44 ` Geoff Collyer
0 siblings, 1 reply; 6+ messages in thread
From: okamoto @ 2003-04-23 3:29 UTC (permalink / raw)
To: 9fans
Does kfs has file size limit to 64MB?
Kenji
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] kfs file size limit?
2003-04-23 3:29 [9fans] kfs file size limit? okamoto
@ 2003-04-23 4:44 ` Geoff Collyer
2003-04-23 5:28 ` okamoto
0 siblings, 1 reply; 6+ messages in thread
From: Geoff Collyer @ 2003-04-23 4:44 UTC (permalink / raw)
To: 9fans
The short answer: yes, if you are using a block size of 1024 bytes.
The fix: don't do that, use a bigger block size.
The long answer, which I may have sent to the list before:
---
the maximum size of a single file in a kfs (or plan 9 file server)
file system is determined by the file system block size (there are single
and double indirect blocks but no triples).
the maximum size is approximately (blocksize/512)*8 megabytes or, more
accurately, (6+x+x)*d bytes, where d=blocksize-8 and x=d/4:
blksize max. file size in MB in bytes
512 7.69 8068032
1024 62.76 65812416
1536 213.20 223564736
2048 507.02 531656640
2560 992.22 1040419776
3072 1716.79 1800185792
3584 2728.73 2861286336
4096 4076.05 4274053056
4608 5806.74 6088817600
5120 7968.81 8355911616
5632 10610.26 11125666752
6144 13779.08 14448414656
6656 17523.27 18374486976
7168 21890.84 22954215360
7680 26929.78 28237931456
8192 32688.10 34275966912
8704 39213.80 41118653376
9216 46554.87 48816322496
In addition, at the time of writing (April 1999), the file server and kfs
use 32-bit integers internally to hold file sizes and offsets
and some of those integers are signed, so the practical limit on
the size of a single file is 2ⁱ - 1 bytes (roughly 2GB).
---
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] kfs file size limit?
2003-04-23 4:44 ` Geoff Collyer
@ 2003-04-23 5:28 ` okamoto
2003-04-23 6:11 ` Geoff Collyer
2003-04-23 6:15 ` Geoff Collyer
0 siblings, 2 replies; 6+ messages in thread
From: okamoto @ 2003-04-23 5:28 UTC (permalink / raw)
To: 9fans
> The short answer: yes, if you are using a block size of 1024 bytes.
> The fix: don't do that, use a bigger block size.
Thanks,
I'm now constructing a old notebook kfs system, and using just
vanilla kfs, then, I met 64MB limit. So, how I can change the block
size of kfs file system?
Kenji
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] kfs file size limit?
2003-04-23 5:28 ` okamoto
@ 2003-04-23 6:11 ` Geoff Collyer
2003-04-23 6:15 ` Geoff Collyer
1 sibling, 0 replies; 6+ messages in thread
From: Geoff Collyer @ 2003-04-23 6:11 UTC (permalink / raw)
To: 9fans
Save the contents of the old kfs somewhere else, then run
disk/kfs -rb 4096 -f /dev/sdC0/fs
to use 4096-byte blocks.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] kfs file size limit?
2003-04-23 5:28 ` okamoto
2003-04-23 6:11 ` Geoff Collyer
@ 2003-04-23 6:15 ` Geoff Collyer
2003-04-23 9:24 ` okamoto
1 sibling, 1 reply; 6+ messages in thread
From: Geoff Collyer @ 2003-04-23 6:15 UTC (permalink / raw)
To: 9fans
On second thought, if the kfs is also the laptop's root file system,
boot the laptop using another file server as root (the way normal
diskless terminals boot), then ream the kfs as I suggested in my
previous message, then reload the kfs.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] kfs file size limit?
2003-04-23 6:15 ` Geoff Collyer
@ 2003-04-23 9:24 ` okamoto
0 siblings, 0 replies; 6+ messages in thread
From: okamoto @ 2003-04-23 9:24 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 163 bytes --]
Thank you very much, geoff.
I'm going to cry, because I used three days to install things into
this 2.1GB notebook. Anyway, I have to do it again.
Kenji
[-- Attachment #2: Type: message/rfc822, Size: 1925 bytes --]
From: Geoff Collyer <geoff@collyer.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] kfs file size limit?
Date: Tue, 22 Apr 2003 23:15:13 -0700
Message-ID: <9be0a310e443acc6cc6187237ad290a2@collyer.net>
On second thought, if the kfs is also the laptop's root file system,
boot the laptop using another file server as root (the way normal
diskless terminals boot), then ream the kfs as I suggested in my
previous message, then reload the kfs.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-04-23 9:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-23 3:29 [9fans] kfs file size limit? okamoto
2003-04-23 4:44 ` Geoff Collyer
2003-04-23 5:28 ` okamoto
2003-04-23 6:11 ` Geoff Collyer
2003-04-23 6:15 ` Geoff Collyer
2003-04-23 9:24 ` okamoto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).