* Re: [9fans] ext2srv problem with too many files
@ 2012-10-25 1:40 erik quanstrom
0 siblings, 0 replies; 5+ messages in thread
From: erik quanstrom @ 2012-10-25 1:40 UTC (permalink / raw)
To: 9fans
> term% for(i in`{seq 1 5000}) touch $i
> touch: 4091: cannot create: '4091' no space on device
looks to me like readdir() only reads the direct blocks, but that
doesn't seem right since 4090*264 ~= 1mb.
- erik
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9fans] ext2srv problem with too many files
2012-10-19 13:52 ` Peter A. Cejchan
2012-10-19 15:42 ` erik quanstrom
@ 2012-10-24 15:00 ` Peter A. Cejchan
1 sibling, 0 replies; 5+ messages in thread
From: Peter A. Cejchan @ 2012-10-24 15:00 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
> term% for(i in`{seq 1 5000}) touch $i
> touch: 4091: cannot create: '4091' no space on device
The problem applies also for Iru's version on sources...
++pac
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9fans] ext2srv problem with too many files
2012-10-19 13:52 ` Peter A. Cejchan
@ 2012-10-19 15:42 ` erik quanstrom
2012-10-24 15:00 ` Peter A. Cejchan
1 sibling, 0 replies; 5+ messages in thread
From: erik quanstrom @ 2012-10-19 15:42 UTC (permalink / raw)
To: 9fans
> I forgot to say that I'm using the ext2srv version from Plan
> distribution, not the Iruata's from contrib/iru;
> compiling iru's ext2srv gives error:
> term% mk
> 8c -FTVw xfssrv.c
> 8c -FTVw xfile.c
> 8c -FTVw ext2fs.c
> 8c -FTVw ext2subs.c
> 8c -FTVw chat.c
> 8c -FTVw iobuf.c
> 8l -o 8.out xfssrv.8 xfile.8 ext2fs.8 ext2subs.8 chat.8 iobuf.8
> ??none??: incompatible type signatures 392d4f87(xfssrv.8) and
> 2569e19(/386/lib/libc.a(chartorune)) for chartorune
sounds like you have a 9atom-compiled libc.a, but then updated
/386/include/u.h from the distribution overwriting the definition
of Rune. (changing it from uint to ushort). you either need to
recompile all your libraries, or put u.h back the way it was.
- erik
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9fans] ext2srv problem with too many files
2012-10-19 7:51 Peter A. Cejchan
@ 2012-10-19 13:52 ` Peter A. Cejchan
2012-10-19 15:42 ` erik quanstrom
2012-10-24 15:00 ` Peter A. Cejchan
0 siblings, 2 replies; 5+ messages in thread
From: Peter A. Cejchan @ 2012-10-19 13:52 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
4090 seems to be the maximum number of files that can reside in an
ext2srv served directory:
ext2srv
mount -c /srv/ext2 /n/linux /dev/sdE4/linux
cd /n/linux/x
term% for(i in`{seq 1 5000}) touch $i
touch: 4091: cannot create: '4091' no space on device
rm [0-9]*
ls
cp ../y/foo .
ls -l
--rw------- M 48 1000 1000 1950 Oct 19 12:14 foo
term%
term% for(i in`{seq 1 5000}) cp foo $i
cp: can't create 4090: '4090' no space on device
===
I forgot to say that I'm using the ext2srv version from Plan
distribution, not the Iruata's from contrib/iru;
compiling iru's ext2srv gives error:
term% mk
8c -FTVw xfssrv.c
8c -FTVw xfile.c
8c -FTVw ext2fs.c
8c -FTVw ext2subs.c
8c -FTVw chat.c
8c -FTVw iobuf.c
8l -o 8.out xfssrv.8 xfile.8 ext2fs.8 ext2subs.8 chat.8 iobuf.8
??none??: incompatible type signatures 392d4f87(xfssrv.8) and
2569e19(/386/lib/libc.a(chartorune)) for chartorune
mk: 8l -o ... : exit status=rc 533: 8l 535: error
^ permalink raw reply [flat|nested] 5+ messages in thread
* [9fans] ext2srv problem with too many files
@ 2012-10-19 7:51 Peter A. Cejchan
2012-10-19 13:52 ` Peter A. Cejchan
0 siblings, 1 reply; 5+ messages in thread
From: Peter A. Cejchan @ 2012-10-19 7:51 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
hi,
the problem reported before (2011) with ext2srv still persists, here
is some output:
## On Plan9 native:
term% du -a /n/linux/dir | wc -l
1758
term% ls -l /n/linux/dir | wc -l
1757
## On Linux:
% 9 du -a /dir | wc -l
12925
% 9 ls -l /dir | wc -l
12924
% 9 du -s /dir
951227 /dir
thanks,
++pac
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-10-25 1:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-25 1:40 [9fans] ext2srv problem with too many files erik quanstrom
-- strict thread matches above, loose matches on Subject: below --
2012-10-19 7:51 Peter A. Cejchan
2012-10-19 13:52 ` Peter A. Cejchan
2012-10-19 15:42 ` erik quanstrom
2012-10-24 15:00 ` Peter A. Cejchan
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).