Linux-Development-Sys Digest #682, Volume #6      Wed, 5 May 99 20:13:59 EDT

Contents:
  kmod in 2.2 kernels (was Re: Modprobe can't file module char-major-6...) (Paul 
Kimoto)
  Re: Mirroring Harddrives on Red Hat (Zing Zing Awungshi Shishak)
  Get client machine's IP-address (Iond Research Srl)
  Where can I find /usr/sbin/chat sources ? (FX)
  Re: Banshee Drivers (Jamie Walker)
  Re: Problem: Block on freelist at 008c8910 isn't free (Paul Kimoto)
  Re: Mac-emulation on Linux? ("FM")
  Re: Files larger than 2 GB on Intel/Linux ("Stefan Monnier " 
<[EMAIL PROTECTED]>)
  Re: CVS (Re: Bill Gates, self made man, NOT!) (James Youngman)
  Re: CVS (Re: Bill Gates, self made man, NOT!) (James Youngman)
  Re: Journaled Filesystem (James Youngman)
  Re: system() in glibc (James Youngman)
  Re: /dev/hda1 has reached maximal mount count, check forced (bill davidsen)
  Re: -= Problem about remote IP addresses =- ("Kyle VanderBeek")
  Re: Problems compiling Kernel 2.2.7 (Paul Kimoto)
  Re: Mac-emulation on Linux? (Steven G. Johnson)
  Re: Glibc rant (David T. Blake)
  Re: suggestion to scsi-drivers (Peter Samuelson)
  crash with 2.2.x SMP under heavy disk activity (laurent collot)
  dlopen() and _init() ([EMAIL PROTECTED])
  Re: Get client machine's IP-address (AKK)
  Re: Accessing a process' last error count (Tony Young)

----------------------------------------------------------------------------

From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: kmod in 2.2 kernels (was Re: Modprobe can't file module char-major-6...)
Date: 5 May 1999 14:23:36 -0500
Reply-To: [EMAIL PROTECTED]

In article <7gnup2$lsp$[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:
> In kernel 2.2.1 config, I decided to use "kmod" instead of "kerneld". [...]
> 2. This method worked for kmod, if you're still using kerneld, it won't
> help!
>   (I'm sure).
>   There is another difference between kmod and kerneld:
>   while kerneld removes unused modules after a while, kmod doesn't.

In 2.2.x, you do not choose between autoloading modules via 
kmod and kerneld; you choose between kmod and nothing at all.  
See /usr/src/linux/Documentation/kmod.txt.

-- 
Paul Kimoto             <[EMAIL PROTECTED]>

------------------------------

From: [EMAIL PROTECTED] (Zing Zing Awungshi Shishak)
Subject: Re: Mirroring Harddrives on Red Hat
Date: 5 May 1999 14:59:11 -0400

"Jeremiah Daniels" <[EMAIL PROTECTED]> writes:
>Does anyone know if you can mirror harddrives on linux.  If so how is it
>done.

Your looking for RAID level 1.  For software implemented RAID on linux, 
read this Howto:

http://ostenfeld.dk/~jakob/Software-RAID.HOWTO/

There are also hardware raid solutions, but I'm unfamiliar with them.


-- 
[EMAIL PROTECTED]

------------------------------

From: Iond Research Srl <[EMAIL PROTECTED]>
Crossposted-To: 
it.comp.linux.development,comp.os.linux.networking,comp.os.linux.development.apps,comp.programming,comp.protocols.tcp-ip,comp.protocols.tcp-ip.domains,comp.unix.programmer,comp.unix.sco.programmer
Subject: Get client machine's IP-address
Date: Wed, 05 May 1999 16:56:17 +0200

Hi, world

Does anybody know how can I get in a stand-alone C/C++ program, running
on a server machine
but started during a telnet/rlogin session, the IP-address of the client
machine that launched the
telnet session ?

Obviously the program doesn't anything know about the client machine.

Thanks,
Luke
[EMAIL PROTECTED]



------------------------------

From: FX <[EMAIL PROTECTED]>
Subject: Where can I find /usr/sbin/chat sources ?
Date: Wed, 05 May 1999 16:08:01 +0200

Hello,

I want to find /usr/sbin/chat working with pppd Daemon, to customize it
for a specific application !
First, is it allowed ? And then, where can I find the source code ?

Thanks

FX


------------------------------

From: Jamie Walker <[EMAIL PROTECTED]>
Subject: Re: Banshee Drivers
Date: Wed, 5 May 1999 16:48:11 +0100

In article <[EMAIL PROTECTED]>, Kyle Cowan
<[EMAIL PROTECTED]> writes
>Does anyone know the wherabouts of a Creative Labs Banshee driver or
>anything compatible for Linux?
>
>I need one to run Linux and it is driving me insane that I can't play
>Q3TEST!
>
>Please send me an e-mail at : [EMAIL PROTECTED]
>
>Thanx
>
>
developer.soundblaster.com/linux

HTH,
-- 
Jamie Walker,                     http://www.howgarth.demon.co.uk/
LaL Computers: http://lal.rvx.net/ <- for cheap computer hardware.
"You're one of those condescending Unix computer users!"
"Here's a nickel, kid.  Get yourself a better computer" - Dilbert.

------------------------------

From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: Problem: Block on freelist at 008c8910 isn't free
Date: 5 May 1999 14:20:35 -0500
Reply-To: [EMAIL PROTECTED]

In article <7goh4k$cr9$[EMAIL PROTECTED]>, norton_ng wrote:
>        Problem: Block on freelist at 008c8910 isn't free

The kernel is reporting some sort of problem.  Are you running
the most recent 2.0.x or 2.2.x kernel?  Are there any relevant
messages in your log files (in /var/log/)?

If there are, you may wish to make a bug report after reading
Documentation/oops-tracing.txt in the kernel source.

-- 
Paul Kimoto             <[EMAIL PROTECTED]>

------------------------------

From: "FM" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.misc,comp.os.linux.powerpc
Subject: Re: Mac-emulation on Linux?
Date: 5 May 1999 16:48:43 GMT

Steven G. Johnson <[EMAIL PROTECTED]> wrote:

> Like (essentially) all versions of Linux, the Mac Linux distributions run
> X.  They also run all the various window managers, desktop environments
> like KDE, GNOME, etc.

Just another related question. Do all macs have one
mouse button or is it that it's so common that I've
never encountered a mac with multiple mouse buttons.
I'm quite used to 3-button Logitech mice that I
find many 2-button mice very limiting and wonder if
I could make use of multiple-button mice on a mac?
If there are some available (which I assume), does
the X windows (and window managers/desktop
environments) make use of the extra buttons? How
does it behave without the extra buttons?

Dan


------------------------------

From: "Stefan Monnier <[EMAIL PROTECTED]>" 
<[EMAIL PROTECTED]>
Subject: Re: Files larger than 2 GB on Intel/Linux
Date: 05 May 1999 15:17:12 -0400

>>>>> "Eildert" == Eildert Groeneveld <[EMAIL PROTECTED]> writes:
> it again. We are about the by a really big Alpha server with some 3GB

There are several issues.  First is the filesystems themselves:

- ext2fs in linux-2.2 supports files bigger than 2GB (up to 1TB for
  filesystems with sufficiently big blocks (the limit comes from the
  triple-indirect blocks)).
- NFS only supports 32bits.
- NFSv3 supports 64bits (NFSv3 is available as a patch to the standard
  distribution).
- ...

Then, there is the interface between the user-code and the filesystem code:
On Linux-2.0, there is no support for more than 2GB files.
On Linux-2.2, files bigger than 2GB are supported but only on 64bit
architectures (alpha, Sparc64, ...).  So on Intel, you're out of luck.
But there is a patch (in alpha or beta quality, I don't know) for linux-2.2
that adds support for 64bit filesize on 32bit architectures (such as x86).
The catch is that any program that wants to access such a large file needs
recompilation.


        Stefan

------------------------------

From: James Youngman <[EMAIL PROTECTED]>
Subject: Re: CVS (Re: Bill Gates, self made man, NOT!)
Date: 04 May 1999 23:05:19 +0100

Peter Dalgaard BSA <[EMAIL PROTECTED]> writes:

> The thing that worries me with this kind of reasoning is that there's
> so much software which - for better or worse - is controlled by CVS,
> that it will be damn near impossible to get people to switch. Sort of
> like the FORTRAN or COBOL of version control. One possibility could be
> to start by redesigning the repository database, while maintaining the
> current CVS command set. Then add improved commands. [And, no, I'm not
> the one to do it].

Actually I think the shoe is on the other foot.  If another system
were available which would allow a better system, then the big
question is, can we use our existing CVS repository and tags?  To have
to start the repository again from version 1.1 is in many cases too
high a cost.

-- 
ACTUALLY reachable as @free-lunch.demon.(whitehouse)co.uk:james+usenet

------------------------------

From: James Youngman <[EMAIL PROTECTED]>
Subject: Re: CVS (Re: Bill Gates, self made man, NOT!)
Date: 04 May 1999 23:09:26 +0100

"G. Sumner Hayes" <[EMAIL PROTECTED]> writes:

> Christopher Browne wrote:
> > On the other hand, with respect to building the "better Version 
> > Control System," it sounds to me like there is pretty substantial 
> > agreement that we don't quite have it right yet.
> 
> I just want to clarify that Larry McVoy actually has bitkeeper working
> and from what I gather reading linux-kernel he and Linus actually 
> believe that it is a better mousetrap.  I don't believe there is an
> official release yet, but Larry has been populating a repository with
> all of the old Linux kernels with the expectation that 2.3.0 or some
> future kernel will start development there.  There will still be
> regular patch releases and Linus will accept regular patches, but
> it's hoped that bitkeeper will ease the Linus-burden a bit.
> 
> I don't know enough about the issues involved to comment meaningfully
> wrt whether or not bitkeeper is actually better than CVS/PRCS/SCCS/
> ClearCase/etc.

The significant thing from the Linux pov is that it allows satelite
repositories -- for example, somebody working on some-video-card can
commit to Alan Cox's repository (if Alan previously configured this as
allowable) and if Alan blesses the patch set, it can be passed onto
Linus's repository.  I think that BK maintains an "incoming-patches"
queue, for patches which are known but not yet blessed or discarded.

-- 
ACTUALLY reachable as @free-lunch.demon.(whitehouse)co.uk:james+usenet

------------------------------

From: James Youngman <[EMAIL PROTECTED]>
Subject: Re: Journaled Filesystem
Date: 04 May 1999 23:12:11 +0100

Dara Hazeghi <[EMAIL PROTECTED]> writes:

> Hello,
>     I was wondering if Linux will be getting a Journaled Filesystem
> anytime soon and if such a project is in the works (ext3?). With systems
> like BeOS and HP-UX that do have journaled filesystems, hard rebooting
> causes no damage to the files

This is a mistaken assumption.  A journalled filessytem guarantees
that the on-disk data is or can be made consistent with the OS's view
at some moment before the crash, but it cannot ensure that application
data is not lost, unless the applications each take responsibility for
treating the filesystem in a transactional manner.

> which means no fscking or anything. This in turn transfers to
> quicker boots and less downtime. Although such a filesystem is
> inherently slower 

I have heard SCT remark that it is not always much slower.

-- 
ACTUALLY reachable as @free-lunch.demon.(whitehouse)co.uk:james+usenet

------------------------------

From: James Youngman <[EMAIL PROTECTED]>
Subject: Re: system() in glibc
Date: 04 May 1999 23:02:04 +0100

Pablo Osinaga <[EMAIL PROTECTED]> writes:

> there is a problem with system in new glibc versions.
> when i do system() in a process, the new created process has problems
> with signals,
> 
> in practice:
> 
> //    dosomething.c
> 
> void handler()
> {
>     printf("signal received\n");
>     system("dosomething &");
> }
> 
> void main(void)
> {
>     signal(SIGIO, handler);
>     pause();
> }
> 
> if i do:
> 
> $ dosomething &
> 
> and then 'killall -SIGIO dosomething'
> a new 'dosomething' process is created but when i do
> 
> killall -SIGIO dosomething
> 
> nothing is done, 'dosomething' doesn't even die. neither print nor
> system any stuff....
> 
> i've fixed this recompiling with older versions of libc, and it worked
> ok, but i need to compile with glibc due to some other restrictions...
> what can i do? i've also tried the fork-exec method with the same
> result...
> 
> any solutions from you?

According to the Unix98 standard:-

]] If the signal occurs other than as the result of calling abort(),
]] kill() or raise(), the behaviour is undefined if the signal handler
]] calls any function in the standard library other than one of the
]] functions listed on the sigaction() page or refers to any object
]] with static storage duration other than by assigning a value to a
]] static storage duration variable of type volatile sig_atomic_t.
]] Furthermore, if such a call fails, the value of errno is
]] indeterminate.


Needless to say, system() is not listed in the sigaction() page.

-- 
ACTUALLY reachable as @free-lunch.demon.(whitehouse)co.uk:james+usenet

------------------------------

From: [EMAIL PROTECTED] (bill davidsen)
Crossposted-To: comp.os.linux.hardware
Subject: Re: /dev/hda1 has reached maximal mount count, check forced
Date: 5 May 1999 22:28:30 GMT

In article <7gjsmn$ib4$[EMAIL PROTECTED]>,
Peter Samuelson <[EMAIL PROTECTED]> wrote:

| Of course the ultimate answer (TM) is sct's journalling extensions,
| which among other things make `fsck' very fast and integrated into the
| standard `mount' call.  The alpha version is due out Real Soon Now.

Do understand that use of jfs just ensures that the data on the disk is
what you intended to write. A full fsck checks to see that what is on
the disk is valid. Some directory botch days ago wil not be in the jfs
log, you have to look for it.

Having used a jfs on AIX for years I don't see it as a particular
solution, it doesn't prevent as many problems as a full fsck, and it
slows the system by making a lot of i/o synchronous instead of cached.
On a clean shutdown you don't need it, on a hard crash it may not be
enough.

Sure would like to disable the mount count with a lilo option or some
such, there are times when I need a system up *now* not after the time
it takes to frolic through 40GB of RAID storage.

-- 
bill davidsen <[EMAIL PROTECTED]>  CTO, TMR Associates, Inc
  One common problem is mistyping an email address and creating another
valid, though unintended, recipient. Always check the recipient's
address carefully when sending personal information, such as credit
card numbers, death threats or offers of sexual services.


------------------------------

From: "Kyle VanderBeek" <[EMAIL PROTECTED]>
Subject: Re: -= Problem about remote IP addresses =-
Date: Wed, 5 May 1999 15:32:00 -0700

Your question is a little poorly phrased, but I'll dive in.  I'm assuming
that you're using squid as a web server accelerator?  In either case, squid
(last I checked) puts the client machine's info in a X_FORWARDED_FOR or
something like it header.

JB <[EMAIL PROTECTED]> wrote in message
news:7gmubn$cri$[EMAIL PROTECTED]...
> Hello,
>
> One question again !
>
> I'm using an Apahe Web server, and a Squid proxy. When a client is
> connecting on Apache using a CGI sript,
> I'm checking the REMOTE_ADDR variable, in order to get the IP adress of
this
> client.
>
> Unfortunately, the IP adress that I get is the one of the proxy, i.e. the
> Apache server's adress !
>
> So, my question id:
>
> How can I get the client's IP address, in spite of Squid keeps on running
(I
> really need the proxy !).
>
> If you can help.. thanks !
>
> Dave
>
>
>



------------------------------

From: [EMAIL PROTECTED] (Paul Kimoto)
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup
Subject: Re: Problems compiling Kernel 2.2.7
Date: 5 May 1999 14:17:18 -0500
Reply-To: [EMAIL PROTECTED]

In article <[EMAIL PROTECTED]>, Sellaro wrote:
> checksum.c:204: redefinition of 'csum_partial_copy'
> checksum.c:109: 'csum_partial_copy' previously defined here
> {standard input}: Assembler messages:
> {standard input}:185: Fatal error: Symbol csum_partial_copy already
> defined.

Did you know that this is a frequently asked question whose answer
can be readily found through http://www.dejanews.com/ ?

There is no (ix86) checksum.c file in the 2.2 kernel series.  It must
be left over from some old kernel source.  Delete it.

-- 
Paul Kimoto             <[EMAIL PROTECTED]>

------------------------------

From: [EMAIL PROTECTED] (Steven G. Johnson)
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.misc,comp.os.linux.powerpc
Subject: Re: Mac-emulation on Linux?
Date: Wed, 05 May 1999 19:31:53 -0400

"FM" <[EMAIL PROTECTED]> wrote:
> Just another related question. Do all macs have one
> mouse button or is it that it's so common that I've
> never encountered a mac with multiple mouse buttons.

Apple only ships mice with single buttons, but you can buy multiple-button
mice from third-party vendors.  (e.g. Kensington sells nice three and four
button mice and trackballs for Macs.  I haven't tried it myself, but
various people on comp.os.linux.powerpc have reported getting the extra
buttons to work under LinuxPPC.  Alternatively, if you have one of the
newer Macs with USB, reportedly the Linux USB drivers support
multiple-button mice automatically.)

Steven

PS. I'm directing followups to comp.os.linux.powerpc, as the crossposted
newsgroups are clearly no longer relevant to this discussion.

------------------------------

From: [EMAIL PROTECTED] (David T. Blake)
Subject: Re: Glibc rant
Date: 05 May 1999 13:19:25 -0700

Mark Shinwell <[EMAIL PROTECTED]> writes:

>It's all very well having to recompile "ncurses and a few other
>things", but this is the system C library we are talking about here,
>not some auxiliary library.  In my opinion it's one of the main parts
>of the system after the kernel that should be kept completely
>backwards-compatible.

That leads to incredible cruft build-up.

Periodically significant backward compatibility needs to
be broken for lots of reasons.

By the way, Xlib and all of the image libraries need to be
recompiled as well. I would pretty much recommend grabbing every
library you can get your hands on from a distribution that has
a glibc2.1 release, or facing the prospect of recompiling a
lot of stuff. 

-- 
Dave Blake
[EMAIL PROTECTED]

------------------------------

From: [EMAIL PROTECTED] (Peter Samuelson)
Subject: Re: suggestion to scsi-drivers
Date: 5 May 1999 15:21:26 -0500
Reply-To: Peter Samuelson <[EMAIL PROTECTED]>

[Sascha Bohnenkamp <[EMAIL PROTECTED]>]
> ok, than i have a hd with scsi-id 0, and one with scsi-id 2 they get
> /dev/sda and /dev/sdb now I put a new drive with scsi-id 1 into the
> system and it get dosish mixed ...

Yet Another Advantage of Devfs [tm].  See:

  http://www.atnf.csiro.au/~rgooch/linux/docs/devfs.txt

-- 
Peter Samuelson
<sampo.creighton.edu!psamuels>

------------------------------

From: laurent collot <[EMAIL PROTECTED]>
Subject: crash with 2.2.x SMP under heavy disk activity
Date: Thu, 06 May 1999 01:42:25 +0000

Hello everyone,

I wonder if anyone encounters the same problems we have : crashes under
2.2.x (seems not to matter to much) under heavy scsi disk activity.
The dual PII 450 MHz, which used to be rock solid under 2.0.x SMP,
crashes after "big" files (like 10-50 Mb) are written (not 100% sure) to
its disks.

It seems not to be a low-level scsi device driver (tested AHA2940UW &
Tekkram 390 UW adapters = same behavior)...

My guess is the fs itself got broken...

Any idea?
Thanks in advance,

Laurent Collot
[EMAIL PROTECTED]


------------------------------

From: [EMAIL PROTECTED]
Subject: dlopen() and _init()
Date: Wed, 05 May 1999 23:53:56 GMT

I am trying to do work with dynamic loading of libraries and cannot
find any reference to the form of _init() and _fini().  I could make
guesses and it would probably work, but I would prefer a better
answer.  (It would also be nice if it was added to the manpage and/or
header file at some point.)  Thanks...

------------------------------

From: AKK <[EMAIL PROTECTED]>
Crossposted-To: 
it.comp.linux.development,comp.os.linux.networking,comp.os.linux.development.apps,comp.programming,comp.protocols.tcp-ip,comp.protocols.tcp-ip.domains,comp.unix.programmer,comp.unix.sco.programmer
Subject: Re: Get client machine's IP-address
Date: Wed, 05 May 1999 19:44:56 GMT



Iond Research Srl wrote:

> Hi, world
>
> Does anybody know how can I get in a stand-alone C/C++ program, running
> on a server machine
> but started during a telnet/rlogin session, the IP-address of the client
> machine that launched the
> telnet session ?
>
> Obviously the program doesn't anything know about the client machine.
>

In unix all logins are recorded in the /etc/utmp file. You could find out
the
format (man utmp) of the file and read the IP address of the client which
started current session(using current pty as the key)  from it or use
"system" system call to run a script which returns the IP address to an ENV
variable and read it into the C code

$who -R am i  | awk { print $6 } /who with some option depending on the
                                                  / implemetation should
return the IP of
                                                 /client that started the
current session

There should be a better way of doing it..any suggestions......


------------------------------

From: Tony Young <[EMAIL PROTECTED]>
Crossposted-To: linux.dev.kernel
Subject: Re: Accessing a process' last error count
Date: Thu, 06 May 1999 10:03:46 +1000 (EST)
Reply-To: [EMAIL PROTECTED]

Thanks for the pointer.

strace has the luxury of control over the executable. That's how it follows
system calls and can display their arguments and return codes. Unfortunately I
don't have this luxury and need to find some way to get it through the system.

So far it's looking as though the only way I can do this is by writing my own
kernel module which provides the data I need - this is a last resort though.

Thanks again though Peter.

On 03-May-99 Peter.vanHelden wrote:
> Have a look at how strace does this.
> 
> 
> Peter
> 
> In article <[EMAIL PROTECTED]> you wrote:
> 
>: Anyone know how (if?)I can programmatically access the last error code
>: produced by a given process? (ie not my own). 
> 
>: I'm writing a process scanner and need to access this value, as well as
>: the number of semaphores open by the process, if possible. 
> 
>: I know that the task_struct structure in the kernel contains this
>: information - but I don't think I've got access to that structure in my
>: user code, and /proc/pid/stat doesn't have those values. 
> 
>: If anyone knows how a user process can get at a process' task_struct
>: (root access isn't a problem), or some other way to get at this info,
>: please let me know. 
> 
>: Thanks. 
>: Tony 
> 
>: --
>: Tony Young
>: Software Engineer    Tel: +612 9966-1066  Fax: +612 9966-1042
>: Integrated Research  Level 10, 168 Walker St, Nth Sydney, NSW 2060 Aus.
>: [EMAIL PROTECTED]    http://www.ir.com.au


--
Tony Young           Mob: 0414 64 99 42
Software Engineer    Tel: +612 9966-1066  Fax: +612 9966-1042
Integrated Research  Level 10, 168 Walker St, North Sydney, NSW, 2060, Aus.
[EMAIL PROTECTED]    http://www.ir.com.au


------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list (and comp.os.linux.development.system) via:

    Internet: [EMAIL PROTECTED]

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Development-System Digest
******************************

Reply via email to