Linux-Development-Sys Digest #745, Volume #6 Wed, 26 May 99 06:15:13 EDT
Contents:
Re: mounting /dev/loop* with uid>0 (M van Oosterhout)
Re: opening socket in a device (M van Oosterhout)
Re: XWindows and RedHat 6.0 ("Kostas Kostiadis")
Re: driver needs to find another driver... how?? (M van Oosterhout)
Re: RedHat 6.0 SMP compile (Wendell Nichols)
Re: [q] application using sg ("Arne K. Haaje")
Re: Modularizing loop device encryption filters (Andi Kleen)
Re: data acquisition, please help me to run away from windows ("Scot E. Wilcoxon")
Re: data acquisition, please help me to run away from windows (James Bean)
Re: Modularizing loop device encryption filters (Jan Fredrik Leversund)
does linux suppurt thread programing ("Yossi Yamin")
XXX PAMELA ANDERSON VIDEO (FREE) - xxx.htm 602 bytes (1/1) 58248
([EMAIL PROTECTED])
Red Hat Consultant Needed In Los Angeles (PTD - Justin)
mounting /dev/loop* with uid>0 (Mario Lang)
Re: advance power management (Allin Cottrell)
SMP needlessly migrating processes between processors? (Skip Montanaro)
Re: Large CD-ROM file errors...? (Mark Tranchant)
Re: mkinitrd error (Igor Zlatkovic)
----------------------------------------------------------------------------
Date: Wed, 26 May 1999 11:14:20 +1000
From: M van Oosterhout <[EMAIL PROTECTED]>
Subject: Re: mounting /dev/loop* with uid>0
Mario Lang wrote:
>
> Hello.
>
> Im currently developing a cgi perl script which makes use of the
> /dev/loop* devices to modify a bootdisk image on the fly.
> I came across two types of problems for which I need a solution:
> First of all, onyl root is allowed to use /dev/loop0 devices.
> Does anyone know how to modify /etc/fstab to override the
> defaults for /dev/loop* ?
Can't help you there...
> Secondly, I tried to modify my script so that it suids
> to root. After some painful hours of trying several things
> my script reported that it was now started as root!! COOL!
> But as I tried my mount thingy, it said:
> Only root can do that.
Scripts are not allowed to be setuid root due to race
conditions. Perl scripts can be made setuid using
suidperl. Maybe you should consider using super.
> So it seems as the set uid thing didnt really work for the mout command.
Setuid isn't automatically inherited as you would
expect. You need to fiddle with your uids to make
it really root.
> Cya,
> Mario <[EMAIL PROTECTED]>
> http://delysid.org/
> Radio@http://143.224.68.49:8005
Hope this helps
Martijn van Oosterhout
Australia
------------------------------
Date: Wed, 26 May 1999 11:10:35 +1000
From: M van Oosterhout <[EMAIL PROTECTED]>
Subject: Re: opening socket in a device
Andreas Moroder wrote:
>
> Hi,
>
> we have big problems with lpd and out HP JetEX print servers that don't
> comunicate a standard way with linux.
As far as I can gather from your post, this is a printer
you connect to your network? Otherwise your references to
socket and connect make not sense.
> The only solution seems to me to write a device driver that talks to the
> JetEX.
If this is so then it doesn't need to be a kernel module.
/etc/printcap allows you to specify arbitrary programs
to run when someone prints to a printer.
> Now I have two parts ready:
>
> 1. A skeleton device driver that prints only messages to the console whe in
> open and close teh device.
> 2. The real program that comunicates with the HP JetEX.
> This prog uses the socket and the connect funtion to connect to the
> printserver.
>
> If I join this to programs and make insmod the loader tells me it does not
> know where to find "socket" and "connect".
socket and connect are not generally available to
kernel modules. This should be written as a user
space program.
>
> What kernel functions can I use instead of "socket" and "connect" ?
>
> "The Linux Programmer's Guide" in the LDP tells me that both are part of
> the syscalls available. Are they or aren't they.
>
> I you can help me please send the answer to
>
> amoroder@[nospam]se-nord.provinz.bz.it
>
> Thank you
>
> Andreas Moroder
Hope this helps
Martijn van Oosterhout
Australia
------------------------------
Reply-To: "Kostas Kostiadis" <[EMAIL PROTECTED]>
From: "Kostas Kostiadis" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: XWindows and RedHat 6.0
Date: Tue, 25 May 1999 16:08:37 +0100
Carlos Rodrigues <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> I've recently upgraded from redhat 5.2 to 6.0 and I'm experiencing a
> problem(?) with XFree86, if I exit X and then start it again almost
> immediately, it stops for a few seconds before starting to run the
> windowmanager, which doesn't occur if I run something in between (like
> ls). I wonder what the hell it is doing as this does not happen in 5.2.
>
> Any ideas?
It seems to me there is no problem at all !!!
Everything works fine, but you just have to wait for
an extra few seconds !!!
Maybe it has to do with caching, or some processes
are not completely dead, so when you restart immediately,
the clean-up from the previous exit hasn't finished yet.
However when you run something in between, you give the
system the few extra seconds it needs to clean-up, so then
when you restart, it starts immediately...
This is just a guess, and I am by no means a linux expert...
But this doesn't sound like a very serious problem, so
don't waste too much time over it...
Cheers,
K.
------------------------------
Date: Wed, 26 May 1999 11:23:25 +1000
From: M van Oosterhout <[EMAIL PROTECTED]>
Subject: Re: driver needs to find another driver... how??
Not sure if I can really help, but here goes...
Dan Miller wrote:
>
> I'm writing a linkage driver that needs to hook up to another device driver
> in the system.
Is it the same driver everytime? Note that kernel modules
can call functions in other kernel modules as well as the
main kernel.
> As currently written, the major and minor numbers of the target device must
> be passed
> to the link driver when it is loaded, as arguments to insmod. I find this
> annoying, since
> the required information is already available from the device node.
You mean want your device to look up the device number for you? This
is a bad idea as the kernel is only supposed to provide machanism
not policy. The user should be able to rename the device if they
want to.
> Unfortunately,
> NONE of the normal functions for getting information from the device node
> seem to be
> valid in a device driver; stat(), open(), etc are all undefined. When I try
> to include
> sys/stat.h, I get tons of duplicate definitions and other problems.
The kernel is not allowed to use any of the functions in
the standard C library. Only the stuff defined in the linux/*
and asm/* headers are valid.
>
> Is there some other way that I can find these values?? I only need them for
> get_tty_driver(), which gives me the tty information for the target device.
> It seems reallly odd that a device driver can't determine device
> information...
You can walk the kernel structure you find the information.
Are you sure you need to do this?
>
> Dan Miller the confused
Hope this helps...
Martijn van Oosterhout
Australia
------------------------------
From: Wendell Nichols <[EMAIL PROTECTED]>
Subject: Re: RedHat 6.0 SMP compile
Date: Tue, 25 May 1999 14:54:27 -0600
Reply-To: [EMAIL PROTECTED]
This is a multi-part message in MIME format.
==============81E57F8E088518164D9D4BBD
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I made a new initrd image. Same problem :(
[EMAIL PROTECTED] wrote:
> Wendell Nichols <[EMAIL PROTECTED]> wrote in comp.os.linux.development.system:
>
> WN>I have an ASUS dual pentium II, 400. I've installed rh60 on it and it works,
> WN>but comes with smp turned off by default. So I make config (turn on smp), make
> WN>clean, bzImage, modules, modules_install etc.
> WN>As a precaution I do a depmod -a 2.2.5-15smp, and every single configured module
> WN>gets an "invalid reference in xxxxx.o" error. Recompile without smp and all is
> WN>fine, (except that one of my processors waits at the speed of light :(
> WN>If I boot the smp image, it gets to the point where it does the "module
> WN>dependancies" ( I forget the exact wording )
> WN>and hangs hard. Won't ctrl/alt/del, has to be reset.
> WN>Has anyone else seen this behavior? I think there is just something wrong with
> WN>the smp modules compile.
>
> I had a similar (but different) problem. I installed 6.0 on my dual
> PPro/200. The SMP was not turned on even though I specifically requested
> SMP components to be turned on. I added SMP kernel image to
> /etc/lilo.conf. Everything was fine, but it would not load any of the
> modules (most importantly my scsi). After scratching my head for 2 days,
> I was about to give up. Then it dawned on me that I needed to create an
> SMP initrd image using mkinitrd. After that all was well. I ended up
> using default image on 6.0 CD.
==============81E57F8E088518164D9D4BBD
Content-Type: text/x-vcard; charset=us-ascii;
name="wcn00.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Wendell Nichols
Content-Disposition: attachment;
filename="wcn00.vcf"
begin:vcard
n:Nichols;Wendell
tel;work:1800 267 2928 ext 153
x-mozilla-html:TRUE
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;19328
fn:Wendell C. Nichols
end:vcard
==============81E57F8E088518164D9D4BBD==
------------------------------
From: "Arne K. Haaje" <[EMAIL PROTECTED]>
Subject: Re: [q] application using sg
Date: Tue, 25 May 1999 22:46:20 +0200
Kim Tae Hyung wrote:
>
> Sorry for my poor english, in advance.
>
> I think we can write a device driver or some applications
> on user level using sg(scsi generic device driver interface).
>
> but, I cannot find some examples.
>
> Could you please tell me some useful and simple application
> (or device driver) on user level using sg?
>
> Thanks
> Enjoy your linux, today.
> --
> ############################################
> Name : Kim Tae Hyung
> homepage : http://www.postech.ac.kr/~kotaeji
> email : [EMAIL PROTECTED]
> ############################################
I think an cd-recording package use sg. Try cdrecord.
Arne
--
================================
Arne K. Haaje |
Enebakkveien 2 | M: 92 88 44 66
N-1825 Tomter | [EMAIL PROTECTED]
================================
The system needed Windows 95
or better, so I installed Linux!
------------------------------
Subject: Re: Modularizing loop device encryption filters
From: Andi Kleen <[EMAIL PROTECTED]>
Date: 26 May 1999 01:08:33 +0200
Jan Fredrik Leversund <[EMAIL PROTECTED]> writes:
> I recently found myself manually patching encrytion filters from kernel
> 2.0.x into the loop device code in 2.2.x and 2.3.x kernels. It struck me
> while I was working with it that this kind of stuff would probably be
> best to modularize, that is, leave the filters out of the loop code and
> just write some generic filter interface.
You didn't seem to look at the 2.2 loop device code too closely; if you had
you would have discovered that it already supports filtering modules fine.
-Andi
--
This is like TV. I don't like TV.
------------------------------
From: "Scot E. Wilcoxon" <[EMAIL PROTECTED]>
Subject: Re: data acquisition, please help me to run away from windows
Date: Tue, 25 May 1999 21:32:29 -0500
On the Linux Google search page
http://www.google.com/linux
type
data acquisition
press
Enter
You'll have links to several pages.
If you are more specific, such as whether
you need to talk to Data Highway, search
for that.
------------------------------
From: James Bean <[EMAIL PROTECTED]>
Subject: Re: data acquisition, please help me to run away from windows
Date: Tue, 25 May 1999 22:21:15 +0000
aZZa amarela wrote:
>
> hello
>
> i can't find a pcmcia card to do data acquisition of a 24 bit digital signal
> under linux.
> i've searched .. and searched ... with no luck at all.
> the card manufacters still keep forget linux, i wonder if someone knows of a
> card i could use.
> if i can't find a suitable card i will have to go back to windows.
> any help is welcome.
>
> TIA all
>
> azza amarela
hi,
Check the Linux Lab Project at www.llp.fu-berlin.de. Lots of drivers.
cheers Jim Bean
------------------------------
From: Jan Fredrik Leversund <[EMAIL PROTECTED]>
Subject: Re: Modularizing loop device encryption filters
Date: Tue, 25 May 1999 16:53:06 +0200
Reply-To: [EMAIL PROTECTED]
"J.H.M. Dassen (Ray)" wrote:
> Crypto patches for current kernels are actively maintained; see
> http://www.kerneli.org/ for details.
I neglected to mention that this was a crypto-method that does not exist
in the International Kernel.
--
Jan Fredrik Leversund ([EMAIL PROTECTED])
Consultant at Avenir (http://www.avenir.no)
Phone: +47-55360592, Cellular: +47-90198866
Address: Strimmelen 8, 5030 LAND�S, Norway
------------------------------
From: "Yossi Yamin" <[EMAIL PROTECTED]>
Subject: does linux suppurt thread programing
Date: Tue, 25 May 1999 18:59:49 +0300
please help does linux suppurt posix thread programing??
------------------------------
From: [EMAIL PROTECTED]
Subject: XXX PAMELA ANDERSON VIDEO (FREE) - xxx.htm 602 bytes (1/1) 58248
Date: 25 May 1999 23:14:48 -0600
begin 644 xxx.htm
M/&AT;6P^#0H-"CQH96%D/@T*/'1I=&QE/GAX>"!6:61E;SPO=&ET;&4^#0H\
M8F%S92!H<F5F/2)086TE,C F86UP.R4R,%1O;6UY)W,E,C!&4D5%)3(P6%A8
M)3(P5FED96\A(2$B/@T*/"]H96%D/@T*#0H\8F]D>2!B9V-O;&]R/2(C,# P
M,# P(B!T97AT/2(C1D8P,$9&(CX-"@T*/' @86QI9VX](F-E;G1E<B(^/&9O
M;G0@8V]L;W(](B-&1C P1D8B/B9N8G-P.SPO9F]N=#X\+W ^#0H-"CQP(&%L
M:6=N/2)C96YT97(B/CQF;VYT(&-O;&]R/2(C1D8P,$9&(CXF;F)S<#L\+V9O
M;G0^/"]P/@T*#0H\:#(@86QI9VX](F-E;G1E<B(^/&9O;G0@8V]L;W(](B-&
M1C P1D8B/D92144@4$%-("9A;7 [(%1/34U9)U,@2$%21$-/4D4@6%A8(%9)
M1$5/(#PO9F]N=#X\+V@R/@T*#0H\:#(@86QI9VX](F-E;G1E<B(^/&$@:')E
M9CTB:'1T<#HO+W=W=RYB86)Y;&]N+7@N8V]M+V-G:2UB:6XO8VQI8VL_:60]
M:F-R82(^/&9O;G0-"F-O;&]R/2(C1D8P,$9&(CY#3$E#2R!(15)%/"]F;VYT
M/CPO83X\+V@R/@T*#0H\:#(@86QI9VX](F-E;G1E<B(^/&9O;G0@8V]L;W(]
M(B-&1C P1D8B/BA!9'5L=',@;VYL>2DF;F)S<#L@/"]F;VYT/CPO:#(^#0H\
1+V)O9'D^#0H\+VAT;6P^#0H@
end
D)cg1bj):^
------------------------------
From: PTD - Justin <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking,comp.os.linux.setup
Subject: Red Hat Consultant Needed In Los Angeles
Date: Wed, 26 May 1999 01:45:58 GMT
In short, I need an on-call linux guru in the Los Angeles area.
For example, right now I need to move a web server from it's temporary
location in my home office to it's permanent location in an office in
Hollywood. I could fuddle with the IP settings under linuxconf and
probably get it, but I'd be much more at ease simply finding someone to
do it for me, to make sure it worked correctly. (I had a guy from USC
set it up initially, but he has since gone home for the summer.)
Also, my partner has an intraoffice network running Red Hat which needs
examining. It would appear that the proxy server is having difficulty
with requests to the outside world.
If you'd be interested in learning more, please drop me a line at
[EMAIL PROTECTED]
Thanks,
Justin
--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---
------------------------------
Subject: mounting /dev/loop* with uid>0
From: Mario Lang <[EMAIL PROTECTED]>
Date: Tue, 25 May 1999 14:59:23 GMT
Hello.
Im currently developing a cgi perl script which makes use of the
/dev/loop* devices to modify a bootdisk image on the fly.
I came across two types of problems for which I need a solution:
First of all, onyl root is allowed to use /dev/loop0 devices.
Does anyone know how to modify /etc/fstab to override the
defaults for /dev/loop* ?
Secondly, I tried to modify my script so that it suids
to root. After some painful hours of trying several things
my script reported that it was now started as root!! COOL!
But as I tried my mount thingy, it said:
Only root can do that.
So it seems as the set uid thing didnt really work for the mout command.
Does anyone have a solution for my problem??
Cya,
Mario <[EMAIL PROTECTED]>
http://delysid.org/
Radio@http://143.224.68.49:8005
------------------------------
From: Allin Cottrell <[EMAIL PROTECTED]>
Subject: Re: advance power management
Date: Wed, 26 May 1999 00:11:22 -0400
"Paul D. Pandian" wrote:
> Okay: Question. I upgraded the kernel to 2.2.0 (and tried all the rest
> upwards too inlcuding the latest 2.3.3). System cannot shutdown. Even when I
> selected the APM options under kernel configuration and compilation.
>
> What do I do ?
Read /usr/src/linux/Documentation/Configure.help and look for
references to APM. The kernel no longer does poweroff; when
you select that option in configuring the kernel, all you're
doing is "enabling" (not "activating") poweroff on shutdown.
Supposedly you need a recent "shutdown" binary (util-linux)
and give it the -p flag (or invoke it as "poweroff"). But
I have to say this has not worked for me :-(
--
Allin Cottrell
Department of Economics
Wake Forest University, NC
------------------------------
From: Skip Montanaro <[EMAIL PROTECTED]>
Subject: SMP needlessly migrating processes between processors?
Date: Wed, 26 May 1999 04:46:26 GMT
I recently started running RH 5.2 on a dual P-II box (Tyan Thunderbolt
motherboard). I'm running kernel 2.2.9. When I run a single
CPU-intensive process and launch xosview to watch things, I see a
pattern of CPU load that suggests to me that the single busy process is
migrating back and forth between the processors roughly every half
second or so. I see a little square wave pattern for the user time
portion of the two CPU's graphs. The patterns for the two processors
are roughly 180 degrees out of phase with one another. It seems to me
that the scheduler isn't weighting things heavily enough to keep
processes from migrating too much. Is this normal? Isn't there a cache
flush overhead when migrating processes between processors?
Thx,
--
Skip Montanaro | Mojam: "Uniting the World of Music"
http://www.mojam.com/
[EMAIL PROTECTED] | Musi-Cal: http://www.musi-cal.com/
518-372-5583
------------------------------
From: Mark Tranchant <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Re: Large CD-ROM file errors...?
Date: Wed, 26 May 1999 08:09:01 +0100
Reply-To: [EMAIL PROTECTED]
Matt Starnes wrote:
>
> It might have something to do with filesystems. The software we use in
> Windoze 95 defaults to create a Joliet filesystem on the CD-ROM which is I
> believe different from the standard ISO9660 format. You might want to
> reburn it and check that. Or you can compile Joilet support into your
> kernel.
Well, thanks for the effort, but to quote myself: "I booted up Linux
2.2.9, with full CD support including Joliet compiled in)"
Mark.
> > I got a friend to burn the StarOffice 5.1 download onto a CD-R for me
> > rather than taking it home on 51 floppies. This CD-R was burned under
> > Windows 95, with a file name of so51_lnx_01.tar (note: a long file
> > name!).
> >
> > On getting home, I booted up Linux (2.2.9, with full CD support
> > including Joliet compiled in) and tried to copy the 70.6MB file.
> > However, Linux could only see the first 16MB or thereabouts. The copy
> > succeeded and tar de-archived the file fine up to the truncation.
> >
> > So I tried DOS (7.0), which saw it as many files of about 650KB each,
> > all with the same name. Argh!
> >
> > Windows 95 read it correctly and copied it fine, although it took *ages*
> > (about 20 minutes on a 486DX4/120 with 24x EIDE drive).
> >
> > What's going on?
------------------------------
From: Igor Zlatkovic <[EMAIL PROTECTED]>
Subject: Re: mkinitrd error
Date: Wed, 26 May 1999 09:14:06 +0000
What worked? insmod loop, or reinstallation? :-)
> Danke zehr, Igor.
> Thank worked and mkinitrd now works.
--
o
O Cheers,
______O___
\________/ Igor Zlatkovic
\ o / mailto:[EMAIL PROTECTED]
\ O /
\ /
\/
|| University of Applied Sciences
___||___ Frankfurt, Germany, EU.
------------------------------
** 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
******************************