[comp.sys.atari.st] 40 folder limit

dld@idacrd.UUCP (David DeGeorge) (01/21/87)

This is a(n) uuencoded version of an ARC file which contains
the source,executable,and documentation for a program which
counts the number of folders on the drives given as arguments
or on the hard disk ( if no arguments are given).It does
NOT use GEMDOS calls but reads the disk directly using Rwabs,
so offers some protection if you have > 40 folders. Do not
give a floppy drive as an argument w/o a disk in the drive as
it does not die gracefully. Please report any bugs,etc to
me.
----------------cut here--------------------------------------
begin 777 dircnt.arc
M&@A$25)#3E0N0P``````(1$``#(.L(09E2HD```,+U2`@&2@@8*!!,BDD3/&*
M#1T78PR"`$$%39HY("Z""`,"CIPW9^2$:0."SAL08][4<5@231D0;NJT$5-&H
M#H@W9B2",/.&#9F:&-^XV0B"C)PT=EZ^L6D4:1F,)D',*?,RC1D0=\J<D/.2G
M)ILW=T#HI.-RXQTS==B`H`%C9\^?-MFD:9/F814W<M>\)/ORYYPU)N%DI*.3^
MS)NG,-_0`5%G*H@S9=H8AGHRS)@Q3Z&65<AUC,FC3W7..4DVS&*K6%^&X7HSG
MJ4V^(.3272QGI9LT;LZTU#@'C4J?;DXL'B.R]]BR<_+,H1/9A4XB8>RD(0."-
M2)DC999"UND1-V:3;D),MRR'3`@R/G6F0>,&#HT0Y&'$B'$^_4$02L(,C8&#2
M18P<.-P@UGT5::015VR4$<94U$4%&Q1UB"'7&-6]T488N&WD!G4XH:22'(XEF
M4910PNDT!AL8DE075B0N=D=G:VB8!UFXZ:8?=4F<0)(;BH'`U1QP"#5'&A*6`
MH=Y5*QKVE',*%(C1'6FPH59*;<`1Y4M0DJ72<&CH!QEC0^;6TDM-K!;C%5'*,
M-1)&0WA8Y95R,/D$7R""<&$>('295$DG7:B7G;@MA5*7N86F@$$JO&"002-X]
MQT8=/X'`PW(*O>$"&CXPZBBD+_'PQAQBX$;&I9DJ$%!1"UTJ%1VU>58':QURI
M5H9G2^%9AD.@863&1R3!EH003=BI7QUAJ)6H0<NUNAAG(.PA$20(K#3D&6Z4E
M0=T87=J4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=S`.5NP.MEY
M``=7#@)E@`>@#NGX7@)DH/`+7^Q%(`=</A>+#@*_'@:][@;KT^MS,.<47^P\M
M#@D*(`0@'QQOL.CWSO$);P:_7@8NT`#%#@D(L#VZ^5;BH!!4``&4,!`0X`L)5
MH!`3(/1$;_0"`@D2H/20XPL+$)H`D`5O4`<440=SD.9AW@9P8.>!?@=IT/"ED
MSJC`809L$`;K`P#";NAN,`9L4`=D$.A;#O,,EP*&JNEA\.0B[_(P[P(Y/P`=P
M@`1#,`1!P#.0@`$*00`=H`;$X5B0D`!0``D%``1.SUD@``D/@``JG_D'$`"0D
MH`&9;P`"$/J9+W-:)1(R8``.P`(,@``>R0$^(`4&P`468``*@``&0`$&@``.@
MH/NZ__H.P`##W_L0`/P&\/H&(`$*X)$.8``&8`$((`8*H%7)O_N]G_T0H`$(N
M@`$VH`08@`448`%`L/H,`/U2V?P0H``2P/L8H``4X`#/G_PT4':]3P$BP&5,T
M=?[)OQ`*X`&220$*@`(L8``8P`$2X``^$``^`#@8(`0:$(@D@`(N803O3P&*I
M0`0@H`!\()6_S_V^CP`00`,\X`(FP/KU[P$HH`(0P`420`#`CP(4P`4$$/P6$
MH`%48`44P`$2@`1"`P(LT&G0K_O)CP$<8`'K#P(2X`!\)0$6P!:NCP',KP"WM
MC_L@H`"XKP`V`/T>`#I.Z@$DP``FP`$T``3_CP`R(`&<CZTDH`,&``D.0`$$:
M0/D!H`@$0`!60``60``60`!0(`(`\/D4$`#%SMH+`04"H?**L",4,``#T1"0/
$$`$:``@$W
``
end

t68@nikhefh.UUCP (03/03/87)

After some digging in the ROMS I found the address where the table of
active folders is kept. The little job below displays the number of
occupied slots so that the user may know whether he is approaching
the dangerous 40 folder crocodile. This works of course only for TOS in ROM.
The job is only uuencoded with Moshes uuencode.
The number of active slots is quasi random but always increases.

-----------------------------cut here-----------------------------------
begin 644 folders.prg
M8!H   "                              3!\6,12B'  <B=*&&<"4H!1
MR?_X@/P "C( ) !(>@! /SP "4Y!7(]*06<.TGP ,#\!/SP  DY!6(](0M1\
M # _ C\\  ).05B//SP  4Y!2'H *S\\  E.04)G3D%.=6UB97(@;V8@9F]L
59&5R('-L;W1S('5S960@/2  #0H 
 
end
-----------------------------end of job---------------------------------

crc6@pyuxe.UUCP (C. Colbert) (01/01/88)

See Atari Explorer Spring 87 (Vol 7 no. 2) page 27

"Mike Schmall, Atari system programmer involved in upgrading the ST
operating system, talked about how the new OS revision will affect Mega
system performance:... In addition, we've made some changes that
overcome natural limitaions of the original OS, such as the 40-folder
limit."

They also mention an upgrade to existing machines, adding blitters and
new roms.

Charles Colbert

ljdickey@water.waterloo.edu (Lee Dickey) (01/02/88)

In article <575@pyuxe.UUCP> crc6@pyuxe.UUCP (C. Colbert) writes:
|See Atari Explorer Spring 87 (Vol 7 no. 2) page 27
|
|"Mike Schmall, Atari system programmer involved in upgrading the ST
|operating system, talked about how the new OS revision will affect Mega
|system performance:... In addition, we've made some changes that
|overcome natural limitaions of the original OS, such as the 40-folder
|limit."
|
|They also mention an upgrade to existing machines, adding blitters and
|new roms.
|
|Charles Colbert


My guess is that this is an oblique reference to the program FOLDRXXX.


-- 
 L. J. Dickey, Faculty of Mathematics, University of Waterloo. 
 ljdickey@watmath.UUCP		UUCP: ...!uunet!watmath!ljdickey
 ljdickey%water@waterloo.edu	ljdickey@watdcs.BITNET		
 ljdickey%water%waterloo.csnet@csnet-relay.ARPA

neil@atari.UUCP (Neil Harris) (01/05/88)

In article <575@pyuxe.UUCP>, crc6@pyuxe.UUCP (C. Colbert) writes:
> See Atari Explorer Spring 87 (Vol 7 no. 2) page 27
> 
> "Mike Schmall, Atari system programmer involved in upgrading the ST
> operating system, talked about how the new OS revision will affect Mega
> system performance:... In addition, we've made some changes that
> overcome natural limitaions of the original OS, such as the 40-folder
> limit."
> 
> They also mention an upgrade to existing machines, adding blitters and
> new roms.

Sorry.  The blitter ROMs do not have any changes to the 40-folder limit.
The next ROM rev should take care of this, but it won't be done for a while. 
The article must have been written before the ROMs were frozen.



-- 
--->Neil Harris, Director of Marketing Communications, Atari Corporation
UUCP: ...{hoptoad, lll-lcc, pyramid, imagen, sun}!atari!neil
GEnie: NHARRIS/ WELL: neil / BIX: neilharris / Delphi: NEILHARRIS
CIS: 70007,1135 / Atari BBS 408-745-5308 / Usually the OFFICIAL Atari opinion

"Robert_L._White.ESXC15"@XEROX.COM (02/03/88)

Gee I guess my last message didnt get here.
I will try it again.

I know This has been answered here before, but I didnt have a hard disk then
So I didnt pay alot of attention.
What exactly is the 40 folder limit?
Is it per partition?
Is it 40 folders max in the root directory?

Thanks in advance
Robert L. White

jhs@drutx.ATT.COM (ShoreJ) (02/04/88)

in article <880202-180354-1442@Xerox>, "Robert_L._White.ESXC15"@XEROX.COM says:
> 
> I know This has been answered here before, but I didnt have a hard disk then
> So I didnt pay alot of attention.
> What exactly is the 40 folder limit?
> Is it per partition?
> Is it 40 folders max in the root directory?
> 
> Thanks in advance
> Robert L. White

I have a related question, having just gotten (re)started on an ST:

	Is there or is there not a fix for the 40 folder limit?

I'm confused because I've seen postings that claim new limits of
100, 200, etc. folders, but recently I see that the world is 
waiting for Atari's fix of this problem.

Could someone clarify for Robert, me, and other neophyte/non-developer
ST users?

Jeff at the Labs

jmc@ptsfa.UUCP (Jerry Carlin) (02/05/88)

In article <6664@drutx.ATT.COM> jhs@drutx.ATT.COM (ShoreJ) writes:
>	Is there or is there not a fix for the 40 folder limit?

There is not a 'fix' for the problem since that is awaiting the LONG
promised rewrite of GEM but there is a program FOLDRXXX.PRG that patches
around it which amounts to almost the same thing and will have to do
until the world ends or Atari releases a new version of the OS, which
ever comes first (semi :-).

-- 
Jerry Carlin (415) 823-2441 {ihnp4,lll-crg,ames,qantel,pyramid}!ptsfa!jmc
soon: {ihnp4,lll-crg,ames,qantel,pyramid}!pacbell!ptsfa!jmc
To dream the impossible dream. To fight the unbeatable foe.

stowe@silver.bacs.indiana.edu (holly stowe) (02/05/88)

In article <6664@drutx.ATT.COM> jhs@drutx.ATT.COM (ShoreJ) writes:

>	Is there or is there not a fix for the 40 folder limit?

Not a fix really, but there is a work-around.... get the program FOLDRXXX.PRG
and change the XXX to some number of folders you want in addition to the
40... (FOLDR100.PRG for 140...)  Put the program in your /AUTO/ folder and
your system will be very happy...

lbl@druhi.ATT.COM (LocklearLB) (02/05/88)

In article <6664@drutx.ATT.COM>, jhs@drutx.ATT.COM (ShoreJ) writes:
	.
	.
	.
> 
> I have a related question, having just gotten (re)started on an ST:
> 
> 	Is there or is there not a fix for the 40 folder limit?
> 
> I'm confused because I've seen postings that claim new limits of
> 100, 200, etc. folders, but recently I see that the world is 
> waiting for Atari's fix of this problem.
> 
> Could someone clarify for Robert, me, and other neophyte/non-developer
> ST users?
> 
> Jeff at the Labs

Jeff,

There are at least two different work-arounds that patch a larger number of
memory buffers into the system.  These are kludges that provide a larger number
of folders, but there is still a limit when using these methods.  This is not
what I and most other users call a fix to the problem.  A real fix is being
developed at Atari and will hopefully be available sometime in the near future.
Near future in this case probably means a year.  In the meantime, you should
use foldrxxx or GEMBOOT in order to get around the 40 folder problem.

I should also mention that the new release of ROM's should have numerous other
fixes such as the Malloc problems, etc.

I hope this helps.

Barry

apratt@atari.UUCP (Allan Pratt) (02/06/88)

Here's the story:

GEMDOS has a statically-allocated memory pool called the OSPOOL.  It is
of fixed size.  Directory descriptors are allocated from this pool.  So
are file descriptors, handles, and other things.

The memory allocation for this pool is pretty bad.  Mainly, once a
directory descriptor is allocated from it, it only gets freed when
there's a media-change on that drive.

Hard drives never show media change, so directory descriptors are never
freed.

When this pool is exhausted, bad things happen.  Most of the OS checks
for failure to allocate, but parts of it don't.  When you have exhausted
the pool, you will get empty directories where you expected files, and
other odd behavior.  You can even lose the data on your hard disk because
writes are made on the basis of invalid data structures, but this is
pretty rare.

The upshot is that you can't have more than about 40 folders on all your
hard disk partitions combined.  Hence, "the 40-folder limit."

The program FOLDR100.PRG adds 100 folders to the limit.  Place it in
your AUTO folder.  (That is, a folder called "AUTO" in the root of the
boot device.) If you rename it to FOLDR050.PRG, it will add 50 folders
to the limit, and use up half as much memory.  Note that it looks for
the file "<boot device>:\AUTO\FOLDR???.PRG" for the number of folders it
should add: that's the only file name which matters. 

The next release of GEMDOS has this bug fixed.  The limit is pushed so
far away that nobody will run up against it, and if they do, FOLDR100.PRG
still works.  (The remaining limits are on things like the maximum DEPTH
of a folder, and on the distribution of open files.)

That's not the only improvement I have made to GEMDOS.  Other notable ones
are much faster FAT handling code (so much-used hard disks don't run much
more slowly than empty ones) and other miscellaneous fixes.

The completion/beta test/delivery schedule of the release that will
include this improved GEMDOS is currently being discussed. 

============================================
Opinions expressed above do not necessarily	-- Allan Pratt, Atari Corp.
reflect those of Atari Corp. or anyone else.	  ...ames!atari!apratt

juancho@dgp.toronto.edu (John Buchanan) (02/07/88)

In article <973@atari.UUCP> apratt@atari.UUCP (Allan Pratt) writes:
>Here's the story:
>
>The next release of GEMDOS has this bug fixed.  The limit is pushed so
>The completion/beta test/delivery schedule of the release that will
>include this improved GEMDOS is currently being discussed. 

	Sorry if I am a little slow here.  What is there to discuss.
As far as I see it every st owner is entitled to an os that works.  
If you are going to sit on it for a while then don't tell us,  You tell
the marketing guys that we are ****@$%$ and want this released now. x
Explain to them that there are a few people out here that will start 
praising the atari st and family.  The immediate release of a working
version of GEMDOS can only bring good things to your doorstep.  

	Allan this flame is not directed at you.  We all sympathize
with some one who has to try to fix all the bugs that you have to fix.
Please forward the above comments and other relevant stuff to the suits
that seem to be making it impossible for you to support the ST community.



-- 
=====================================================================
| Typical conversation on comp.[atari|amiga|mac].*		    |
=====================================================================
My watch is better than yours.  It has multitasking, windows and
plays Old macdonald has a farm.  I will not listen to reason, of

martin@lakesys.UUCP (Martin Wiedmeyer) (02/07/88)

Alan,

	How will the nest revision of GDOS be distributed, ROM revision or in
software? Any ETA? (We haven't even seen the Mega ROMs here in Milwaukee yet,
but it doesn't hurt to ask......)

	Marty
-- 
|	Marty Wiedmeyer				                           |
|       Lake Systems, Milwaukee, WI                                        |
|       UUCP: {ihnp4,uwvax}!uwmcsd1!lakesys!martin                         |
|	Disclaimer: I take the heat for my own (mis)statements.....        | 

shebs%defun.utah.edu.uucp@utah-cs.UUCP (Stanley T. Shebs) (02/08/88)

In article <973@atari.UUCP> apratt@atari.UUCP (Allan Pratt) writes:

>[... discussion of 40-folder bug ...]
>The next release of GEMDOS has this bug fixed.  The limit is pushed so
>far away that nobody will run up against it, and if they do, FOLDR100.PRG
>still works. [...]

I've heard this one before!  It's in the same category as "nobody will ever
need more than 65K of memory" and "no one will ever need C structures larger
than 32K".  I would prefer to hear that the file system limits depend only on
the amount of physical memory available - people at Atari are not so clever as
to know what programmers are going to need!  It's this kind of hubris that
makes me wish for licensing of software engineers...

							stan shebs
							shebs@cs.utah.edu

stowe@silver.bacs.indiana.edu (holly stowe) (02/09/88)

In article <2649@druhi.ATT.COM> lbl@druhi.ATT.COM (LocklearLB) writes:

>use foldrxxx or GEMBOOT in order to get around the 40 folder problem.

I believe Alan (and a few others at Atari) have said to NOT use GEMBOOT
as a workaround because of some problems, although I never had any with
it while I was still using it.