[PATCH] remove page_launder() from bdflush

2001-05-15 Thread Marcelo Tosatti
Hi Linus, There is no reason why bdflush should call page_launder(). Its pretty obvious that bdflush's job is to only write out _buffers_. Under my tests this patch makes things faster. Guess why? Because bdflush is writing out buffers when it should instead blocking inside

Re: Getting FS access events

2001-05-15 Thread Richard Gooch
Linus Torvalds writes: You could choose to do partial coherency, ie be coherent only one way, for example. That would make the coherency overhead much less, but would also make the caches basically act very unpredictably - you might have somebody write through the page cache yet on a read

Re: Getting FS access events

2001-05-15 Thread Linus Torvalds
On Tue, 15 May 2001, Richard Gooch wrote: However, what about simply invalidating an entry in the buffer cache when you do a write from the page cache? And how do you do the invalidate the other way, pray tell? What happens if you create a buffer cache entry? Does that invalidate the page

Memory Access Problem

2001-05-15 Thread Rich . Liu
I have a problem in kernel 2.4.4 I use readw to access memory below 1MB , report Segmentation fault and stall in memory simple code below (this will get paraller port) == int init_module(void){ unsigned int *BIOS_Data=(unsigned int *)0x400; u32 test; test =

Re: LANANA: To Pending Device Number Registrants

2001-05-15 Thread Linus Torvalds
On Tue, 15 May 2001, Neil Brown wrote: I want to create a new block device - it is a different interface to the software-raid code that allows the arrays to be partitioned using normal partition tables. See the other posts about creating a disk layer. Think of it as just a simple lvm

[PATCH] pcmcia/rsrc_mgr.c

2001-05-15 Thread Victor Wong
Hi, The following is a patch to the pcmcia code in which a kmalloc failure could cause the code to crash since the pointer is dereferenced. I've instead allocated the fixed sized array on the stack. The patch was made against v2.4.4 of the kernel and result from some errors found during checker

Re: [PATCH] filemap.c fixes

2001-05-15 Thread Linus Torvalds
On Mon, 14 May 2001, Rik van Riel wrote: On Mon, 14 May 2001, Daniel Phillips wrote: How about: + if (PageActive(page)) + SetPageReferenced(page); + else + activate_page(page); Fine with me ... Now, please explain to me why it's not just a simple

[PATCH] arch/i386/kernel/irq.c

2001-05-15 Thread Victor Wong
Hi, The following patches to irq.c were made to deal with potential errors in creating /proc entries for irqs on bootup. The code add checks to ensure that the entries were created succesfully. In case of error, it attempts to cleanup after itself. The patch was made against v2.4.4 of the kernel

Re: Getting FS access events

2001-05-15 Thread Richard Gooch
Linus Torvalds writes: On Tue, 15 May 2001, Richard Gooch wrote: However, what about simply invalidating an entry in the buffer cache when you do a write from the page cache? And how do you do the invalidate the other way, pray tell? What happens if you create a buffer cache

Re: Getting FS access events

2001-05-15 Thread Alexander Viro
On Tue, 15 May 2001, Richard Gooch wrote: What happens if you create a buffer cache entry? Does that invalidate the page cache one? Or do you just allow invalidates one way, and not the other? And why= I just figured on one way invalidates, because that seems cheap and easy and has

mmap

2001-05-15 Thread mdaljeet
I am doing the following: malloc some memory is user space pass its pointer to some kernel module in the kernel module...do a pci_alloc_consistent so that i get a memory region for PCI DMA operations now the problem is that i want to remap the address range pointed by the user space

Re: 2.4.4 kernel freeze for unknown reason

2001-05-15 Thread Jacky Liu
Hi everyone, Mark, I got your point about the dma/udma stuffs. My hdparm setting is UDMA w/ MultiSector 16.. I had recompiled my kernel and disabled the FB option but my linux box still hanged (another completely freeze) yesterday... Oh well.. I have been tracking this thread for a few days

Re: Getting FS access events

2001-05-15 Thread Linus Torvalds
On Tue, 15 May 2001, Richard Gooch wrote: What happens if you create a buffer cache entry? Does that invalidate the page cache one? Or do you just allow invalidates one way, and not the other? And why= I just figured on one way invalidates, because that seems cheap and easy and has

2.4 To Pending Device Number Registrants

2001-05-15 Thread bert hubert
On Mon, May 14, 2001 at 11:58:39PM +0100, Alan Cox wrote: Yet another 2.5 project. If Linus wants to go play with name driven devices and you want to help him great, but if he'd care to put out linux-2.5.0.tar.gz _before_ starting that would be good for all of us Well, that's one thing. 2.4

Re: TCP capture effect :: estimate queue length ? :: pathchar

2001-05-15 Thread God
On Tue, 15 May 2001, Ralf Baechle wrote: On Mon, May 14, 2001 at 11:49:16PM -0400, God wrote: Speaking of queues on routers/servers, does such a util exist that would measure (even a rough estimate), what level of congestion (queueing) is happening between point A and B ? I'd be

Re: PATCH 2.4.4.ac9: Tulip net driver fixes

2001-05-15 Thread Yann Dupont
Le 14 May 2001 14:36:05 -0400, Jeff Garzik a écrit : Mads Martin Jørgensen wrote: Attached is a patch against 2.4.4-ac9 which includes the changes found in tulip-devel 1.1.6... (tulip-devel is sort of a misnomer; right now it's really just a staging and testing point for fixes which go

Re: Getting FS access events

2001-05-15 Thread Linus Torvalds
On Tue, 15 May 2001, Chris Wedgwood wrote: On Tue, May 15, 2001 at 12:13:13AM -0700, Linus Torvalds wrote: We should not create crap code just because we _can_. How about removing code? Absolutely. It's not all that often that we can do it, but when we can, it's the best thing in the

Re: PATCH 2.4.4.ac9: Tulip net driver fixes

2001-05-15 Thread Yann Dupont
Le 14 May 2001 14:36:05 -0400, Jeff Garzik a écrit : Mads Martin Jørgensen wrote: Attached is a patch against 2.4.4-ac9 which includes the changes found in tulip-devel 1.1.6... (tulip-devel is sort of a misnomer; right now it's really just a staging and testing point for fixes which go

dget()

2001-05-15 Thread Blesson Paul
Hi In everyfile system, dget() function is called. But I cannot find where is the dget() function is written. Where is it Thanks in advance by Blesson

Re: dget()

2001-05-15 Thread Tigran Aivazian
On 15 May 2001, Blesson Paul wrote: In everyfile system, dget() function is called. But I cannot find where is the dget() function is written. Where is it To find this out, you type: # vi -t dget and then look at the bottom line which would show ./include/linux/dcache.h This

Re: dget()

2001-05-15 Thread Alexander Viro
On 15 May 2001, Blesson Paul wrote: Hi In everyfile system, dget() function is called. But I cannot find where is the dget() function is written. Where is it man grep - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL

Re: LANANA: Getting out of hand?

2001-05-15 Thread Geert Uytterhoeven
On Mon, 14 May 2001, Linus Torvalds wrote: On Mon, 14 May 2001, Alan Cox wrote: Except that Linus wont hand out major numbers, which means I can't even boot simply off such a device. I bet the vendors in question dont think the sun shines out of linus backside any more. For example, the

Assorted tmpfs fixes

2001-05-15 Thread Christoph Rohland
Hi Alan, would you mind to apply the accumulated tmpfs fixes to the -ac series? Here the short descriptions: 2-SHMEM_I: Encapsulate all accesses to the private info structure with macro. This was suggested by Al to later get rid of the union in the inode struct. This

Re: Getting FS access events

2001-05-15 Thread Alexander Viro
On Tue, 15 May 2001, Linus Torvalds wrote: Looks like there are 19 filesystems that use the buffer cache right now: grep -l bread fs/*/*.c | cut -d/ -f2 | sort -u | wc So quite a bit of work involved. UNIX-like ones (and that includes QNX) are easy. HFS is hopeless - it won't be

Kernel 2.2.19 + VIA chipset + strange behaviour

2001-05-15 Thread Jonathan Woithe
Hi people We are currently running a 900MHz Athlon at 900MHz with a VIA chipset mainboard. We have been experiencing strange problems and a number of kernel panics. The debugged oopes from three of these are included at the end of this message. My first question is whether this could be

[Patch] allow tmpfs bigger than 1GB on s390x

2001-05-15 Thread Christoph Rohland
Hi Martin, Here is the patch which implements triple indirect blocks in tmpfs. For the rest of the word: This is needed since s390x is a 64 Bit platform with pagesize of 4k :-( It is on top of my other tmpfs fixes which you can find at ftp://ftp.sap.com/pub/linuxlab/people/cr Greetings

Re: LANANA: Getting out of hand?

2001-05-15 Thread Alan Cox
How hard is it to generate a new disk driver framework, and let people register themselves, kind of like the misc drivers do. Except we'd only allow DISKS. You could add something like register_disk_driver(compaq-ciss, nr_disks, my_queue); Why bother. Devfs does that already. Thats

Re: 2.4 To Pending Device Number Registrants

2001-05-15 Thread Alan Cox
So I would think that this block of new major number allocations holds for 2.5 and not 2.4. Also, if I'm correct, 2.4 won't be needing a lot of new major numbers anyhow. I wouldnt bet on that. Going to a 32bit dev_t internally without user space noticing would keep it seems to be quite doable

Re: Kernel 2.2.19 + VIA chipset + strange behaviour

2001-05-15 Thread Keith Owens
On Tue, 15 May 2001 18:04:35 +0930 (CST), Jonathan Woithe [EMAIL PROTECTED] wrote: ksymoops 2.4.1 on i686 2.2.19. Options used Warning (compare_maps): ksyms_base symbol module_list_R__ver_module_list not found in System.map. Ignoring ksyms_base entry module_list was added to the export list

Re: LANANA: To Pending Device Number Registrants

2001-05-15 Thread Alan Cox
The fact that it already exists, and has existed for 5+ years, but that nobody really uses it? Nobody really uses it because it would require you to add a line or two to your init scripts to pick up the major number from /proc/devices, and that's obviously too hard. Much better to just

Tracing a network device

2001-05-15 Thread Dave Cecil
Guys, I'm working on a network device that will forward some packets before they get to netif_rx and thus net_rx_action. Thus, the forwarded packets handled by my device/protocol would not be traced by the existing trace utility (AF_PACKET etc.), correct? Am I correct in assuming that

Re: mmap

2001-05-15 Thread Gerd Knorr
[EMAIL PROTECTED] wrote: I am doing the following: malloc some memory is user space pass its pointer to some kernel module in the kernel module...do a pci_alloc_consistent so that i get a memory region for PCI DMA operations Wrong approach, you can use kiobufs if you

Re: dget()

2001-05-15 Thread Xavier Bestel
Le 15 May 2001 09:21:47 +0100, Tigran Aivazian a écrit : On 15 May 2001, Blesson Paul wrote: In everyfile system, dget() function is called. But I cannot find where is the dget() function is written. Where is it To find this out, you type: # vi -t dget and then look at

Re: 2.4 To Pending Device Number Registrants

2001-05-15 Thread bert hubert
On Tue, May 15, 2001 at 09:54:33AM +0100, Alan Cox wrote: So I would think that this block of new major number allocations holds for 2.5 and not 2.4. Also, if I'm correct, 2.4 won't be needing a lot of new major numbers anyhow. I wouldnt bet on that. Going to a 32bit dev_t internally

Re: LANANA: To Pending Device Number Registrants

2001-05-15 Thread Linus Torvalds
On Tue, 15 May 2001, Alan Cox wrote: Nobody really uses it because it would require you to add a line or two to your init scripts to pick up the major number from /proc/devices, and that's obviously too hard. Much better to just hardcode randome numbers, right? modprobe ? I was

Re: dget()

2001-05-15 Thread Tigran Aivazian
On 15 May 2001, Xavier Bestel wrote: # cd /usr/src/linux # make tags No, I never use that one because it skips very useful entries like the ones from EXPORT_SYMBOL etc. Also, it only shows the current architecture. So, the tags target in the Makefile would only become useful when it is

Re: LANANA: To Pending Device Number Registrants

2001-05-15 Thread Alan Cox
But the fact remains that some users want to (a) avoid devfs and (b) have static maintenance. And I'm ok with that too, but only if the static major number is in the form of a _generic_ number that has absolutely nothing to do with any specific drivers (which is why I'd be perfecly ok with

MS_RDONLY patch (do_remount_sb and cramfs/inode.c)

2001-05-15 Thread Peter Kundrat
Hello, This patch does: - set MS_RDONLY flag in cramfs superblock - doesnt allow -w remount in do_remount_sb if the filesystem has MS_RDONLY set. Without it, it is possible to remount r/o filesystem with -w and truncate files on it. I hope that doesnt fall into 'dont do that then' category.

Re: LANANA: To Pending Device Number Registrants

2001-05-15 Thread Alan Cox
do with any specific drivers (which is why I'd be perfecly ok with still adding a disk major number, but which is why I do NOT want to have Peter give out the random number of today to various stupid device drivers). For block devices that seems to work well. char devices are harder and I'd

VIA's Southbridge bug (was: PATCH 2.4.5.1: Fix Via interrupt routing issues)

2001-05-15 Thread Axel Thimm
On Mon, May 14, 2001 at 02:07:53PM -0300, John R Lenton wrote: On Sun, May 13, 2001 at 01:28:06PM -0400, Jeff Garzik wrote: For those of you with Via interrupting routing issues (or interrupt-not-being-delivered issues, etc), please try out this patch [...] Just to add a little noise: My

Re: [PATCH] pcmcia/rsrc_mgr.c

2001-05-15 Thread Alan Cox
The following is a patch to the pcmcia code in which a kmalloc failure could cause the code to crash since the pointer is dereferenced. I've instead allocated the fixed sized array on the stack. The patch was made against We intentionally keep large objects off the stack - To unsubscribe from

Re: Memory Access Problem

2001-05-15 Thread Alan Cox
I use readw to access memory below 1MB , report Segmentation fault and stall in memory simple code below (this will get paraller port) == int init_module(void){ unsigned int *BIOS_Data=(unsigned int *)0x400; u32 test; test = readw(BIOS_Data);

Re: mmap

2001-05-15 Thread Alan Cox
now the problem is that i want to remap the address range pointed by the user space pointer to the memory region allocated by the 'pci_alloc_consistent' inside the module. I think this is possible..need some hints Wrong way around. Ask the device to create its mapping and reply with the

Re: LANANA: To Pending Device Number Registrants

2001-05-15 Thread Alexander Viro
On Tue, 15 May 2001, Alan Cox wrote: to /* Use scsi if possible [scsi, ide-scsi, usb-scsi, ...] */ if(HAS_FEATURE_SET(fd, scsi-tape)) ... else if(HAS_FEATURE_SET(fd, floppy-tape)) .. Alan, if we are doing that we might as well use saner

Re: LANANA: To Pending Device Number Registrants

2001-05-15 Thread Alan Cox
Alan, if we are doing that we might as well use saner interface than ioctl(2). In case you've mentioned we don't want make device SYS$FOO17 do special action OP$LOUD$BARF4269. We want make device rewind the tape. Or tell us geometry. Or eject the media. Application doesn't Counter argument;

Re: Getting FS access events

2001-05-15 Thread Anton Altaparmakov
At 08:13 15/05/01, Linus Torvalds wrote: On Tue, 15 May 2001, Richard Gooch wrote: So what happens if I dd from the block device and also from a file on the mounted FS, where that file overlaps the bnums I dd'ed? Do we get two copies in the page cache? One for the block device access, and

Re: [PATCH] remove page_launder() from bdflush

2001-05-15 Thread David Woodhouse
[EMAIL PROTECTED] said: There is no reason why bdflush should call page_launder(). Its pretty obvious that bdflush's job is to only write out _buffers_. Under my tests this patch makes things faster. Oh good. ISTR last time I looked at implementing CONFIG_BLK_DEV I got as far as trying

Re: LANANA: To Pending Device Number Registrants

2001-05-15 Thread Alexander Viro
On Tue, 15 May 2001, Alan Cox wrote: Alan, if we are doing that we might as well use saner interface than ioctl(2). In case you've mentioned we don't want make device SYS$FOO17 do special action OP$LOUD$BARF4269. We want make device rewind the tape. Or tell us geometry. Or eject the

Re: mmap

2001-05-15 Thread mdaljeet
When I malloc the memory in user space, the memory may be discontinuous for large chunks of memory say 16k or 32k. Does the 'kiobuf' interface take care of this or it assumes it to be continuous? regards, Daljeet Maini IBM Global Services Ltd. - Bangalore Ph. No. - 5267117 Extn 2954

Re: MS_RDONLY patch (do_remount_sb and cramfs/inode.c)

2001-05-15 Thread Peter Kundrat
On Tue, May 15, 2001 at 11:27:26AM +0200, Peter Kundrat wrote: This patch does: - set MS_RDONLY flag in cramfs superblock - doesnt allow -w remount in do_remount_sb if the filesystem has MS_RDONLY set. Oh, ignore the second part. Seems i'd have to supply remount_fs super op to prevent

Re[2]: ReiserFS 2.4.4/3.x.0k-pre2

2001-05-15 Thread Samium Gromoff
Hello, I`m still experiencing file tail corruptions on subj. And more: after i had restored bblocked patrition (by relying on drive`s ability to remap bblks on write by wroting small modification of debugreiserfs which zeroified all bblks), i had _runtime_ tail

Re: Getting FS access events

2001-05-15 Thread David Woodhouse
[EMAIL PROTECTED] said: JFFS - dunno. Bah. JFFS doesn't use any of those horrible block device thingies. -- dwmw2 - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at

Re: Getting FS access events

2001-05-15 Thread Daniel Phillips
On Tuesday 15 May 2001 08:57, Alexander Viro wrote: On Tue, 15 May 2001, Richard Gooch wrote: What happens if you create a buffer cache entry? Does that invalidate the page cache one? Or do you just allow invalidates one way, and not the other? And why= I just figured on one way

Re: LANANA: To Pending Device Number Registrants

2001-05-15 Thread Alan Cox
Cost of adding IOCTL_REWIND_TAPE - two words in each tape driver. That alone kills a bunch of crap in userland and makes _both_ sides more maintainable. A lot lot more than that. There are some cases where what you are saying is true and we have duplication. The worst culprit was the cd layer

Re: Getting FS access events

2001-05-15 Thread Alexander Viro
On Tue, 15 May 2001, Daniel Phillips wrote: That's because you left out his invalidate: * create an instance in pagecache * start reading into buffer cache (doesn't invalidate, right?) * start writing using pagecache (invalidate buffer copy) Bzzert. You have a race

Re: MS_RDONLY patch (do_remount_sb and cramfs/inode.c)

2001-05-15 Thread Peter Kundrat
On Tue, May 15, 2001 at 12:24:06PM +0200, Peter Kundrat wrote: On Tue, May 15, 2001 at 11:27:26AM +0200, Peter Kundrat wrote: This patch does: - set MS_RDONLY flag in cramfs superblock - doesnt allow -w remount in do_remount_sb if the filesystem has MS_RDONLY set. Oh, ignore the

Re: TCP capture effect :: estimate queue length ?

2001-05-15 Thread Joerg Pommnitz
Pathchar, yet another Van Jacobsen toy does this. Unfortunately the old and rotten pre-version you can find in ftp.ee.lbl.gov/pathchar/ is afaik the last one. In the past it served me well you find about how ISPs are lying ... 100mbit backbone = fast ethernet in their computer room ... clink

Re: Question about ipip implementation

2001-05-15 Thread Olaf Titz
Yes, I was wrong. But is it possible in similar situation just call ip_rcv for the sk_buff? What does just call mean? The additional setup done by the ipip receiver is the minimum necessary to get the various parameters in the sk_buff in a clean state (things like making sure all header

Reiserfs, Mongo and CPU question

2001-05-15 Thread Ricardo Galli
Hans and reiserfs developers, the same student of my university (http://www.cs.helsinki.fi/linux/linux-kernel/2001-18/0654.html) was carrying up the mongo benchmarks against reiser, xfs, jfs and ext2 for different base sizes. For example, for the base size of 10.000 (the average of a

Re: LANANA: To Pending Device Number Registrants

2001-05-15 Thread Neil Brown
On Monday May 14, [EMAIL PROTECTED] wrote: On Tue, 15 May 2001, Neil Brown wrote: I want to create a new block device - it is a different interface to the software-raid code that allows the arrays to be partitioned using normal partition tables. See the other posts about creating a

again: Linux (2.4.4-ac5) on Laptop

2001-05-15 Thread Bohdan Vlasyuk
Hi there again ! I've got brand new kernel, compiled it and all modutils/other stuff, however, I still have problems with magic buttons. It still crashes, but in a new exciting fashion - not just plain oops, but tons of non-stopping hex numbers in square brackets. As far as I could read it on my

Re: Device Numbers, LILO

2001-05-15 Thread mirabilos
That's not the issue. LILO takes whatever you pass to root= and converts it to a device number at /sbin/lilo time. An idiotic practice on the part of LILO, in my opinion, that ought to have been fixed a long time ago. That's why you have to use append=root=blah for devfs :) Really it should

PATCH: esssolo pci_enable_device / retcodes

2001-05-15 Thread Marcus Meissner
Hi, this moves pci_enable_device() before resource access and cleans up the return values. Ciao, Marcus Index: esssolo1.c === RCS file: /build/mm/work/repository/linux-mm/drivers/sound/esssolo1.c,v retrieving revision 1.11 diff -u

rwsem, gcc3 again

2001-05-15 Thread mirabilos
Hi, I have got that patch with movl %2,%%edx and removing the tmp and still cannot compile with the same error message I posted yesterday. The problem seems to be that, with or without inline, it seems to put a reference into main.o of arch/i386/boot/compressed. So I cannot test -ac9 :( If

[PATCH] fix menuconfig

2001-05-15 Thread Erik Mouw
Hi, This minor fix from Alan's -ac tree fixes the make menuconfig problem in linux-2.4.5-pre[12]. The problem was that with the new Pentium-III/Celeron(Coppermine) choice in arch/i386/config.in menuconfig broke on the '()' in a choice. Please apply. Erik Index: scripts/Menuconfig

Re: PATCH: esssolo pci_enable_device / retcodes

2001-05-15 Thread Jeff Garzik
Looks ok to me. BTW thanks for doing these PCI sound cleanups... they definitely need doing. -- Jeff Garzik | Game called on account of naked chick Building 1024| MandrakeSoft | - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

get data to user space from kernel

2001-05-15 Thread sebastien person
Hi, I have a network driver that get specific informations from device but I can't envisage the size of the informations. So I do a kmalloc call when data come. But my problem seems to come from the kmalloc because when I try to send data to user space via an ioctl call I get a segmentation

Re: [PATCH] drivers/char/serial.c bug in ST16C654 detection

2001-05-15 Thread Stuart MacDonald
From: Val Henson [EMAIL PROTECTED] Serial driver version 5.05a (2001-03-20) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled Hmm. I've been looking at 5.05 (from http://serial.sourceforge.net), I'm getting 2.4.4 and 2.4.5-pre2 to see what's in there. Go kablooey means that all serial output

cpu problem

2001-05-15 Thread vivek ramachandran
i am not suscribed to this list so please cc the comments and replies to vivek_ramachandran@rediffmailcom i have an amd k6-2(?) processor.i compiled the latest 2.4.4 kernel with cpu ak k6-2.i got the following error loading linux uncompressing linux.. ok,booting kernel and

Linux kernel programming for beginners

2001-05-15 Thread Bohdan Vlasyuk
Does anybody know any nice resource for beginners to try to write some device drivers/other stuff ? Anything like url:// or mailing list will be appreciated. -- Bye. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More

Linux kernel programming for beginners

2001-05-15 Thread Bohdan Vlasyuk
Hi ! Does anybody know any nice resource for beginners to try to write some device drivers/other interesting stuff ? Anything like url:// or mailing list will be appreciated. -- Bye. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL

Re: Linux kernel programming for beginners

2001-05-15 Thread Erik Mouw
On Tue, May 15, 2001 at 04:57:05PM +0300, Bohdan Vlasyuk wrote: Does anybody know any nice resource for beginners to try to write some device drivers/other stuff ? Anything like url:// or mailing list will be appreciated. http://www.kernelnewbies.org/ and the #kernelnewbies IRC channel.

Re: Linux kernel programming for beginners

2001-05-15 Thread Jonathan Corbet
Does anybody know any nice resource for beginners to try to write some device drivers/other interesting stuff ? self-serving-stuff Well... if you can wait just a little longer, O'Reilly tells me that the second edition of Linux Device Drivers should hit the shelves on June 28. We're still

Re: Linux kernel programming for beginners

2001-05-15 Thread richardj_moore
Yes, try the O'Reilly books, especilly Linux Device Drivers by Rubini, ISBN 1-56592-292-1 Richard Richard Moore - RAS Project Lead - Linux Technology Centre (ATS-PIC). http://oss.software.ibm.com/developerworks/opensource/linux Office: (+44) (0)1962-817072, Mobile: (+44) (0)7768-298183 IBM

Re: Getting FS access events

2001-05-15 Thread Daniel Phillips
On Tuesday 15 May 2001 12:44, Alexander Viro wrote: On Tue, 15 May 2001, Daniel Phillips wrote: That's because you left out his invalidate: * create an instance in pagecache * start reading into buffer cache (doesn't invalidate, right?) * start writing using pagecache

Re: [PATCH] filemap.c fixes

2001-05-15 Thread Rik van Riel
On Mon, 14 May 2001, Linus Torvalds wrote: + if (PageActive(page)) + SetPageReferenced(page); + else + activate_page(page); Now, please explain to me why it's not just a simple SetPageReferenced(page); and then just moving it

Re: LANANA: To Pending Device Number Registrants

2001-05-15 Thread Linus Torvalds
On Tue, 15 May 2001, Alan Cox wrote: Given a file handle 'X' how do I find out what ioctl groups I should apply to it. So we can go from if(MAJOR(st.st_rdev) == ST_MAJOR) issue_scsi_ioctls else if(MAJOR(st.st_rdev) == FTAPE_MAJOR)

Re: LANANA: To Pending Device Number Registrants

2001-05-15 Thread Jeff Garzik
Linus Torvalds wrote: On Tue, 15 May 2001, Alan Cox wrote: For block devices that seems to work well. char devices are harder and I'd rather issue the occasional new major than have people registering automatic cabbage slicers as a tty or a disk because they cant get a device id.

Re: LANANA: To Pending Device Number Registrants

2001-05-15 Thread Linus Torvalds
On Tue, 15 May 2001, Alan Cox wrote: For block devices that seems to work well. char devices are harder and I'd rather issue the occasional new major than have people registering automatic cabbage slicers as a tty or a disk because they cant get a device id. What are the valid cases that

Re: LANANA: To Pending Device Number Registrants

2001-05-15 Thread Linus Torvalds
On Tue, 15 May 2001, Alan Cox wrote: Counter argument; We dont want the bloat of making a floppy tape have delusions of grandeur in kernel space when mt-st can do it in userspace. Counter-counter-argument: we could just export the ioctl's, and make a user-level-filesystem. Except it's not a

Re: LANANA: To Pending Device Number Registrants

2001-05-15 Thread Alexander Viro
On Tue, 15 May 2001, Linus Torvalds wrote: What is the horrible app that does something like this? eject(1), for one thing. And yes, it's ugly beyond belief - don't read without a barfbag. BTW, LILO is not better, to put it _very_ mildly. /* Use scsi if possible [scsi, ide-scsi,

Re: [PATCH] filemap.c fixes

2001-05-15 Thread Linus Torvalds
On Tue, 15 May 2001, Rik van Riel wrote: Now, please explain to me why it's not just a simple SetPageReferenced(page); and then just moving it lazily from one queue to another.. ... Just going with the simple version should work. Can you and Marcelo fight out the changes

Re: Linux kernel programming for beginners

2001-05-15 Thread Eli Carter
Jonathan Corbet wrote: Does anybody know any nice resource for beginners to try to write some device drivers/other interesting stuff ? self-serving-stuff Well... if you can wait just a little longer, O'Reilly tells me that the second edition of Linux Device Drivers should hit the

Re: dget()

2001-05-15 Thread Rick Hohensee
and the Linux source crossreferencing site at http://lxr.linux.no/ is awesome. Rick Hohensee www.clienux.com - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at

[PATCH] fix yenta_socket

2001-05-15 Thread Erik Mouw
Hi, The PCI allocation fix in 2.4.5-pre2 breaks yenta_socket because it depends on pci_mem_start from arch/i386/kernel/setup.c. This patch fixes that by exporting pci_mem_start. Please apply. Erik --- arch/i386/kernel/i386_ksyms.c.orig Tue May 15 17:21:37 2001 +++

Re: LANANA: To Pending Device Number Registrants

2001-05-15 Thread Linus Torvalds
On Tue, 15 May 2001, Neil Brown wrote: Ofcourse setting the queue function that __blk_get_queue call to do a lookup of the minor and choose an appropriate queue for the real device wont work as you need to munge bh-b_rdev too. What I would do is: - remove b_rdev completely. No driver is

Re: Reiserfs, Mongo and CPU question

2001-05-15 Thread Chris Mason
On Tuesday, May 15, 2001 01:41:01 PM +0200 Ricardo Galli [EMAIL PROTECTED] wrote: Hans and reiserfs developers, the same student of my university (http://www.cs.helsinki.fi/linux/linux-kernel/2001-18/0654.html) was carrying up the mongo benchmarks against reiser, xfs, jfs and ext2

Re: LANANA: To Pending Device Number Registrants

2001-05-15 Thread Linus Torvalds
On Tue, 15 May 2001, Jeff Garzik wrote: Linus Torvalds wrote: What are the valid cases that couldn't just register as a misc'ish driver? The one that stands out is serial devices (you have hundreds of them), but that's the same argument as a disk anyway. /dev/fbN, /dev/dspN,

Re: Re[2]: ReiserFS 2.4.4/3.x.0k-pre2

2001-05-15 Thread Chris Mason
On Tuesday, May 15, 2001 02:24:36 PM +0400 Samium Gromoff [EMAIL PROTECTED] wrote: Hello, I`m still experiencing file tail corruptions on subj. And more: after i had restored bblocked patrition (by relying on drive`s ability to remap bblks on write by wroting

2.4.5-pre1: Bogus ARP packets containing NFS file data?

2001-05-15 Thread Frank van Maarseveen
System is a PIII UP 2.4.5-pre1, NFS client, options from /proc/mounts: arezzo:/usr/src/dolphin /usr/src/dolphin nfs rw,nodev,v3,rsize=32768,wsize=32768,hard,udp,nolock,addr=arezzo 0 0 Lately my arpwatch running on this 2.4.5-pre1 machine started to log May 15 15:55:18 espoo

Re: [PATCH] filemap.c fixes

2001-05-15 Thread Rik van Riel
On Tue, 15 May 2001, Linus Torvalds wrote: Can you and Marcelo fight out the changes you've posted and re-do them against pre2? OK. Though I don't know when Marcelo and I will be on the same timezone again (for some reasons his days don't seem to take 24 hours ;)). I've applied some of the

Re: Getting FS access events

2001-05-15 Thread Chris Mason
On Tuesday, May 15, 2001 04:33:57 AM -0400 Alexander Viro [EMAIL PROTECTED] wrote: On Tue, 15 May 2001, Linus Torvalds wrote: Looks like there are 19 filesystems that use the buffer cache right now: grep -l bread fs/*/*.c | cut -d/ -f2 | sort -u | wc So quite a bit of work

Re: Device Numbers, LILO

2001-05-15 Thread H. Peter Anvin
Followup to: [EMAIL PROTECTED] By author:mirabilos [EMAIL PROTECTED] In newsgroup: linux.dev.kernel That's not the issue. LILO takes whatever you pass to root= and converts it to a device number at /sbin/lilo time. An idiotic practice on the part of LILO, in my opinion, that ought to

Re: SCSI Tape Corruption - 2nd round experiment result

2001-05-15 Thread Geert Uytterhoeven
On Tue, 15 May 2001, Lorenzo Marcantonio wrote: The differences: (File offsets in hex, patterns were found without other matches in the file) First test: 64 bytes at D9E0800 (found starting at D9D8800, 32KB before) Second test: 64 bytes at 2F187C0 (found starting at

Re: LANANA: Getting out of hand?

2001-05-15 Thread Rick Hohensee
Torvalds sez On Mon, 14 May 2001, Alan Cox wrote: Except that Linus wont hand out major numbers, which means I can't even boot simply off such a device. I bet the vendors in question dont think the sun shines out of linus backside any more. Actually, it does. It's just that some people have

APM Support for AD1848 driver

2001-05-15 Thread normp
This patch modifies drivers/sound/ad1848.c to provide APM suspend/resume support to the AD1848 driver. To apply this patch, cd to the top linux source directory patch --dry-run -p0 this_file If the patch program doesn't complain then use the command patch -p0

Re: write to dvd ram

2001-05-15 Thread cacook
No one has a minute to help me with this (compile?) problem? Linus ? Original Message Subject: Re: write to dvd ram Date: Fri, 11 May 2001 07:57:56 -0600 From: @. To: [EMAIL PROTECTED] References: 91FD33983070D21188A10008C728176C09421202@LDMS6003 [EMAIL PROTECTED] [EMAIL

[PATCH] Remove silly beep macro from pgtable.h

2001-05-15 Thread Jeff Golds
Hi folks, Found this bit of unused code in the i386 and sh architectures. As it's not being used, let's get rid of it. Also, pgtable.h seems to be an odd place for this. -Jeff diff -u -r linux-2.4.4.pure/include/asm-i386/pgtable.h linux-2.4.4/include/asm-i386/pgtable.h ---

2.4.5-pre1: Bogus ARP packets containing NFS file data? (2)

2001-05-15 Thread Frank van Maarseveen
Got the image of 3 interesting packets by letting a modified tcpdump dump the entire packet buffer in arp_print(). Original tcpdump output: 16:23:17.108993 P 0:60:97:ba:b4:f5 0:0:0:0:0:1 arp 1514: arp-#8192 for proto #1500 (138) hardware #17664 (36) 16:23:17.809024 P 0:60:97:ba:b4:f5

Re: LANANA: To Pending Device Number Registrants

2001-05-15 Thread David Balazic
On Tue May 15 2001 , Linus Torvalds wrote : On Tue, 15 May 2001, Neil Brown wrote: Finally, how do I say that I want the root filesystem to be on a particular mdp device+partition. I cannot assume that my device will be the first to register with the disk layer, so I cannot be

  1   2   3   4   5   6   7   >