Linux-Development-Sys Digest #818, Volume #6     Fri, 11 Jun 99 13:14:19 EDT

Contents:
  Re: Filesystems: Get full pathname from I-node ?? (Patrick Mourlhon)
  Re: Problems with Soundblaster 64 PCI (ES1370) (Konrad Mieredorff)
  Re: new kernel: LILO "kernel too big" error (Martin A. Boegelund)
  Re: long long... how to use?? (John Forkosh)
  Re: long long... how to use?? (J.H.M. Dassen (Ray))
  64-bit arithmetic inside kernel (Bill Woessner)
  kernel: NFS: cache locked? (David Ronis)
  Re: Kernel and FS on different partitions (Kalle Olavi Niemitalo)
  Re: Testing a kernel, boot from floppy? (Medical Electronics Lab)
  Re: TAO: the ultimate OS (Vladimir Z. Nuri)
  Re: Detecting multiple keystrokes simultaneously (Medical Electronics Lab)
  Re: the ultimate OS (Vladimir Z. Nuri)
  Re: Testing a kernel, boot from floppy? (Lew Pitcher)
  Re: TAO: the ultimate OS (Vladimir Z. Nuri)
  Re: driver for 724 XG chipset sound card ("Peter King")
  Re: the ultimate OS (Alexander Viro)
  Rage 128 driver for X ("Peter King")

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

From: Patrick Mourlhon <[EMAIL PROTECTED]>
Subject: Re: Filesystems: Get full pathname from I-node ??
Date: Thu, 10 Jun 1999 19:48:02 +0200


Hi !

I have done a bit of work in this area.
This work was mostly hacking in the 
'lsof' program.
lsof stands for 'list of open files'.
In fact the only easy pathnames you will
easily find, are those open or previously
opened. 
The kernel has a cache structure. I think
they call it 'dir_cache_entry' or something.
So if a file has been previously opened
you may find his pathname in this cache.
Otherwise there is no 'not time/cpu consuming'
i know that will give you the pathname of
an inode.
One of those function could be :
'find / -inum <inode_number> -print'

In the hope it could help,

Patrick Mourlhon
Alexander Viro wrote:
> 
> In article <[EMAIL PROTECTED]>,
> ELSID Software Systems LTD. <[EMAIL PROTECTED]> wrote:
> >Greetings:
> >
> >Does any one know of a method of finding the complete pathname of a file
> >given
> >the i-node of that file.
> >
> >From what I have read it appears that the file system structures are
> >only set up
> >to get the I-node given a pathname but not the reverse.
> 
> There is no such thing as pathname of a file. File may be unlinked but
> still open. Then it has no pathname associated with it. There may be
> any number of links to that file, i.e. there may be many pathnames.
> 
> Files in UNIX are nameless. Directories are lists of pairs (name,pointer
> to file) and file may be mentioned many times in any directory.
> 
> --
> "You're one of those condescending Unix computer users!"
> "Here's a nickel, kid.  Get yourself a better computer" - Dilbert.

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

From: Konrad Mieredorff <[EMAIL PROTECTED]>
Crossposted-To: linux.dev.sound
Subject: Re: Problems with Soundblaster 64 PCI (ES1370)
Date: Thu, 10 Jun 1999 20:24:18 +0200

Andres Heinloo wrote:
> 
> Hi!
> 
> I just bought a soundcard and spent whole night trying to add sound
> support to Linux. Unfortunately without much success.
> 
> First I compiled kernel 2.2.9 with a driver for "Ensoniq ES1370 based PCI
> sound cards". The driver successfully recognizes the device, but no devices
> show up in /dev/sndstat (all sections are empty). I had a quick look at the
> driver source and it seemed to me that only drivers originated from OSS
> supported that device, so I didn't consider it a problem. Moreover, I was
> able to play CD through soundcard and control the volume with mixer, and I
> was able to play xboing with sound.
> 
> When I tried to do "cat /dev/audio", my problems started. First time I got
> kernel oops, subsequent tries just made the whole system hang. It was the
> same with "cat /dev/dsp". When I tried to play an mp3 file with x11amp, the
> system hanged also.
> 
> Next I tried kernel 2.2.1, but the results were exactly the same. I
> compiled the sound drivers both into kernel and as modules. No difference.

my SB64 PCI works fine with the es1371-Module (2.2.9). Did you already
try that?

Good luck!

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

From: Martin A. Boegelund <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup,comp.os.linux.help
Subject: Re: new kernel: LILO "kernel too big" error
Date: Fri, 11 Jun 1999 11:18:29 GMT

In article <7jopvi$mmo$[EMAIL PROTECTED]>,
  [EMAIL PROTECTED] wrote:
> i was thinking the very same thing. i had a 600+k
> kernel and a 508k kernel (both 2.2.5-15) that
> worked when doing an /sbin/lilo. however my 471k
> 2.2.9 kernel did not an resulted in a kernel too
> big error. desperate i tried make bzImage and it
> worked. far fetched and questionable but it did
> work. let me know if this works for you or if we
> have to find a better solution that works for all.
> --

  Well, it kind off worked, I think. The thing is that my modules
wouldn't compile after a make bzImage. I had to turn off a lot of
modules, that were greyed out by a previous de-selection i xconfig.
  You know when you de-select items in xconfig, other later items might
get greyed out so that you cannot select (or un-select) them. So I had
to select a lot of previously unselected items, un-select the items
that were available due to the first selection, and then un-select the
first selection again. Real moron-work. This wasn't a problem in RH5.2.

Now it works.

> Curt Rebelein, Junior
> http://rebby.com/
> "Linux is user friendly,
>  it's just picky about
>  its friends."

[deletia]

--
==================
Mr Sparkle - Aka Martin A. Boegelund


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

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

From: [EMAIL PROTECTED] (John Forkosh)
Subject: Re: long long... how to use??
Date: 11 Jun 1999 07:34:58 -0400

Reality is a point of view ([EMAIL PROTECTED]) wrote:
:  + [EMAIL PROTECTED] wrote (Thu, 10 Jun 1999 09:14:07 -0700):
:  + How do I get actual, working, 64-bit math??
:  +

: #include <stdio.h>
: int main( void )
: {
:       long long int a = 4118737465LL;
:       long long int b = 4118466591LL;
:       long long int c = a + b;
:       printf( "%lli %lli = %lli\n", a, b, c );
:       return 0;
: }
: Gary Johnson     [EMAIL PROTECTED]

How portable is this?  Is it ansi standard and/or posix,
or what?  Thanks,
John ([EMAIL PROTECTED])

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

From: [EMAIL PROTECTED] (J.H.M. Dassen (Ray))
Subject: Re: long long... how to use??
Date: 11 Jun 1999 12:01:53 GMT

[F'up set]

John Forkosh <[EMAIL PROTECTED]> wrote:
>:      long long int a = 4118737465LL;

>How portable is this?  Is it ansi standard and/or posix, or what?

It's not ANSI/ISO standard, but "long long" is part of "C9X" (the code name
for the revision in progress of the C standard) and is thus likely to be
part of the next revision of the C standard; see
http://wwwold.dkuug.dk/JTC1/SC22/WG14/ .

HTH,
Ray
-- 
PATRIOTISM  A great British writer once said that if he had to choose 
between betraying his country and betraying a friend he hoped he would
have the decency to betray his country.                                      
- The Hipcrime Vocab by Chad C. Mulligan 

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

From: Bill Woessner <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.questions,comp.os.linux.misc,comp.os.linux.help
Subject: 64-bit arithmetic inside kernel
Date: Thu, 10 Jun 1999 13:30:36 -0500

Hi.  I'm trying to write a kernel module that uses 64 bit arithmetic and
am having some problems with it.  When I try to insert the module, I get
the following errors:

longlong.o: unresolved symbol __udivdi3
longlong.o: unresolved symbol __umoddi3

I weeded out all the 64-bit arithmetic until I was left with %= and /=. 
The questions are: A) Should these functions be included in the kernel? 
B) If not, how can I get the code for these functions out of glibc
before inserting the module in to the kernel.

Please respond to [EMAIL PROTECTED]
I can supply code if desired, but wouldn't dream of posting it to a
newsgroup.  Thanks in advance for any help.

-- 
Bill Woessner
National Instruments
Money is the world's curse.  May the Lord SMITE me with it!

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

From: David Ronis <[EMAIL PROTECTED]>
Subject: kernel: NFS: cache locked?
Date: Thu, 10 Jun 1999 18:33:08 GMT

I've been running 2.2.9 on an i586 for a few weeks without problems.
Yesterday, I created a new user whose home directory is on a SUN, but
which is exported rw to my machine.  The person can login, and the
home directory was automounted or auto-unmounted correctly (the
relevant kernel configuration parameters are below).  However, this morning
when this user logged in, the following message was generated:

Jun 10 11:15:47 ronispc kernel: NFS: cache locked for 00:03/441637

What is this?  Is it a problem, and if so, how do I fix it?

David

#
# Network File Systems
#
# CONFIG_CODA_FS is not set
CONFIG_NFS_FS=m
CONFIG_SUNRPC=m
CONFIG_LOCKD=m
# CONFIG_SMB_FS is not set
CONFIG_NCP_FS=m
CONFIG_NCPFS_PACKET_SIGNING=y
CONFIG_NCPFS_IOCTL_LOCKING=y
CONFIG_NCPFS_STRONG=y
CONFIG_NCPFS_NFS_NS=y
CONFIG_NCPFS_OS2_NS=y
# CONFIG_NCPFS_SMALLDOS is not set

and 

CONFIG_AUTOFS_FS=m





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

From: Kalle Olavi Niemitalo <[EMAIL PROTECTED]>
Subject: Re: Kernel and FS on different partitions
Date: 10 Jun 1999 21:56:06 +0300

Outlaw Jim <[EMAIL PROTECTED]> writes:

> I'm trying to get loadlin to load the kernel off a vfat partition and
> loading the rest of the system from an ext2 partition. So as to remove
> lilo from the boot sequence. Is this possible?

Yes.  Just tell the kernel where the root filesystem is, either by adding
"root=/dev/something" on the loadlin command line or by tweaking the
kernel image with "rdev" or "knl".

The Linux makefile has a ROOT_DEV setting too, in case you want to
compile several kernels with the same parameters.

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

From: Medical Electronics Lab <[EMAIL PROTECTED]>
Subject: Re: Testing a kernel, boot from floppy?
Date: Fri, 11 Jun 1999 09:14:42 -0500

Konrad Mieredorff wrote:
> Yes, if /dev/hda6 is your root-device.
> 
> You could also create a bootdisk without lilo:
> 
> dd if=/zImage of=/dev/fdX
> 
> (dd is a very dangerous tool, so check the man-page first.)
> This kernel will uncompress itself and should also find the
> root-filesystem.
> 
> Good luck!

You ain't kidding it's dangerous!  I was reading the HOWTO
manuals, and it said I could remove a bad boot block with
dd.  After running lilo on my hard drive (which I shouldn't
have, but the manual seemed like it was ok :(  I got the
letters LIL-  and then my system would hang.  So I tried
to use dd to put the original boot block back, but it
wiped it out with garbage.  so now I've got a hard disk that
can't boot itself, but I can boot my system from the
backup floppy I made originally (whew!).

I try running lilo, and it tells me what it's doing, but
it doesn't seem to correctly write the boot block.  So,
1) how can I write a valid boot block back to sector0 track0
2) do I need 2 boot blocks for multi-OS system?  

IOW, I've got dos in hda1 and linux in hda6 and no boot blocks.
Fortunatly, I can boot from floppy and the hda6 (linux ext2 fs)
is ok.  Where can I find the original boot block code, do I
need to recompile it, and how do I put it back right?

I did read the man page for dd, but I suspect there's a bunch
of gotch's in there I didn't pay attention to...

Patience, persistence, truth,
Dr. mike

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

Crossposted-To: alt.os.linux,comp.os.linux.advocacy,comp.os.misc,comp.unix.advocacy
From: [EMAIL PROTECTED] (Vladimir Z. Nuri)
Subject: Re: TAO: the ultimate OS
Date: Thu, 10 Jun 1999 19:03:41 GMT

Alexander Viro ([EMAIL PROTECTED]) wrote:
: Or about cryptography. Or about Fermat. Or about Termination Problem.
: Or about new protocols. Or about evil elitists and censors on xxx.lanl.gov.
: Or about the future of net.journalistics. Or about Vision of Future(tm).
: Or about FAQs. 

hahaha....... you ascribe me much more than I can humbly take
credit for !! you seem to have stumbled into a hall of mirrors
in your self-admitted "hours" of search engine meanderings!!
but now I am curious!! what is it I said, in particular, that
caused you to spend so much time ?? hahaha  whatever it was
I will have to remember to say it more often, hehehe  .. do you
always put so much energy into revenge & tenacious
smear campaigns, AV? or is it just because
of my own particular charming personality?  you ought to consider
workign for Bill Clinton.. my understanding is that he has use
for people of your kind of talent.. hahaha

: post 95 exploits make a fascinating reading.

gadzooks, forsooth!! what say we here? a compliment?? 
from AV? are you feeling ok? methinks you've truly lost it.

as for "troll".. if people are going to accuse me of trolling
merely for defending the essay & enjoying a debate (no matter
where it turns, something quite out of my control
entirely), well, guilty as charged.




-- 
~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^
"in theory, there's no difference                            [EMAIL PROTECTED]
between theory and practice,                           mad genius research lab
but in practice there is!"                       http://www8.pair.com/mnajtiv/

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

From: Medical Electronics Lab <[EMAIL PROTECTED]>
Subject: Re: Detecting multiple keystrokes simultaneously
Date: Fri, 11 Jun 1999 09:36:15 -0500

Brian Luczkiewicz wrote:
> 
> I am writing a program that needs to deal with the interpretation of
> multiple keystrokes at the same time such as Ctrl-Shift-A or similar. I
> think that to do this, you need to set up a timer or at least a loop, but
> wouldn't that be processor hungry? I am pretty new at this, but I think a
> timer would work. I don't think so, but would I need RTlinux for this?

I'd expect the keyboard to send you data that tells if the "special"
keys are depressed along with one other key.  It's been a very
long time since I've played with keyboards, but you should get back
8 bits of control along with 8 bits of key data.  There are 4 special
keys, control, alt, shift and "command".  The command key has a
windows or apple mark on it, not found on older keyboards.  Check
your keyboard hardware.

Patience, persistence, truth,
Dr. mike

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

Crossposted-To: alt.os.linux,comp.os.linux.advocacy,comp.os.misc,comp.unix.advocacy
From: [EMAIL PROTECTED] (Vladimir Z. Nuri)
Subject: Re: the ultimate OS
Date: Thu, 10 Jun 1999 19:19:09 GMT

Donal K. Fellows ([EMAIL PROTECTED]) wrote:
: I thought about giving you a darned good grilling (which would have
: made me popular with the peanut gallery) but decided that seeing as
: you had typed in a fair amount and had actually appeared to have put
: some thought in, a more reasoned reply was worth it.

well hell!!! how the heck are we gonna sustain this thread with
a reasonable/conciliatory/noninflammatory attitude like 
that?!?!?!?! hahaha

: Well you asked pretty much for something right at the very conceptual
: pinnacle of software engineering. 

 awww shucks, thanks<blush> 
yeah, that's what I was aimin for.. thanks
fer noticin..  hehehe

: What you asked for is not merely hard, but darn close to impossible.
: Trust me on this; I would be very surprised if it becomes even
: remotely feasable to start the detailed design of Tao in the next ten
: years.

hmmmm.. I'm a bit more optimistic. but then again I didn't think
I would get quite a thread going out here or
flamed quite so much .. that also turned out
way BTE .. better than expected!! hahaha

if anyone wants to focus on a particular point in the essay they
find the most desirable but at the same time the most infeasible,
I'm willing to contribute to the discussion of how to realize it.
(strange, but somehow I don't really see anyone doing that in
all the piles of verbiage strewn around here)
I freely admit I don't have all the answers, at least on Thursdays
as I write this<g>


-- 
~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^
"in theory, there's no difference                            [EMAIL PROTECTED]
between theory and practice,                           mad genius research lab
but in practice there is!"                       http://www8.pair.com/mnajtiv/

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

From: [EMAIL PROTECTED] (Lew Pitcher)
Subject: Re: Testing a kernel, boot from floppy?
Reply-To: [EMAIL PROTECTED]
Date: Fri, 11 Jun 1999 14:34:44 GMT

On Fri, 11 Jun 1999 09:14:42 -0500, Medical Electronics Lab 
<[EMAIL PROTECTED]>
wrote:

>Konrad Mieredorff wrote:
>> Yes, if /dev/hda6 is your root-device.
>> 
>> You could also create a bootdisk without lilo:
>> 
>> dd if=/zImage of=/dev/fdX
>> 
>> (dd is a very dangerous tool, so check the man-page first.)
>> This kernel will uncompress itself and should also find the
>> root-filesystem.
>> 
>> Good luck!
[Dr. Mike's response snipped]

Sorry Dr. Mike, but I missed the first part of this conversation,
and chose this spot to jump in to.

Konrad: Why can't you 

        make zdisk

to make a bootable floppy?



Lew Pitcher
System Consultant, Integration Solutions Architecture
Toronto Dominion Bank

([EMAIL PROTECTED])


(Opinions expressed are my own, not my employer's.)

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

Crossposted-To: alt.os.linux,comp.os.linux.advocacy,comp.os.misc,comp.unix.advocacy
From: [EMAIL PROTECTED] (Vladimir Z. Nuri)
Subject: Re: TAO: the ultimate OS
Date: Thu, 10 Jun 1999 19:06:43 GMT

for those that are curious.. the essay is at
  http://www8.pair.com/mnajtiv/tao.html

-- 
~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^
"in theory, there's no difference                            [EMAIL PROTECTED]
between theory and practice,                           mad genius research lab
but in practice there is!"                       http://www8.pair.com/mnajtiv/

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

From: "Peter King" <[EMAIL PROTECTED]>
Subject: Re: driver for 724 XG chipset sound card
Date: Fri, 11 Jun 1999 16:47:23 +0100


Peter King <[EMAIL PROTECTED]> wrote in message news:...
> Any one know where I can get a driver for the Yamaha 724 XG chipset sound
> card.
>
>
> [EMAIL PROTECTED]
>
>



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

From: [EMAIL PROTECTED] (Alexander Viro)
Crossposted-To: alt.os.linux,comp.os.linux.advocacy,comp.os.misc,comp.unix.advocacy
Subject: Re: the ultimate OS
Date: 11 Jun 1999 12:47:19 -0400

In article <7jr2r9$v5k$[EMAIL PROTECTED]>,
Stefaan A Eeckels <[EMAIL PROTECTED]> wrote:
>In article <[EMAIL PROTECTED]>,
>       [EMAIL PROTECTED] (Vladimir Z. Nuri) writes:
[big fscking snip]
 
>> all objects have a "type". a binary version of an object must
>> be created. it is possible to have stand alone files that have
>> no type, that can be put together to create objects. the system
>> allows you to cut open objects as much as glue them together.
>> there may be types that are "unspecified" in some ways. "raw
>> binary file" is one type. 
>You definitely don't grok OO. Not even close.

Or type theory, for that matter... This bubbling *might* make sense for
type polymorhism in (compiled) functional languages, but doing that stuff
in the OS requires decent *fast* unification implemented in the kernel or
shell. Good luck doing that.
 
>> absolutely, some objects cannot be opened up and poked around
>> in because of security constraints. I'm not saying all code is
>> open source at all. that would make no sense to me. there must
>>  be a capability to support closed source when it is preferred.
>This whole discussion about "opening objects and poking
>around in their innards" is daft. It's about as useful
>as having a cross between gdb and truss (strace for
>Linuxers) as shell. Now if you'd been talking about

Hey, ITS folks would probably beg to differ ;-) DDT *was* their shell.
Seriously, at some moment I had to cruft up an ugly hack - line discipline
that gave a simple set of commands allowing to walk through dcache, call
inode and dentry methods, set/reset semaphores on inodes and tweak waitqueues.
It was *not* pleasant, but it saved my ass several times - when you are
hacking on VFS and it decides to hose itself... not too much can be done
from userland. At least that way you can do accurate postmortem and make
a relatively clean shutdown. From what I heard from -10 folks it's pretty
close to their equivalent of shell <shudder>...

-- 
"You're one of those condescending Unix computer users!"
"Here's a nickel, kid.  Get yourself a better computer" - Dilbert.

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

From: "Peter King" <[EMAIL PROTECTED]>
Subject: Rage 128 driver for X
Date: Fri, 11 Jun 1999 17:18:27 +0100

Anyone know where I can get the instructions to set up a Rage 128 card (Fury
32MB) under X.

I found some instructions some where but they where too complex.

I'm quite new to linux so plain english please. (background in Windows
networking environments, no coding experience.) So if I have to compile
something then instructions on that are needed.

Using RH6 on box 1 and Suse 6.1 on box 2







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


** 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