On Sat, Jun 04, 2005 at 09:11:10AM -0700, m ike wrote:
>> >hi guys, i'd really appreciate some feed back on this symbolic
>> >link issue. i did experience that my system has a limit on the
>> >number of references, but the limit is large enough to be
>> >inconsequential
>> >
>> >
>> > /TMP/1/2/3/4/5/6/7/8/9/0/1/2/3/4/5/6/7/8/9/0/1/2/3/4/5/6/7/8/9/0/1/2/3/4/5/6/7/8/9/0/1/2
>> >
>>
>>
>> looks like you are doing something wrong. even if the directories
>> have only one of 2 names (eg 0 and 1) that leads to 2^42
>>
>> 4,398,046,511,104 directory locations for files, my disks don't have
>> that many bytes.
>
>sorry, i'm not following you here. i'm not sure what you
>mean by "wrong". for example, i am using my hack on
>a daily basis and have not notice any "ill effects". and
>the directory containing the 36 a-z0-9 subdirs, each
>containing 36 symbolic links and one file, well, that takes
>up 148k according to df and du. i suppose i ought to
>clarify that i never put anything else in there. its purpose
>is just to allow me to specify arbitray paths that will test true
>with -e
>
>so even though it is working fine for me, i am worried that
>you are right -- that i am doing something "wrong". I just
>don't know what that would be.
I didn't take the time to figure out exactly what you are doing, but
42 subdirectories just looks wrong -- whatever your problem is, there
has got to be a simpler solution. It wouldn't surprise me if you are
approaching a limit that nobody could figure out a reason to extend.
If you just need to 'test -e' maybe if you change '/' to '.' in your
scripts and only have one directory with one file for each of your
records, that would be simpler?
/TMP/1.2.3.4.5.6.7.8.9.0.1.2.3.4.5.6.7.8.9.0.1.2.3.4.5.6.7.8.9.0.1.2.3.4.5.6.7.8.9.0.1.2
then you could use shell expansion (ls /TMP/1.2.3.*9.9.9.*) and regex
('5.6.7.8$') to select your files for catting. At least that would be a
relative easy stepping stone to, say, a bash array, data structure.
or you could put the 42 character parameter, in a file, followed by a
tab and a value, and test if `grep $parm | sed 's/.*\t//'` is an empty
string || use it's value...
All I'm saying is anything with 42 subdirectories is bound to have a
simpler solution. Application or OS development, choose your poison.
:)
// George
--
George Georgalis, systems architect, administrator Linux BSD IXOYE
http://galis.org/george/ cell:646-331-2027 mailto:[EMAIL PROTECTED]
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list