Linux-Development-Sys Digest #865, Volume #7 Wed, 17 May 00 05:13:15 EDT
Contents:
Re: Windows98 IDE driver screwed up Linux UDMA disk access? (Paul D. Smith)
e: Finding the status of a process (Jonathon Nichols)
Re: Can't boot 2.3.99pre8 on Pentium (bill davidsen)
Re: how do i get winmodem working? ("john.devoy")
Re: Can't boot 2.3.99pre8 on Pentium (Paul Kimoto)
Re: using ftp within a C-program (Josef Moellers)
polling device drivers? ([EMAIL PROTECTED])
Re: Webmin ("Jim Ross")
Re: inline to the extreme??? (Mathias Waack)
Re: Need ideas for university funded project for linux ("Richard Gill")
Re: using ftp within a C-program (Jarmo Salonen)
Re: Need ideas for university funded project for linux (Nico Coetzee)
Re: using ftp within a C-program (Jarmo Salonen)
Re: a RPC howto for the hopeless? (Park Key Young)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Paul D. Smith)
Subject: Re: Windows98 IDE driver screwed up Linux UDMA disk access?
Date: 16 May 2000 22:24:16 -0400
Reply-To: [EMAIL PROTECTED]
%% [EMAIL PROTECTED] (Stefaan A Eeckels) writes:
>> What appeared to cause Linux to choke was installing the different
>> Windows IDE controller driver in the first place. Once I did that and
>> rebooted, _neither_ Linux nor Windows would start up anymore.
sae> Did you reboot, or did you power-cycle?
Uhm... power-cycle.
>> I was able to get Windows to start up by disabling the controller in
>> the hardware profile, but that didn't help Linux at all (obviously).
st> tail /var/log/messages
st> There you should find some tips why it fell back into read-only.
st> Probably because the filesystem is corrupted.
>> Hmm. I looked but didn't see anything untoward. I'm not at my system
>> now but I'll double-check tonight.
You're right, there's a whole boatload of errors in there. I don't know
how I missed them last time.
===============================================================================
May 16 21:43:59 homebase kernel: hda: dma_intr: status=0x51 { DriveReady SeekComplete
Error }
May 16 21:43:59 homebase kernel: hda: dma_intr: error=0x40 { UncorrectableError },
LBAsect=952, sector=889
May 16 21:43:59 homebase kernel: end_request: I/O error, dev 03:01 (hda), sector 889
May 16 21:43:59 homebase kernel: bread in fat_access failed
<...I get the same thing 4 more times, about 2 seconds apart...>
May 16 21:44:11 homebase kernel: hda: dma_intr: status=0x51 { DriveReady SeekComplete
Error }
May 16 21:44:11 homebase kernel: hda: dma_intr: error=0x40 { UncorrectableError },
LBAsect=952, sector=889
May 16 21:44:11 homebase kernel: end_request: I/O error, dev 03:01 (hda), sector 889
May 16 21:44:11 homebase kernel: bread in fat_access failed
May 16 21:44:11 homebase kernel: Filesystem panic (dev 03:01).
May 16 21:44:11 homebase kernel: File without EOF
May 16 21:44:11 homebase kernel: File system has been set read-only
May 16 21:44:11 homebase kernel: FAT: fat_truncate called though fs is read-only,
uhh...
===============================================================================
sae> Is the /c partition _really_ read-only, or does it give you
sae> error messages after a write operation whilst still performing it?
I don't know how it's initially mounted, but by the time I get ready to
write to it, it's read-only. If I re-mount it read-write then try to
copy a file over, it fails partway through with an error, then if I try
to write to it again it's read-write:
# ls -l nav*
-rw-r--r-- 1 psmith psmith 11840961 Mar 20 21:34 navigator.tar.gz
# cp navigator.tar.gz /c/Debian
cp: /c/Debian/navigator.tar.gz: No space left on device
# df /c
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda1 9870280 2135488 7734792 22% /c
# ls -l /c/Debian/nav*
-rw-r--r-- 1 root root 778240 May 16 21:44 /c/Debian/navigator.tar.gz
# cp navigator.tar.gz /c/Debian/foo.tar.gz
cp: cannot create regular file `/c/Debian/foo.tar.gz': Read-only file system
The log messages tell the tail pretty well, I guess.
sae> You could try to boot from a rescue floppy (something
sae> like tomsrtbt) and see if the problem persists.
Hmm. That sort of presupposes the problem is in Linux somewhere?
sae> There are a couple of IDE settings that can be made persistent.
sae> Seening that you're running a recent kernel, go to the
sae> /proc/ide/ide0/hda directory, and cat settings:
sae> ebola ide0/hda# cat settings
ide0/hda# cat settings
name value min max mode
---- ----- --- --- ----
bios_cyl 1232 0 65535 rw
bios_head 255 0 255 rw
bios_sect 63 0 63 rw
breada_readahead 4 0 127 rw
bswap 0 0 1 r
file_readahead 124 0 2097151 rw
io_32bit 0 0 3 rw
keepsettings 0 0 1 rw
max_kb_per_request 64 1 127 rw
multcount 0 0 8 rw
nice1 1 0 1 rw
nowerr 0 0 1 rw
pio_mode write-only 0 255 w
slow 0 0 1 rw
unmaskirq 0 0 1 rw
using_dma 1 0 1 rw
sae> Use "hdparm" to get a more readable display of the settings:
sae> ebola:~ # hdparm -v /dev/hda
/dev/hda:
multcount = 0 (off)
I/O support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
nowerr = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 1232/255/63, sectors = 19807200, start = 0
/dev/hdb:
multcount = 0 (off)
I/O support = 0 (default 16-bit)
unmaskirq = 1 (on)
using_dma = 0 (off)
keepsettings = 0 (off)
nowerr = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 1868/255/63, sectors = 30015216, start = 0
sae> Did you notice the "keepsettings"? It's quite possible that
sae> the new driver enabled DMA, and that your motherboard/drive
sae> combination can't handle it.
using_dma is on, and keepsettings is off. It does seem suspicious.
How do I "fix" that? Can I just use hdparm -d0 /dev/hda?
sae> I'm puzzled that you have UDMA/66 capabilities in a year-old
sae> system (AFAIK, one needed to buy a separate controller card, as
sae> all chipsets were UDMA/33 only in those days --that might explain
sae> the 3 IDE controllers).
My bad; it's UDMA/33. FYI, I have an Abit AX6B motherboard (Intel
82440BX chipset). I have just the standard IDE controller.
I think the extra IDE controller "leaked" into my standard Windows
hardware profile when I tried to install VMware last summer; I put the
VMware stuff in a different hardware profile, but, well... it's Windows.
I noticed other things seemed to migrate over as well. That's the main
reason I punted VMware... I liked the product, it's too bad Windows was
too sucky to support it.
sae> BTW, put the CD-ROM as slave, and the Linux disk as master on the
sae> second IDE channel, especially if you tend to work a lot with
sae> /c whilst in Linux.
I actually don't usually do much with /c, so it's not a big deal, and
the way my cables vs. disk/cdrom are arranged I'd have to get a longer
one to do this. I'll keep it in mind if I start using /c more from
Linux.
Thanks!
--
===============================================================================
Paul D. Smith <[EMAIL PROTECTED]> Network Management Development
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
===============================================================================
These are my opinions---Nortel Networks takes no responsibility for them.
------------------------------
From: Jonathon Nichols <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.development.apps,comp.os.linux,comp.os.linux.misc
Subject: e: Finding the status of a process
Date: Wed, 17 May 2000 03:01:00 GMT
See the wait(2) manpage. It is referenced in the manpage for fork(2). wait
will
get you the exit status of the process. It will wait until the process exits,
so if you
don't want the parent to wait forever, pass wait the WNOHANG option, or set
an alarm to wake you up out of the wait call using the alarm() system call.
Doug Schulz wrote:
> I have a program that forks a process. I would like the process that
> did the forking to be able to get the status of the forked process.
> The parent process has the process ID of the forked process. How do I
> find what the exit status of the forked process is (if it has exited),
> or some piece of information that would allow me to conclude that the
> process is still running? Any help is appreciated.
>
> I am using the execvp( ) call after the fork in the child process.
>
> Thanks,
>
> Doug
=========================================================
Jonathon Nichols
Nichols Software Services, Inc.
------------------------------
From: [EMAIL PROTECTED] (bill davidsen)
Subject: Re: Can't boot 2.3.99pre8 on Pentium
Date: 17 May 2000 03:13:40 GMT
In article <[EMAIL PROTECTED]>,
Christian Winter <[EMAIL PROTECTED]> wrote:
| bill davidsen <[EMAIL PROTECTED]> schrob:
| > I built pre8 on an old Pentium 100, currently running pre6 just fine. On
| > boot it dumps registers and locks. Since it isn't working after that I
| > can't scroll back to see what it was trying to do at the point it
| > failed. Worked perfectly on pre6.
|
| Did you _really_ use the same configuration for kernel build?
| Look if you have e.g. forgotten to aktivate "vga mode select"
| in 'make config' but a 'vga=xxx' line in lilo.conf.
| (It was this reason here).
Definitely. I copied the entire pre6 tree to a pre8 directory, applied
the pre7 and pre8 patches, and did a 'make menuconfig' to check that
there were no new options I needed to set. I didn't want to play RAID on
this kernel, although I've been using the fine RAID patched in on other
machines. Nothing was changed on the first compile, the .config file is
the same except for the changes introduced by the upgrade.
I have since tried it on another machine and there was no problem with
a P-III, but the firewall stuff using iptables broke down, and when I
tried to look at the tables I got all "end of table" messages. I've been
using that machine as a test firewall for four days, and it hasn't been
a problem. It's back on pre6 working fine again.
Yes, I'll try to identify the problem better Thursday when I can play
again. Can't until then, I'm physically at another location, where I
will be trying a dual Celeron and dual P5MMX-166 system. And looking for
pre9, because this release seems to have a problem or two. Moving in the
right direction, though, on features.
--
bill davidsen <[EMAIL PROTECTED]> CTO, TMR Associates, Inc
"Doing interesting things with little computers since 1979"(tm)
The hardest test of maturity is knowing the difference between
resisting temptation and missing a once-in-a-lifetime opportunity.
------------------------------
From: "john.devoy" <[EMAIL PROTECTED]>
Subject: Re: how do i get winmodem working?
Date: Wed, 17 May 2000 02:03:24 +0100
In general you don't, i think Lucent is the only maker to come up with
non-windows drivers.
Buy an external modem, it will work on any OS.
------------------------------
From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: Can't boot 2.3.99pre8 on Pentium
Date: 17 May 2000 01:15:15 -0500
Reply-To: [EMAIL PROTECTED]
In article <8ft2p4$eq7$[EMAIL PROTECTED]>, bill davidsen wrote:
> the firewall stuff using iptables broke down, and when I
> tried to look at the tables I got all "end of table" messages.
Documentation/Changes says:
: iptables
: =========
:
: The 1.1.0 release:
: http://antarctica.penguincomputing.com/~netfilter/iptables-1.1.0.tar.bz2
: http://www.samba.org/netfilter/iptables-1.1.0.tar.bz2
: http://netfilter.kernelnotes.org/iptables-1.1.0.tar.bz2
The relevant mailing list here is archived at
http://lists.samba.org/listproc/netfilter/
--
Paul Kimoto <[EMAIL PROTECTED]>
------------------------------
From: Josef Moellers <[EMAIL PROTECTED]>
Subject: Re: using ftp within a C-program
Date: Wed, 17 May 2000 08:50:16 +0200
Jarmo Salonen wrote:
> =
> Hi how can I get files from a remote machine with FTP within a C-progra=
m are
> there any similar
> API functions like the one that MS has in their WinInet API.
You can take RFC959, which describes the FTP protocol, and implement it.
You could also use the ".netrc" funtionality of ftp:
- create a file $HOME/.netrc with the following contents:
machine <remote-name>
login <remote login name>
password <remote password>
macdef init
<put all commands you want executed here>
<terminated by an empty line>
- execute the ftp program, e.g. by calling "system("ftp
remote.machine");"
- remove the $HOME/.netrc file.
Make sure the .netrc file has a very restricted set of access rights,
"r--------" should suffice.
BTW The manual says "ftp" uses the HOME environment variable to locate
the .netrc-file, so you could create this file in some obscure location
(a temporary sub-directory in the user's home directory) and set the
HOME environment variable to point to that directory.
-- =
Josef M=F6llers
Fujitsu Siemens Computers
SHV Server DS 1
------------------------------
From: [EMAIL PROTECTED]
Subject: polling device drivers?
Date: Wed, 17 May 2000 06:59:09 GMT
i'm working on a developmental network driver, and i've been reading up
on rubini and examining 3c509.c, etc.
while the ultimate goal is an interrupt based driver, for target
specific reasons, i won't be able to use interrupts to start with, and
so need to use polling. in chapter 14, "interrupt-driven operation"
rubini actually alludes to the fact that some kernel drivers do use
polling, but unfortunately doesn't go into any more detail.
can anyone give me some pointers on how i would go about this, or which
kernel sources to check out?
thanks in advance.
--mk
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: "Jim Ross" <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup
Subject: Re: Webmin
Date: Wed, 17 May 2000 03:04:48 -0400
Mongoose <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Has anyone used the system administration program Webmin?
> http://www.webmin.com/webmin/
> I got this and thought it was a pretty good project. This was along
> the lines of the same project I was going to start, but decided not to
> since this was pretty much the same program I was going to do. But the
> thing is, I havn't seen many people use this. I've asked around about
> these types of programs but no one has ever mentioned it. Does anyone
> have any opinions on it?
I like it.
Then again the problem for me is anything web-based also seems a little
ugly, clunky, and slow, like webmail.
It's killer when you need it, but not my prefered my to do things. It would
actually seem better to run it on 100 client machines than
using it for a server since I can sit at my machine and tweak anything on a
remote lab machine without leaving my chair. In fact even
remotely reboot, which would scare someone if they were using it. :>
Too bad all client machines where I work run NT.
I agree though as the Linux desktop tools are that great and VB is a must.
Jim
------------------------------
From: Mathias Waack <[EMAIL PROTECTED]>
Subject: Re: inline to the extreme???
Date: Wed, 17 May 2000 09:24:22 +0200
Eric Taylor wrote:
> > Have you tried something like adding a -Dinline="" option to the topmost
> > kernel Makefile?
>
> Yes, I got a string of error messages which I did not
> try to diagnose further. I think there is something non-standard
> about the use of inline in the procedure def. When I tried to
> compile these routines with another compiler, it didn't accept
> the inline keyword in that position.
The kernel sources use a lot gcc extensions so it should be nearly
impossible to compile the kernel with a different compiler.
I'm not an expert, but I can give you one example for the need
of inlining: to eleminate unnecesary code. Try to compile a
module without optimization flags for the gcc. The gcc doesn't use
inlining without optimization, so there are a lot of external
functions. This give you some undefined symbols if you try to
load the module. If the compiler inlines the code, it can figure
out that some parts of this code are unused and eleminate it.
Mathias
--
Mathias Waack | [EMAIL PROTECTED]
Tel.: +49 621 181 2717 Fax.: +49 621 181 2713
------------------------------
From: "Richard Gill" <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Date: Wed, 17 May 2000 09:12:05 +0200
U can think about a New WindowManager, with a good interface, and toolkit
independant, but with possibly rely to Gnome component (I mean bonobo for
example). I'm already beginning on that project (alone for the moment, and
only on paper) so we could help together ;-)
bye.
Mongoose <[EMAIL PROTECTED]> a �crit dans le message :
[EMAIL PROTECTED]
> Hello,
> I am attempting to start a college project and have two of my
> ideas already being worked on. So I wanted to know what other people
> had for suggestions for linux projects? I was thinking of something
> along the lines of a project that would help promote the use of linux.
> What is something that most people could use? Something that could
> make a good 1 year R&D project?
------------------------------
From: Jarmo Salonen <[EMAIL PROTECTED]>
Subject: Re: using ftp within a C-program
Date: Wed, 17 May 2000 10:32:41 +0200
Yes there is something called WinInet API and it comes with MFC.
I has methods like, CInternetSession::GetFtpConnection,
CFtpConnection::OpenFile etc..
that makes it pretty easy to code apps that uses various internet protocols.
Right now I'm just playing around and testing different approaches to find the
best way to solve my problem.
So I don't feel like writing a complete FTP-client just for this.
Frank skrev:
> Jarmo Salonen <5YgU4.7742$[EMAIL PROTECTED]>...
> ^
> ^ Hi how can I get files from a remote machine with FTP within
> ^ a C-program are there any similar API functions like the one
> ^ that MS has in their WinInet API.
> ^
>
> I've never heard of a WinInet API but the Windows Sockets API (Winsock) is
> very similar to the Berkeley Sockets API, which is what Linux appears to be
> using. Are you referring to Winsock or to some kind of plug-n-play type
> programming API?
>
> Frank
------------------------------
Date: Wed, 17 May 2000 10:25:53 +0200
From: Nico Coetzee <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Crossposted-To:
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Mongoose wrote:
> Hello,
> I am attempting to start a college project and have two of my
> ideas already being worked on. So I wanted to know what other people
> had for suggestions for linux projects? I was thinking of something
> along the lines of a project that would help promote the use of linux.
> What is something that most people could use? Something that could
> make a good 1 year R&D project?
DEVELOP EDUCATIONAL SOFTWARE FOR PRIMARY AND SECONDARY LEVEL SCHOOL
If we can get Linux used in schools, it will have a good effect on
general use in about 5 to 10 years from now.
Think About IT!
Wish List:
* Multimedia CD-Roms on School Subjects
* Multimedia Encyclopedia CD-Roms
Cheers,
Nico
--
==============
The following signature was created automatically under Linux:
.
Household hint:
If you are out of cream for your coffee, mayonnaise makes a
dandy substitute.
------------------------------
From: Jarmo Salonen <[EMAIL PROTECTED]>
Subject: Re: using ftp within a C-program
Date: Wed, 17 May 2000 10:38:58 +0200
Thanks,
I that case I think I'll go for the .netrc solution even if I would have preferred
to use some library functions
like those in the WinInet API.
I'm just testing different approaches to solve a problem so i don't feel that I
have the
the time to implement a FTP-client right now.
Regards,
Jarmo Salonen
Josef Moellers skrev:
> Jarmo Salonen wrote:
> >
> > Hi how can I get files from a remote machine with FTP within a C-program are
> > there any similar
> > API functions like the one that MS has in their WinInet API.
>
> You can take RFC959, which describes the FTP protocol, and implement it.
> You could also use the ".netrc" funtionality of ftp:
> - create a file $HOME/.netrc with the following contents:
> machine <remote-name>
> login <remote login name>
> password <remote password>
> macdef init
> <put all commands you want executed here>
> <terminated by an empty line>
> - execute the ftp program, e.g. by calling "system("ftp
> remote.machine");"
> - remove the $HOME/.netrc file.
> Make sure the .netrc file has a very restricted set of access rights,
> "r--------" should suffice.
>
> BTW The manual says "ftp" uses the HOME environment variable to locate
> the .netrc-file, so you could create this file in some obscure location
> (a temporary sub-directory in the user's home directory) and set the
> HOME environment variable to point to that directory.
>
> --
> Josef M�llers
> Fujitsu Siemens Computers
> SHV Server DS 1
------------------------------
From: Park Key Young <[EMAIL PROTECTED]>
Subject: Re: a RPC howto for the hopeless?
Date: 19 May 2000 01:47:20 GMT
Travis Hein <[EMAIL PROTECTED]> wrote:
> I am fairly new at linux programming, and would like to learn more about how to
> use the Remote Procedure Call facilities in sunrpc.o module.
> I understand how to make linux kernel modules, and have made several sucessuflly
> on my
> own. I just need some gentle nudging to learn how to make use of the existing
> RPC features
> any help or direction would be greatly appreciated
> Travis
refer linux source tree.(especially nfs)
/usr/src/linux/fs/nfs/
mount_clnt.c, nfs2xdr.c
I think that is good examples
--
=================================================
Key-Young Park
[EMAIL PROTECTED] +82-562-279-5668
HP)011-744-2534
System Software Lab.,
Dept. of Computer Science & Engineering, POSTECH
------------------------------
** 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
******************************