Re: How many files can I put in one diretory?

2000-06-23 Thread Luigi Rizzo

   I have a user who needs to store a large amount of small html files. Like
  around 2 million...
  
  that sounds insane! Because a name is a name, why dont they call
  those files xx/yy/zz/tt.html and the like, to get down to a more
  reasonable # of files per directory.
 
  Well.. Yea that's the idea.. But what is a reasonable number? 10K 100K etc.

i would not go above 1K, probably even below so that a directory fits in
1-2 pages.

cheers
luigi
---+-
  Luigi RIZZO, [EMAIL PROTECTED]  . Dip. di Ing. dell'Informazione
  http://www.iet.unipi.it/~luigi/  . Universita` di Pisa
  TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy)
  Mobile   +39-347-0373137
---+-


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



libc_r/_read(), should the errno be reset to 0?

2000-06-23 Thread FengYue


in thread read() implementation, there is this line of code:

while ((ret = _thread_sys_read(fd, buf, nbytes))  0) {

suppose we're doing the IO on a TCP socket: _thread_sys_read() is going to
return -1 if there is no data available in the stream and the errno is then 
set to EAGAIN, so let's say we come back to the _thread_sys_read() call again,
this time it successed, however, the errno is still 35 (EAGAIN).  
My question is, shouldn't it be reset to zero?

So basically, if you do a read() call on TCP socket in your MT program and
the errno will be 35 even tho the read() call returns no error.  

BTW, this is 4.0-stable



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: libc_r/_read(), should the errno be reset to 0?

2000-06-23 Thread andrew



On Fri, 23 Jun 2000, FengYue wrote:

 My question is, shouldn't it be reset to zero?

From intro(2):

Successful calls never set errno; once set, it remains until another error
occurs.  It should only be examined after an error.

Andrew



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Apache with PAM/RADIUS authentication

2000-06-23 Thread Ingo Luetkebohle

please cc any replies to me, I'm not on the FreeBSD lists.

Anyways, this looks like a simple path problem. I don't know where FreeBSD
places the pam modules, but on Linux they are in /lib/security/.

 Jun 22 13:50:15 nwlynx dev-httpd: unable to dlopen(/usr/lib/pam_radius.so)
 Jun 22 13:50:15 nwlynx dev-httpd: [dlerror: /usr/lib/pam_radius.so: Undefined symbol 
"pam_get_item"]
 Jun 22 13:50:15 nwlynx dev-httpd: adding faulty module: /usr/lib/pam_radius.so
 Jun 22 13:50:15 nwlynx dev-httpd: unable to dlopen(/usr/lib/pam_unix.so)
 Jun 22 13:50:15 nwlynx dev-httpd: [dlerror: /usr/lib/pam_unix.so: Undefined symbol 
"pam_get_item"]
 Jun 22 13:50:15 nwlynx dev-httpd: adding faulty module: /usr/lib/pam_unix.so

---Ingo Luetkebohle / 21st Century Digital Boy

its easy to stop using Perl: I do it after every project


 PGP signature


Problem with normal exit all threads of task...

2000-06-23 Thread Sergey A. Osokin

Hello!

I have a problem with normal exit all threads of task by signal...
At Linux, as i know, all threads of task receive a signal, but
under FreeBSD only one.

Any idea?
-- 

Rgdz,
Sergey Osokin aka oZZ,
[EMAIL PROTECTED]
http://www.freebsd.org.ru/~osa/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Apache with PAM/RADIUS authentication

2000-06-23 Thread Alexander Prohorenko

Greetings,

On Fri, Jun 23, 2000 at 01:04:14PM +0200, Ingo Luetkebohle wrote:
 please cc any replies to me, I'm not on the FreeBSD lists.

Okay, I'll bounce everything I'll got on this subject.  You may include
this into your FAQ.  Of course, if we'll solve this problem :)

 Anyways, this looks like a simple path problem. I don't know where FreeBSD
 places the pam modules, but on Linux they are in /lib/security/.
 
  Jun 22 13:50:15 nwlynx dev-httpd: unable to dlopen(/usr/lib/pam_radius.so)
  Jun 22 13:50:15 nwlynx dev-httpd: [dlerror: /usr/lib/pam_radius.so: Undefined 
symbol "pam_get_item"]
  Jun 22 13:50:15 nwlynx dev-httpd: adding faulty module: /usr/lib/pam_radius.so
  Jun 22 13:50:15 nwlynx dev-httpd: unable to dlopen(/usr/lib/pam_unix.so)
  Jun 22 13:50:15 nwlynx dev-httpd: [dlerror: /usr/lib/pam_unix.so: Undefined symbol 
"pam_get_item"]
  Jun 22 13:50:15 nwlynx dev-httpd: adding faulty module: /usr/lib/pam_unix.so

white@micogw:/usr/home/whitels -al /usr/lib/pam*
-r--r--r--  1 root  wheel   2871 19 ÉÀÎ 05:16 /usr/lib/pam_cleartext_pass_ok.so
-r--r--r--  1 root  wheel   2637 19 ÉÀÎ 05:16 /usr/lib/pam_deny.so
-r--r--r--  1 root  wheel   3183 19 ÉÀÎ 05:16 /usr/lib/pam_permit.so
-r--r--r--  1 root  wheel   6563 19 ÉÀÎ 05:16 /usr/lib/pam_radius.so
-r--r--r--  1 root  wheel   3774 19 ÉÀÎ 05:16 /usr/lib/pam_skey.so
-r--r--r--  1 root  wheel   6473 19 ÉÀÎ 05:16 /usr/lib/pam_tacplus.so
-r--r--r--  1 root  wheel  14357 19 ÉÀÎ 05:16 /usr/lib/pam_unix.so

Unfortunetly, all modules are readable and accessable by /usr/lib/ path.
What PAM version is necessary for this module?  FreeBSD 3.4-STABLE has
PAM 0.56.  But by some strange reason I do know guys who are running the
same configuration and everything is working, the only difference is
that they are using pam_tacplus instead of pam_radius.

Also, I thought that's the reason is that libpam library has not 
pam_get_item() function.  And that's not the truth too!

white@micogw:/usr/home/whitestrings /usr/lib/libpam.so | grep pam_get_item
pam_get_item
pam_get_item: NULL pam handle passed
pam_get_item: nowhere to place requested item

I'm open for any suggestions and tests except running httpd server as root.
Thanks and hope to hear from you soon.

Cheers,

-- 
Alexander Prohorenko, Extra Solutions [ http://extra.com.ua ]

  "Those who do not understand UNIX are condemned to reinvent it, poorly."
-- H. Spencer


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Cooperative site-sitting

2000-06-23 Thread Koster, K.J.

Dear FreeBSD Hackers,

I've been walking around with a wild idea again. I'm worried that this mail
is going to be a bit of a long rant. Sorry in advance.

I've been looking at those sites that can monitor the availability and
performance of your web site. For a few bucks per URL, you can receive a
monthly e-mail about how much your site has been visible across the 'net.
Someone wrote a HTML/cgi wrapper around ping and traceroute and is making
good money on that. Good for them of course.

The better ones will have pingservers at strategic locations on the 'net, so
they can even tell you in more detail why your site was not reachable. The
clever ones don't actually have much hardware, but pay you a few bucks if
you run their ping server daemon, that watches other sites.

Anyway, we have many bigger and smaller web admins on this mailing list.
Perhaps some of us could engage in a joint effort to watch eachother's
sites, instead of having others make money off all of us. If my site goes
down, you send me an e-mail, or a fax or a page or whatever, and if yours
goes down, I do you the same favour. No money involved.

You'd team up with three or four web masters in different time zones, so
that you have 24-hour human-assisted coverage. You exchange phone/fax/page
numbers and agree to be friends even if someone screws up. After a while,
when you're comfortable with your new-found web-pals, you may even give them
ssh access to a rebootaccount. This may save you a wakeup call to frob that
big red knob.

For bigger companies, this is a bad idea, because they are already doing
their own monitoring. *cough* Home users don't participate because they have
a life. :-)

Ideal candidates are for example schools and smaller, pressed-for-cash
companies or non-profit organisations. Companies that have a sysop for eight
hours a day, but none during off-hours. Places where webmasters come in in
the morning to discover whether their site is up or down.

Just a thought. I will go back to work now. :-)

Kees Jan

=
 TV is the worst  of both  worlds.  It's not  as
 good at words  as radio is because the pictures
 are a distraction  which demand  attention, and
 it's not as good as cinema because the pictures
 are not nearly as good.   [Douglas Adams]



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



FW: Cooperative site-sitting

2000-06-23 Thread Koster, K.J.

Hi Colman,

I'm replying to you through -hackers, because I got the following when I
e-mailed you personally:

The original message was received at Fri, 23 Jun 2000 13:20:35 GMT
from hermes.research.kpn.com [139.63.192.8]

   - The following addresses had permanent fatal errors -
[EMAIL PROTECTED]

   - Transcript of session follows -
554 5.0.0 MX list for antonio.office.thecia.ie. points back to
online.thecia.ie
554 5.3.5 [EMAIL PROTECTED]... Local configuration
error

 
 Sounds like a good idea: I'd probably be able to set-up a 
 front end for it if we got some interest. I'm sure I have
 some old dating agency code around here! 

That would be ideal. Perhaps you could dig it up and sort'a set it up, so
that we can see if there's interest?

There's good irony in using dating agency code to team up sysops. :-)


 We're a small ISP in Dublin, Ireland.
 
You should be selling the monitoring service to your customers, not host a
cooperative one. :-)

Kees Jan

=
 TV is the worst  of both  worlds.  It's not  as
 good at words  as radio is because the pictures
 are a distraction  which demand  attention, and
 it's not as good as cinema because the pictures
 are not nearly as good.
 Douglas Adams


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Apache with PAM/RADIUS authentication

2000-06-23 Thread Bjoern Fischer

On Fri, Jun 23, 2000 at 11:57:43AM +0300, Alexander Prohorenko wrote:
 I hope to get some help here.  I've got in troubles trying to run
 Apache PAM authentication module on FreeBSD.
[...]
 I've used PAM module from http://blank.pages.de/pam/ - mod_auth_pam.c
 and added it as DSO module using apxs.
 
 /usr/local/apache/conf/httpd.conf has:
 
 LoadModule pam_auth_modulelibexec/mod_auth_pam.so
 AddModule mod_auth_pam.c
[...]
 Jun 22 13:50:15 nwlynx dev-httpd: unable to dlopen(/usr/lib/pam_radius.so)
 Jun 22 13:50:15 nwlynx dev-httpd: [dlerror: /usr/lib/pam_radius.so: Undefined symbol 
"pam_get_item"]
[...]

Please show me the output of `objdump -p mod_auth_pam.so' and of
`objdump -p apache-server-binary' and I will try to help you.

  Björn

-- 
-BEGIN GEEK CODE BLOCK-
GCS d--(+) s++: a- C+++(-) UBOSI$ P+++(-) L---(++) !E W- N+ o+
K- !w !O !M !V  PS++  PE-  PGP++  t+++  !5 X++ tv- b+++ D++ G e+ h-- y+ 
--END GEEK CODE BLOCK--


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Apache with PAM/RADIUS authentication

2000-06-23 Thread Alexander Prohorenko

On Fri, Jun 23, 2000 at 03:44:09PM +0200, Bjoern Fischer wrote:
 On Fri, Jun 23, 2000 at 11:57:43AM +0300, Alexander Prohorenko wrote:
  I hope to get some help here.  I've got in troubles trying to run
  Apache PAM authentication module on FreeBSD.
 [...]
  I've used PAM module from http://blank.pages.de/pam/ - mod_auth_pam.c
  and added it as DSO module using apxs.
  
  /usr/local/apache/conf/httpd.conf has:
  
  LoadModule pam_auth_modulelibexec/mod_auth_pam.so
  AddModule mod_auth_pam.c
 [...]
  Jun 22 13:50:15 nwlynx dev-httpd: unable to dlopen(/usr/lib/pam_radius.so)
  Jun 22 13:50:15 nwlynx dev-httpd: [dlerror: /usr/lib/pam_radius.so: Undefined 
symbol "pam_get_item"]
 [...]

Bjoern,

Thank you very much,

Here they are:

 Please show me the output of `objdump -p mod_auth_pam.so' and of

white@nwlynx:/usr/local/apache-dev/libexecobjdump -p mod_auth_pam.so

mod_auth_pam.so: file format elf32-i386

Program Header:
LOAD off0x vaddr 0x paddr 0x align 2**12
 filesz 0x1215 memsz 0x1215 flags r-x
LOAD off0x1218 vaddr 0x2218 paddr 0x2218 align 2**12
 filesz 0x01f8 memsz 0x01f8 flags rw-
 DYNAMIC off0x1390 vaddr 0x2390 paddr 0x2390 align 2**2
 filesz 0x0080 memsz 0x0080 flags rw-

Dynamic Section:
  NEEDED  libpam.so.1
  INIT0x78c
  FINI0x1054
  HASH0x94
  STRTAB  0x43c
  SYMTAB  0x1cc
  STRSZ   0x1c6
  SYMENT  0x10
  PLTGOT  0x230c
  PLTRELSZ0xe8
  PLTREL  0x11
  JMPREL  0x6a4
  REL 0x604
  RELSZ   0xa0
  RELENT  0x8

 `objdump -p apache-server-binary' and I will try to help you.

white@nwlynx:/usr/local/apache-dev/binobjdump -p httpd

httpd: file format elf32-i386

Program Header:
PHDR off0x0034 vaddr 0x08048034 paddr 0x08048034 align 2**2
 filesz 0x00a0 memsz 0x00a0 flags r-x
  INTERP off0x00d4 vaddr 0x080480d4 paddr 0x080480d4 align 2**0
 filesz 0x0019 memsz 0x0019 flags r--
LOAD off0x vaddr 0x08048000 paddr 0x08048000 align 2**12
 filesz 0x0004d4b5 memsz 0x0004d4b5 flags r-x
LOAD off0x0004d4b8 vaddr 0x080964b8 paddr 0x080964b8 align 2**12
 filesz 0x4644 memsz 0x7c6c flags rw-
 DYNAMIC off0x00051a6c vaddr 0x0809aa6c paddr 0x0809aa6c align 2**2
 filesz 0x0090 memsz 0x0090 flags rw-

Dynamic Section:
  NEEDED  libcrypt.so.2
  NEEDED  libc.so.3
  INIT0x804dfc4
  FINI0x808c5e4
  HASH0x80480f0
  STRTAB  0x804b7e8
  SYMTAB  0x8049278
  STRSZ   0x23ba
  SYMENT  0x10
  DEBUG   0x0
  PLTGOT  0x809a864
  PLTRELSZ0x3f8
  PLTREL  0x11
  JMPREL  0x804dbcc
  REL 0x804dba4
  RELSZ   0x28
  RELENT  0x8

Cheers,

-- 
Alexander Prohorenko, Extra Solutions [ http://extra.com.ua ]

  "Those who do not understand UNIX are condemned to reinvent it, poorly."
-- H. Spencer


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



RE: libc_r/_read(), should the errno be reset to 0?

2000-06-23 Thread Bohne, Peter

This means that *you* should set errno to 0 just before you do the read
call.  At this point, you no longer care what it had been before.
--
pete

== pbohne at hboc dot com
Peter Bohne -- McKessonHBOC -- Louisville, CO
Work: 303-926-2218 -- Cell: 303-817-8312 -- Home Ofc: 970-586-9031
== "Very funny, Scottie.  Now beam down my clothes!"



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 23, 2000 3:02 AM
 To: FengYue
 Cc: [EMAIL PROTECTED]
 Subject: Re: libc_r/_read(), should the errno be reset to 0?
 
 
 
 
 On Fri, 23 Jun 2000, FengYue wrote:
 
  My question is, shouldn't it be reset to zero?
 
 From intro(2):
 
 Successful calls never set errno; once set, it remains until 
 another error
 occurs.  It should only be examined after an error.
 
 Andrew
 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with "unsubscribe freebsd-hackers" in the body of the message
 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



RE: libc_r/_read(), should the errno be reset to 0?

2000-06-23 Thread andrew



On Fri, 23 Jun 2000, Bohne, Peter wrote:

 This means that *you* should set errno to 0 just before you do the read
 call.  At this point, you no longer care what it had been before.

Why set it at all? If read returns an error then it will set it for you
and if read doesn't return an error it doesn't really matter whats in
errno.

Am I missing something?

Andrew



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



RE: libc_r/_read(), should the errno be reset to 0?

2000-06-23 Thread Bohne, Peter

Anytime you make a call that can potentially set errno, and you are planning
to *check* errno afterwards, you have to set errno to 0 yourself.  Once a
system call sets errno to some (any) value, errno will just retain that
value until the next system call that fails and sets errno.  AFAIK *nothing*
sets errno to 0, ever.  (Except probably when your process first starts -
errno probably gets initialized to 0, altho I don't even count on that.
Someone else on the list may know about this.)  *Always* set errno to 0
before you do your call if you want to inspect the value of errno after the
call.  I don't have the original post in front of me, but wasn't the problem
that you wanted to check errno after a 2nd read() that had succeeded?  If
so, then errno will still have EAGAIN in it if the 1st read() had put it
there, even tho the 2nd read succeeded.

Maybe *I'm* the one missing something ... :-)

pete

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 23, 2000 9:49 AM
 To: Bohne, Peter
 Cc: FengYue; [EMAIL PROTECTED]
 Subject: RE: libc_r/_read(), should the errno be reset to 0?
 
 
 
 
 On Fri, 23 Jun 2000, Bohne, Peter wrote:
 
  This means that *you* should set errno to 0 just before you 
 do the read
  call.  At this point, you no longer care what it had been before.
 
 Why set it at all? If read returns an error then it will set 
 it for you
 and if read doesn't return an error it doesn't really matter whats in
 errno.
 
 Am I missing something?
 
 Andrew
 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with "unsubscribe freebsd-hackers" in the body of the message
 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



RE: libc_r/_read(), should the errno be reset to 0?

2000-06-23 Thread andrew



On Fri, 23 Jun 2000, Bohne, Peter wrote:

 Anytime you make a call that can potentially set errno, and you are planning
 to *check* errno afterwards, you have to set errno to 0 yourself.  Once a

...but you would only be checking errno if the call failed and if the call
failed then it will have set errno.

Andrew



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



RE: libc_r/_read(), should the errno be reset to 0?

2000-06-23 Thread Bohne, Peter

Right - but unless I'm mis-remembering the original post (which I may well
be), your *second* read() succeeded, but errno was still set to EAGAIN,
which was causing you some sort of headache.  My apologies if I've got my
memory mixed up - happens all the time :-)
pete

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 23, 2000 10:25 AM
 To: Bohne, Peter
 Cc: FengYue; [EMAIL PROTECTED]
 Subject: RE: libc_r/_read(), should the errno be reset to 0?
 
 
 
 
 On Fri, 23 Jun 2000, Bohne, Peter wrote:
 
  Anytime you make a call that can potentially set errno, and 
 you are planning
  to *check* errno afterwards, you have to set errno to 0 
 yourself.  Once a
 
 ...but you would only be checking errno if the call failed 
 and if the call
 failed then it will have set errno.
 
 Andrew
 
 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



RE: libc_r/_read(), should the errno be reset to 0?

2000-06-23 Thread FengYue


Wait, that's not going to do anything, the errno is set inside the
_thread_sys_read().  But I agree with Andrew, why bother to check
errno if read() returns no error.

On Fri, 23 Jun 2000, Bohne, Peter wrote:

 This means that *you* should set errno to 0 just before you do the read
 call.  At this point, you no longer care what it had been before.
 --
 pete
 
 == pbohne at hboc dot com
 Peter Bohne -- McKessonHBOC -- Louisville, CO
 Work: 303-926-2218 -- Cell: 303-817-8312 -- Home Ofc: 970-586-9031
 == "Very funny, Scottie.  Now beam down my clothes!"
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Friday, June 23, 2000 3:02 AM
  To: FengYue
  Cc: [EMAIL PROTECTED]
  Subject: Re: libc_r/_read(), should the errno be reset to 0?
  
  
  
  
  On Fri, 23 Jun 2000, FengYue wrote:
  
   My question is, shouldn't it be reset to zero?
  
  From intro(2):
  
  Successful calls never set errno; once set, it remains until 
  another error
  occurs.  It should only be examined after an error.
  
  Andrew
  
  
  
  To Unsubscribe: send mail to [EMAIL PROTECTED]
  with "unsubscribe freebsd-hackers" in the body of the message
  



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



SCSI HBA device detection?

2000-06-23 Thread Nat Lanza

I'm writing a SCSI HBA driver that simulates a bus with some
ramdisk-backed disks attached to it. I've read through the HBA
tutorial in Daemon News, but I'm still unsure how to tell the system
about my pretend disk devices. I suspect part of the problem is that
I don't actually have real devices or a real IO bus.

Anyone feel like explaining this?

Thanks.


--nat

-- 
nat lanza - research programmer, parallel data lab, cmu scs
[EMAIL PROTECTED]  http://www.cs.cmu.edu/~magus/
there are no whole truths; all truths are half-truths -- alfred north whitehead


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



ttys entry for palm pilot as dumb terminal

2000-06-23 Thread Brian Reichert

I have no idea why I'm seeing this symptom:

Using the 'ptelnet' application on my Palm III, I can log into machines.
Really cute to see a little 'top' running. :)

Anyway, the suggested entry in /etc/ttys:

  ttyd0  "/usr/libexec/getty std.9600"   dialup  on secure

does not work for me at all, yet if I do this intead:

  cuaa0  "/usr/libexec/getty std.9600"   dialup  on secure

I indeed get a login prompt, and I'm all set.

I know that one device is for initiating outgoing connections, and
the other for incoming connections, but I don't understand why the
lines provided in a stock install seem to have the sense reversed...

(Oh, this is under FreeBSD-4.0-RELEASE, but I've seen similar
symptoms under 3.x.)

-- 
Brian 'you Bastard' Reichert[EMAIL PROTECTED]
37 Crystal Ave. #303Daytime number: (603) 434-6842
Derry NH 03038-1713 USA Intel architecture: the left-hand path


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: How many files can I put in one diretory?

2000-06-23 Thread Murray Stokely

On Fri, 23 Jun 2000, Daniel O'Connor wrote:
% I chunk of binary data you can put in a DB.
% 
% Like an image, or an mpeg, or a sound file..
% 
% AFAIK postgres supports BLOBS.

  So does MySQL.  You can display a BLOB using a Perl/DBI cgi script
with about 5 lines of code.  Just print the correct Content-type
header and then the contents of the BLOB. 

- Murray



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: How many files can I put in one diretory?

2000-06-23 Thread Jeroen C. van Gelderen

"Nicole Harrington." wrote:
 
 On 23-Jun-00 Daniel O'Connor wrote:
 
  On 23-Jun-00 Nicole Harrington. wrote:
   Yeah.. This is why databases where invented :)
Hey I agree... However even if the html was databased.. (working on that
   now)
   the custom graphics cannot be. (yet)
 
  Hmm.. can't you do binary blobs in a DB and change the image URL's to be cgi
  requests?
 
 
  I dunno.. whats a "binary Blob"?

Pleonasm? :-) BLOB = Binary Large OBject.

From the TransBase SQL Reference Manual:
"TransBase does not interpret the contents of a BLOB. Each field of type 
BLOB either contains the NULL value or a BLOB object. The only
operations 
on BLOBs are creation, insertion, update of a BLOB, testing a BLOB on 
being the NULL value, extracting a BLOB via the field name in the SELECT 
clause, extracting a subrange of a BLOB (i.e. an adjacent byte range of 
a BLOB), and extracting the size of a BLOB."

Cheers,
Jeroen
-- 
Jeroen C. van Gelderen  o  _ _ _
[EMAIL PROTECTED]  _o /\_   _ \\o  (_)\__/o  (_)
  _ \_   _(_) (_)/_\_| \   _|/' \/
 (_)(_) (_)(_)   (_)(_)'  _\o_


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



PPPoE help me please!!

2000-06-23 Thread Adam Blake

Greetings All and Everyone.

I am becoming quite desperate and I am in of dire nned for help with PPPoE!

I spoke to an individual on the list a few weeks ago regarding this issue
and I truly appreciate their time (Thanks Dima).

Here's the deal... I can't get PPPoE running to save my life!!
I have tried everything including setting everything through PPP manually
to no avail.

I have included along with this e-mail the output of ifconfig -a 
before launching ppp (this is why the tunneling device is not shown),
the output of dmesg, a copy of /var/log/ppp.log as well as a copy of
/etc/ppp.conf.  

And yes, I recompiled the Kernel with all of the Netgraph options about 
a month ago.

I can run tcpdump on my ethernet device ed1 and it is sending out a 
PADI packet but it is not getting anything back.

If anybody is out there with any ideas at all please let me know!!

many thanks,

Adam Michalak



Jun 15 15:41:21  ppp[208]: Phase: Using interface: tun0 
Jun 15 15:41:21  ppp[208]: Phase: deflink: Created in closed state 
Jun 15 15:41:21  ppp[208]: tun0: Command: default: set ifaddr 10.0.0.1/0 10.0.0.2/0 
255.255.255.0 0.0.0.0 
Jun 15 15:41:21  ppp[208]: tun0: Command: default: add default HISADDR 
Jun 15 15:41:21  ppp[208]: tun0: TCP/IP: bundle_SetRoute failure: 
Jun 15 15:41:21  ppp[208]: tun0: TCP/IP: bundle_SetRoute:  Cmd = Add 
Jun 15 15:41:21  ppp[208]: tun0: TCP/IP: bundle_SetRoute:  Dst = 0.0.0.0 
Jun 15 15:41:21  ppp[208]: tun0: TCP/IP: bundle_SetRoute:  Gateway = 10.0.0.2 
Jun 15 15:41:21  ppp[208]: tun0: TCP/IP: bundle_SetRoute:  Mask = 0.0.0.0 
Jun 15 15:41:21  ppp[208]: tun0: Command: default: nat enable yes 
Jun 15 15:41:21  ppp[208]: tun0: Command: default: set device PPPoE:ed1 
Jun 15 15:41:21  ppp[208]: tun0: Command: default: set mru 1492 
Jun 15 15:41:21  ppp[208]: tun0: Command: default: set mtu 1492 
Jun 15 15:41:21  ppp[208]: tun0: Command: default: set speed sync 
Jun 15 15:41:21  ppp[208]: tun0: Command: default: enable lqr 
Jun 15 15:41:21  ppp[208]: tun0: Command: default: set lqrperiod 5 
Jun 15 15:41:21  ppp[208]: tun0: Command: default: set cd 5 
Jun 15 15:41:21  ppp[208]: tun0: Command: default: set dial 
Jun 15 15:41:21  ppp[208]: tun0: Command: default: set login 
Jun 15 15:41:21  ppp[208]: tun0: Command: default: set timeout 0 
Jun 15 15:41:21  ppp[208]: tun0: Command: default: set authname  
Jun 15 15:41:21  ppp[208]: tun0: Command: default: set authkey  
Jun 15 15:41:21  ppp[208]: tun0: Command: default: set log Phase tun Chat LCP IPCP 
command TCP/IP 
Jun 15 15:41:21  ppp[208]: tun0: Command: default: set ifaddr 10.0.0.1/0 10.0.0.2/0 
255.255.255.0 0.0.0.0 
Jun 15 15:41:21  ppp[208]: tun0: Command: default: add default HISADDR 
Jun 15 15:41:21  ppp[208]: tun0: TCP/IP: bundle_SetRoute failure: 
Jun 15 15:41:21  ppp[208]: tun0: TCP/IP: bundle_SetRoute:  Cmd = Add 
Jun 15 15:41:21  ppp[208]: tun0: TCP/IP: bundle_SetRoute:  Dst = 0.0.0.0 
Jun 15 15:41:21  ppp[208]: tun0: TCP/IP: bundle_SetRoute:  Gateway = 10.0.0.2 
Jun 15 15:41:21  ppp[208]: tun0: TCP/IP: bundle_SetRoute:  Mask = 0.0.0.0 
Jun 15 15:41:21  ppp[208]: tun0: Command: default: nat enable yes 
Jun 15 15:41:21  ppp[209]: tun0: Phase: PPP Started (ddial mode). 
Jun 15 15:41:21  ppp[209]: tun0: Phase: bundle: Establish 
Jun 15 15:41:21  ppp[209]: tun0: Phase: deflink: closed - opening 
Jun 15 15:41:21  ppp[209]: tun0: Phase: deflink: Connected! 
Jun 15 15:41:21  ppp[209]: tun0: Phase: deflink: opening - dial 
Jun 15 15:41:21  ppp[209]: tun0: Phase: deflink: dial - carrier 
Jun 15 15:41:26  ppp[209]: tun0: Phase: deflink: Disconnected! 
Jun 15 15:41:26  ppp[209]: tun0: Phase: deflink: carrier - hangup 
Jun 15 15:41:26  ppp[209]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 
octets out 
Jun 15 15:41:26  ppp[209]: tun0: Phase:  total 0 bytes/sec, peak 0 bytes/sec on Thu 
Jun 15 15:41:26 2000 
Jun 15 15:41:26  ppp[209]: tun0: Phase: deflink: hangup - opening 
Jun 15 15:41:26  ppp[209]: tun0: Phase: deflink: Enter pause (30) for redialing. 
Jun 15 15:41:56  ppp[209]: tun0: Phase: deflink: Redial timer expired. 
Jun 15 15:41:56  ppp[209]: tun0: Phase: deflink: Connected! 
Jun 15 15:41:56  ppp[209]: tun0: Phase: deflink: opening - dial 
Jun 15 15:41:56  ppp[209]: tun0: Phase: deflink: dial - carrier 
Jun 15 15:42:02  ppp[209]: tun0: Phase: deflink: Disconnected! 
Jun 15 15:42:02  ppp[209]: tun0: Phase: deflink: carrier - hangup 
Jun 15 15:42:02  ppp[209]: tun0: Phase: deflink: Connect time: 6 secs: 0 octets in, 0 
octets out 
Jun 15 15:42:02  ppp[209]: tun0: Phase:  total 0 bytes/sec, peak 0 bytes/sec on Thu 
Jun 15 15:42:02 2000 
Jun 15 15:42:02  ppp[209]: tun0: Phase: deflink: hangup - opening 
Jun 15 15:42:02  ppp[209]: tun0: Phase: deflink: Enter pause (30) for redialing. 
Jun 15 15:42:32  ppp[209]: tun0: Phase: deflink: Redial timer expired. 
Jun 15 15:42:32  ppp[209]: tun0: Phase: deflink: Connected! 
Jun 15 15:42:32  ppp[209]: tun0: 

Re: ttys entry for palm pilot as dumb terminal

2000-06-23 Thread Mark Newton

On Fri, Jun 23, 2000 at 03:34:06PM -0400, Brian Reichert wrote:

  Anyway, the suggested entry in /etc/ttys:
ttyd0  "/usr/libexec/getty std.9600"   dialup  on secure
  does not work for me at all, yet if I do this intead:
cuaa0  "/usr/libexec/getty std.9600"   dialup  on secure
  I indeed get a login prompt, and I'm all set.
  I know that one device is for initiating outgoing connections, and
  the other for incoming connections, but I don't understand why the
  lines provided in a stock install seem to have the sense reversed...

It's because the Palm's serial port only runs 3 wires, and doesn't
provided a DCD signal.  Opens on ttyd0 block until DCD is asserted, 
so you're screwed if you're on a Palm :-)  Opens on cuaa0 succeed
straight away if the device is idle.

- mark

-- 
Mark Newton   Email:  [EMAIL PROTECTED] (W)
Network Engineer  Email:  [EMAIL PROTECTED]  (H)
Internode Systems Pty Ltd Desk:   +61-8-82232999
"Network Man" - Anagram of "Mark Newton"  Mobile: +61-416-202-223


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message