[RFC][PATCH] Re: 4Gb ram not showing up

2007-06-06 Thread Bodo Eggert
Change the description of CONFIG_*HIGHMEM* to reflect "lost" memory due to PCI space and the existence of the NX flag. Signed-Off-By: Bodo Eggert <[EMAIL PROTECTED]> --- I made this quick patch using the information from LKML as I remembered it. Please verify. --- 2.6.21/arch/

Re: 2.6.22-rc[23]: blinking capslock led, stuck keys?

2007-06-06 Thread Bodo Eggert
Henrique de Moraes Holschuh <[EMAIL PROTECTED]> wrote: > On Mon, 04 Jun 2007, Dmitry Torokhov wrote: >> >...but I'm not quite sure it is a buggy keyboard. It happens _way_ too >> >often. Launch the line above and try to do some typing... >> >> This used to work fine on my box last time I tried

Re: 2.6.22-rc[23]: blinking capslock led, stuck keys?

2007-06-06 Thread Bodo Eggert
Henrique de Moraes Holschuh [EMAIL PROTECTED] wrote: On Mon, 04 Jun 2007, Dmitry Torokhov wrote: ...but I'm not quite sure it is a buggy keyboard. It happens _way_ too often. Launch the line above and try to do some typing... This used to work fine on my box last time I tried it (the switch

[RFC][PATCH] Re: 4Gb ram not showing up

2007-06-06 Thread Bodo Eggert
Change the description of CONFIG_*HIGHMEM* to reflect lost memory due to PCI space and the existence of the NX flag. Signed-Off-By: Bodo Eggert [EMAIL PROTECTED] --- I made this quick patch using the information from LKML as I remembered it. Please verify. --- 2.6.21/arch/i386/Kconfig.ori

Re: 2.6.22-rc3 hibernate(?) disables SMART on ide

2007-06-02 Thread Bodo Eggert
Tejun Heo <[EMAIL PROTECTED]> wrote: > David Greaves wrote: >> I have 2 ide disks. If I enable SMART and hibernate/suspend2disk, SMART is >> disabled when I resume. Maybe it's disabled by the BIOS? > According to the ATA standard, the device (drive) itself is responsible > for preserving

Re: 2.6.22-rc3 hibernate(?) disables SMART on ide

2007-06-02 Thread Bodo Eggert
Tejun Heo [EMAIL PROTECTED] wrote: David Greaves wrote: I have 2 ide disks. If I enable SMART and hibernate/suspend2disk, SMART is disabled when I resume. snip Maybe it's disabled by the BIOS? According to the ATA standard, the device (drive) itself is responsible for preserving SMART

Re: SELECT() returns 1 But FIONREAD says (Input/output error)

2007-06-01 Thread Bodo Eggert
Uncle George <[EMAIL PROTECTED]> wrote: > i am using the GARMIN_GPS/usb driver to read a gps receiver. > In testing the ability of my software to recover from various errors, I > try this: unplug the gps/USB cable from the usb hub. > > Interestingly enough the thread spins. > the SELECT() waits

Re: SELECT() returns 1 But FIONREAD says (Input/output error)

2007-06-01 Thread Bodo Eggert
Uncle George [EMAIL PROTECTED] wrote: i am using the GARMIN_GPS/usb driver to read a gps receiver. In testing the ability of my software to recover from various errors, I try this: unplug the gps/USB cable from the usb hub. Interestingly enough the thread spins. the SELECT() waits for

Re: double exclamation (!!) suckage in the kernel

2007-05-29 Thread Bodo Eggert
On Sat, 26 May 2007, Al Viro wrote: > On Sat, May 26, 2007 at 06:38:07PM +0200, Bodo Eggert wrote: > > Not exactly, if(foo) is the same as if( (int) foo), which is not > > guaranteed to result in non-null values for non-null pointers. > > RTFStandard. ... and don´t forget

Re: double exclamation (!!) suckage in the kernel

2007-05-29 Thread Bodo Eggert
On Sat, 26 May 2007, Al Viro wrote: On Sat, May 26, 2007 at 06:38:07PM +0200, Bodo Eggert wrote: Not exactly, if(foo) is the same as if( (int) foo), which is not guaranteed to result in non-null values for non-null pointers. RTFStandard. ... and don´t forget half of it untill you look up

Re: double exclamation (!!) suckage in the kernel

2007-05-26 Thread Bodo Eggert
Jan Engelhardt <[EMAIL PROTECTED]> wrote: > On May 25 2007 14:14, David Miller wrote: >>"!!" is used in contexts where pointers might be being >>tested as well as plain integers, the "!!" turns a pointer >>into the equivalent integer boolean for testing. >> >>NULL pointers become 0 >>non-NULL

Re: double exclamation (!!) suckage in the kernel

2007-05-26 Thread Bodo Eggert
Jan Engelhardt [EMAIL PROTECTED] wrote: On May 25 2007 14:14, David Miller wrote: !! is used in contexts where pointers might be being tested as well as plain integers, the !! turns a pointer into the equivalent integer boolean for testing. NULL pointers become 0 non-NULL pointers become 1

Re: [PATCH] "volatile considered harmful", take 3

2007-05-12 Thread Bodo Eggert
Satyam Sharma <[EMAIL PROTECTED]> wrote: > In fact you can't really say the same for > volatile. We already assume the compiler _actually_ took some > pains to stuff meaning into C's (lack of) definition of volatile and > implement it -- but in what sense, nobody knows (the C standard

Re: [PATCH] volatile considered harmful, take 3

2007-05-12 Thread Bodo Eggert
Satyam Sharma [EMAIL PROTECTED] wrote: In fact you can't really say the same for volatile. We already assume the compiler _actually_ took some pains to stuff meaning into C's (lack of) definition of volatile and implement it -- but in what sense, nobody knows (the C standard

Re: Long file names in VFAT broken with iocharset=utf8

2007-05-10 Thread Bodo Eggert
Albert Cahalan <[EMAIL PROTECTED]> wrote: > On 5/9/07, Andrey Borzenkov <[EMAIL PROTECTED]> wrote: >> 3. this still does not answer how can I *create* long name from within Linux. > > WTF? These names are too annoying to use, even if there > weren't this limit. Anything over about 29 characters

Re: Long file names in VFAT broken with iocharset=utf8

2007-05-10 Thread Bodo Eggert
Albert Cahalan [EMAIL PROTECTED] wrote: On 5/9/07, Andrey Borzenkov [EMAIL PROTECTED] wrote: 3. this still does not answer how can I *create* long name from within Linux. WTF? These names are too annoying to use, even if there weren't this limit. Anything over about 29 characters is in

Re: Long file names in VFAT broken with iocharset=utf8

2007-05-08 Thread Bodo Eggert
Albert Cahalan <[EMAIL PROTECTED]> wrote: [...] > At two bytes per character, you get 127 characters in a filename. > That's wider than the standard 80-column display, and far wider > than the 28 or 29 characters that an "ls -l" has room for. In a > GUI file manager or file dialog box, you'll

Re: Long file names in VFAT broken with iocharset=utf8

2007-05-08 Thread Bodo Eggert
Albert Cahalan [EMAIL PROTECTED] wrote: [...] At two bytes per character, you get 127 characters in a filename. That's wider than the standard 80-column display, and far wider than the 28 or 29 characters that an ls -l has room for. In a GUI file manager or file dialog box, you'll have to

Re: Ext3 vs NTFS performance

2007-05-07 Thread Bodo Eggert
Jörn Engel <[EMAIL PROTECTED]> wrote: > On Fri, 4 May 2007 10:46:10 +0100, Christoph Hellwig wrote: >> Which means the right place to fix this is samba. Samba just need >> to intersept lseek and pread/pwrite to never allocate sparse files >> but do the right thing instead. Now what the right

Re: Ext3 vs NTFS performance

2007-05-07 Thread Bodo Eggert
Jörn Engel [EMAIL PROTECTED] wrote: On Fri, 4 May 2007 10:46:10 +0100, Christoph Hellwig wrote: Which means the right place to fix this is samba. Samba just need to intersept lseek and pread/pwrite to never allocate sparse files but do the right thing instead. Now what the right thing would

Re: Correct location for ADC/DAC drivers

2007-05-06 Thread Bodo Eggert
Robin Getz <[EMAIL PROTECTED]> wrote: > On Fri 4 May 2007 16:52, Robert Schwebel pondered: >> On Fri, May 04, 2007 at 02:21:50PM -0400, Robin Getz wrote: >> > We also have DAC and ADC drivers (up to 16 bits @ 64MS/s, via DMA), >> > that would be nice to put in the "right" place - I don't think

Re: Correct location for ADC/DAC drivers

2007-05-06 Thread Bodo Eggert
Robin Getz [EMAIL PROTECTED] wrote: On Fri 4 May 2007 16:52, Robert Schwebel pondered: On Fri, May 04, 2007 at 02:21:50PM -0400, Robin Getz wrote: We also have DAC and ADC drivers (up to 16 bits @ 64MS/s, via DMA), that would be nice to put in the right place - I don't think that

Re: Ext3 vs NTFS performance

2007-05-05 Thread Bodo Eggert
Theodore Tso <[EMAIL PROTECTED]> wrote: > But as has already been discussed on this thread, in situations where > the fileserver is under high memory pressure, any filesystem (XFS or > ext4) would still end up allocating blocks out of order, resulting in > fragmentation. Explicit preallocation,

Re: Ext3 vs NTFS performance

2007-05-05 Thread Bodo Eggert
Theodore Tso [EMAIL PROTECTED] wrote: But as has already been discussed on this thread, in situations where the fileserver is under high memory pressure, any filesystem (XFS or ext4) would still end up allocating blocks out of order, resulting in fragmentation. Explicit preallocation, as

[RFC] Reorder Kconfig: General setup

2007-05-02 Thread Bodo Eggert
Some Kconfig menus are very unsorted, so finding the option you want to change takes careful reading of the complete menu. I'm about to change some of the menus to be more user-friendly, starting with the general setup and working my way through the rest as time permits. In order to make the

[RFC] Reorder Kconfig: General setup

2007-05-02 Thread Bodo Eggert
Some Kconfig menus are very unsorted, so finding the option you want to change takes careful reading of the complete menu. I'm about to change some of the menus to be more user-friendly, starting with the general setup and working my way through the rest as time permits. In order to make the

Re: Back to the future.

2007-04-28 Thread Bodo Eggert
Pavel Machek <[EMAIL PROTECTED]> wrote: >> I also don't like the idea of storing this in the swap partition for a >> couple of reasons. >> >> 1. on many modern linux systems the swap partition is not large enough. >> >> for example, on my boxes with 16G or ram I only allocate 2G of swap >>

Re: Back to the future.

2007-04-28 Thread Bodo Eggert
Pavel Machek [EMAIL PROTECTED] wrote: I also don't like the idea of storing this in the swap partition for a couple of reasons. 1. on many modern linux systems the swap partition is not large enough. for example, on my boxes with 16G or ram I only allocate 2G of swap space WTF? So

Re: Wrong free clusters count on FAT32

2007-04-22 Thread Bodo Eggert
On Sun, 22 Apr 2007, OGAWA Hirofumi wrote: > Bodo Eggert <[EMAIL PROTECTED]> writes: > > Windows _does_ care*, it will pretend the disk to be full. > > Did you test on 2000 or XP? (e.g. write 0 to free_clusters, then > create new file.) That was back when I still

Re: Wrong free clusters count on FAT32

2007-04-22 Thread Bodo Eggert
OGAWA Hirofumi <[EMAIL PROTECTED]> wrote: > DervishD <[EMAIL PROTECTED]> writes: >> Probably it's stupid to update the free clusters count at mount time >> (sorry if so...) but it looks like a good idea to me. And of course, I >> don't mean to update the value _on disk_, but the kernel's idea

Re: Wrong free clusters count on FAT32

2007-04-22 Thread Bodo Eggert
OGAWA Hirofumi <[EMAIL PROTECTED]> wrote: >> * Juergen Beisert <[EMAIL PROTECTED]> dixit: >>> So the last free sector count is also stored. When mounting this >>> filesystem you don't need to walk through the whole FAT to calculate >>> the available space, you can use this "cached" value

Re: Wrong free clusters count on FAT32

2007-04-22 Thread Bodo Eggert
OGAWA Hirofumi [EMAIL PROTECTED] wrote: * Juergen Beisert [EMAIL PROTECTED] dixit: So the last free sector count is also stored. When mounting this filesystem you don't need to walk through the whole FAT to calculate the available space, you can use this cached value instead. And this

Re: Wrong free clusters count on FAT32

2007-04-22 Thread Bodo Eggert
OGAWA Hirofumi [EMAIL PROTECTED] wrote: DervishD [EMAIL PROTECTED] writes: Probably it's stupid to update the free clusters count at mount time (sorry if so...) but it looks like a good idea to me. And of course, I don't mean to update the value _on disk_, but the kernel's idea of free

Re: Wrong free clusters count on FAT32

2007-04-22 Thread Bodo Eggert
On Sun, 22 Apr 2007, OGAWA Hirofumi wrote: Bodo Eggert [EMAIL PROTECTED] writes: Windows _does_ care*, it will pretend the disk to be full. Did you test on 2000 or XP? (e.g. write 0 to free_clusters, then create new file.) That was back when I still used W98. - usefree is a bad name

Re: how to tell linux (on x86) to ignore 1M or memory

2007-04-20 Thread Bodo Eggert
Rene Herman <[EMAIL PROTECTED]> wrote: > On 04/19/2007 04:18 PM, Bart Trojanowski wrote: >> I need to preserve some state from the bios before entering protected >> mode. For now I want to copy it into some ram accessible by real-mode, >> say the last megabyte visible in real-mode. >> >> What's

Re: how to tell linux (on x86) to ignore 1M or memory

2007-04-20 Thread Bodo Eggert
Rene Herman [EMAIL PROTECTED] wrote: On 04/19/2007 04:18 PM, Bart Trojanowski wrote: I need to preserve some state from the bios before entering protected mode. For now I want to copy it into some ram accessible by real-mode, say the last megabyte visible in real-mode. What's the easiest

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Bodo Eggert
Tejun Heo <[EMAIL PROTECTED]> wrote: > This really isn't a regression. It's been always like that with libata. > libata doesn't make devices go into standby mode and shutdown(8) does > it for libata. The problem here is that libata does issue > SYNCHRONIZE_CACHE on shutdown. So, the sequence

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Bodo Eggert
Tejun Heo [EMAIL PROTECTED] wrote: This really isn't a regression. It's been always like that with libata. libata doesn't make devices go into standby mode and shutdown(8) does it for libata. The problem here is that libata does issue SYNCHRONIZE_CACHE on shutdown. So, the sequence of

Re: need help

2007-04-06 Thread Bodo Eggert
vjn <[EMAIL PROTECTED]> wrote: > in my project i want to code the kernel such that when i plugged my usb it > should ask for password and check it in the kernel space . can anyone help > me No, since the kernel has no way to ask for input. Imagine a two-seated machine with two keyboards, mice

Re: need help

2007-04-06 Thread Bodo Eggert
vjn [EMAIL PROTECTED] wrote: in my project i want to code the kernel such that when i plugged my usb it should ask for password and check it in the kernel space . can anyone help me No, since the kernel has no way to ask for input. Imagine a two-seated machine with two keyboards, mice and

Re: Linux-VServer example results for sharing vs. separate mappings ...

2007-03-29 Thread Bodo Eggert
Ethan Solomita <[EMAIL PROTECTED]> wrote: > I suggest a variant on what Andrew says: don't change reclaim. > Instead, when referencing a page, don't mark the page as referenced if > the current task is not permitted to allocate from the page's node. I'm > thinking in terms of cpusets, with

Re: Linux-VServer example results for sharing vs. separate mappings ...

2007-03-29 Thread Bodo Eggert
Ethan Solomita [EMAIL PROTECTED] wrote: I suggest a variant on what Andrew says: don't change reclaim. Instead, when referencing a page, don't mark the page as referenced if the current task is not permitted to allocate from the page's node. I'm thinking in terms of cpusets, with each

Re: Kconfig style question

2007-03-16 Thread Bodo Eggert
Kumar Gala <[EMAIL PROTECTED]> wrote: > For source lines I've seen both: > > source "arch/powerpc/platforms/52xx/Kconfig" > > and > > source arch/powerpc/platforms/85xx/Kconfig > > Is there a preferred style? Quotes or not? $ find . -name Kconfig -exec grep ^source '{}' \;|grep \"|wc -l

Re: Kconfig style question

2007-03-16 Thread Bodo Eggert
Kumar Gala [EMAIL PROTECTED] wrote: For source lines I've seen both: source arch/powerpc/platforms/52xx/Kconfig and source arch/powerpc/platforms/85xx/Kconfig Is there a preferred style? Quotes or not? $ find . -name Kconfig -exec grep ^source '{}' \;|grep \|wc -l 732 $ find .

Re: sys_write() racy for multi-threaded append?

2007-03-12 Thread Bodo Eggert
On Mon, 12 Mar 2007, Michael K. Edwards wrote: > On 3/12/07, Bodo Eggert <[EMAIL PROTECTED]> wrote: > > Michael K. Edwards <[EMAIL PROTECTED]> wrote: > > > Actually, I think it would make the kernel (negligibly) faster to bump > > > f_pos before the vfs_w

Re: sys_write() racy for multi-threaded append?

2007-03-12 Thread Bodo Eggert
Michael K. Edwards <[EMAIL PROTECTED]> wrote: > On 3/8/07, Eric Dumazet <[EMAIL PROTECTED]> wrote: >> Absolutely not. We dont want to slow down kernel 'just in case a fool might >> want to do crazy things' > > Actually, I think it would make the kernel (negligibly) faster to bump > f_pos before

Re: sys_write() racy for multi-threaded append?

2007-03-12 Thread Bodo Eggert
Michael K. Edwards [EMAIL PROTECTED] wrote: On 3/8/07, Eric Dumazet [EMAIL PROTECTED] wrote: Absolutely not. We dont want to slow down kernel 'just in case a fool might want to do crazy things' Actually, I think it would make the kernel (negligibly) faster to bump f_pos before the

Re: sys_write() racy for multi-threaded append?

2007-03-12 Thread Bodo Eggert
On Mon, 12 Mar 2007, Michael K. Edwards wrote: On 3/12/07, Bodo Eggert [EMAIL PROTECTED] wrote: Michael K. Edwards [EMAIL PROTECTED] wrote: Actually, I think it would make the kernel (negligibly) faster to bump f_pos before the vfs_write() call. This is a security risk. snip I

Re: PROBLEM: "Make nenuconfig" does not save parameters.

2007-03-10 Thread Bodo Eggert
Sam Ravnborg <[EMAIL PROTECTED]> wrote: > On Sat, Mar 10, 2007 at 10:34:41PM +0100, Jan Engelhardt wrote: >> On Mar 10 2007 22:27, Sam Ravnborg wrote: >> >On Sat, Mar 10, 2007 at 07:23:41PM +0100, Jan Engelhardt wrote: >> >> Whether the 'working config file path' should change when you do >> >>

Re: PROBLEM: Make nenuconfig does not save parameters.

2007-03-10 Thread Bodo Eggert
Sam Ravnborg [EMAIL PROTECTED] wrote: On Sat, Mar 10, 2007 at 10:34:41PM +0100, Jan Engelhardt wrote: On Mar 10 2007 22:27, Sam Ravnborg wrote: On Sat, Mar 10, 2007 at 07:23:41PM +0100, Jan Engelhardt wrote: Whether the 'working config file path' should change when you do 'Save as

Re: [lm-sensors] Could the k8temp driver be interfering with ACPI?

2007-03-07 Thread Bodo Eggert
On Wed, 7 Mar 2007, Jean Delvare wrote: > On Tue, 6 Mar 2007 21:40:19 +0100 (CET), Bodo Eggert wrote: > > 1) I asume port allocations or ACPI foreign port acces to be rare, so > >there would be little impact on (un)registering hardware. Off cause > >there are some

Re: [lm-sensors] Could the k8temp driver be interfering with ACPI?

2007-03-07 Thread Bodo Eggert
On Wed, 7 Mar 2007, Jean Delvare wrote: On Tue, 6 Mar 2007 21:40:19 +0100 (CET), Bodo Eggert wrote: 1) I asume port allocations or ACPI foreign port acces to be rare, so there would be little impact on (un)registering hardware. Off cause there are some long ACPI calls (like reading

Re: [lm-sensors] Could the k8temp driver be interfering with ACPI?

2007-03-06 Thread Bodo Eggert
On Tue, 6 Mar 2007, Jean Delvare wrote: > On Mon, 05 Mar 2007 14:56:44 +0100, Bodo Eggert wrote: > > 2) make ACPI take this lock whenever it touches ports not allocated by > > itself > >and release it on function return. > > This is costly. TANSTAAFL. Yo

Re: [lm-sensors] Could the k8temp driver be interfering with ACPI?

2007-03-06 Thread Bodo Eggert
On Tue, 6 Mar 2007, Jean Delvare wrote: On Mon, 05 Mar 2007 14:56:44 +0100, Bodo Eggert wrote: 2) make ACPI take this lock whenever it touches ports not allocated by itself and release it on function return. This is costly. TANSTAAFL. You'll need to take some lock, and if you want

Re: [lm-sensors] Could the k8temp driver be interfering with ACPI?

2007-03-05 Thread Bodo Eggert
David Hubbard <[EMAIL PROTECTED]> wrote: > For I/O and memory that ACPI accesses and has not reserved, the AML > interpreter could allocate at run-time. > > I'm not sure how to implement exactly. For example, it would be bad to > have a /proc/ioports that had a lot of single ports allocated, for

Re: [lm-sensors] Could the k8temp driver be interfering with ACPI?

2007-03-05 Thread Bodo Eggert
David Hubbard [EMAIL PROTECTED] wrote: For I/O and memory that ACPI accesses and has not reserved, the AML interpreter could allocate at run-time. I'm not sure how to implement exactly. For example, it would be bad to have a /proc/ioports that had a lot of single ports allocated, for

Re: [PATCH] free swap space when (re)activating page

2007-02-22 Thread Bodo Eggert
Rik van Riel <[EMAIL PROTECTED]> wrote: +++ linux-2.6.20.noarch/mm/swap.c2007-02-20 06:44:17.0 -0500 @@ -420,6 +420,26 @@ void pagevec_strip(struct pagevec *pvec) > +if (printk_ratelimit()) > +printk("kswapd freed a swap

Re: [PATCH] free swap space when (re)activating page

2007-02-22 Thread Bodo Eggert
Rik van Riel [EMAIL PROTECTED] wrote: +++ linux-2.6.20.noarch/mm/swap.c2007-02-20 06:44:17.0 -0500 @@ -420,6 +420,26 @@ void pagevec_strip(struct pagevec *pvec) +if (printk_ratelimit()) +printk(kswapd freed a swap

Re: somebody dropped a (warning) bomb

2007-02-16 Thread Bodo Eggert
On Fri, 16 Feb 2007, Sergei Organov wrote: > Bodo Eggert <[EMAIL PROTECTED]> writes: > > Sergei Organov <[EMAIL PROTECTED]> wrote: > >> Linus Torvalds <[EMAIL PROTECTED]> writes: > > If you don't code for a specific compiler with specific setting

Re: [PATCH 0/6] MODSIGN: Kernel module signing

2007-02-16 Thread Bodo Eggert
Roman Zippel <[EMAIL PROTECTED]> wrote: > On Thu, 15 Feb 2007, David Howells wrote: >> > This is really the weak point - it offers no advantage over an equivalent >> > implementation in user space (e.g. in the module tools). So why has to be >> > done in the kernel? >> >> Because the

Re: somebody dropped a (warning) bomb

2007-02-16 Thread Bodo Eggert
On Fri, 16 Feb 2007, Sergei Organov wrote: > Bodo Eggert <[EMAIL PROTECTED]> writes: > > Sergei Organov <[EMAIL PROTECTED]> wrote: > >> Linus Torvalds <[EMAIL PROTECTED]> writes: > [...] > > Using signed chars for strings is wrong in most countries on

Re: somebody dropped a (warning) bomb

2007-02-16 Thread Bodo Eggert
On Fri, 16 Feb 2007, Sergei Organov wrote: Bodo Eggert [EMAIL PROTECTED] writes: Sergei Organov [EMAIL PROTECTED] wrote: Linus Torvalds [EMAIL PROTECTED] writes: [...] Using signed chars for strings is wrong in most countries on earth. It was wrong when the first IBM PC came out in 1981

Re: somebody dropped a (warning) bomb

2007-02-16 Thread Bodo Eggert
On Fri, 16 Feb 2007, Sergei Organov wrote: Bodo Eggert [EMAIL PROTECTED] writes: Sergei Organov [EMAIL PROTECTED] wrote: Linus Torvalds [EMAIL PROTECTED] writes: If you don't code for a specific compiler with specific settings, there is no implementation defining the signedness of char

Re: [PATCH 0/6] MODSIGN: Kernel module signing

2007-02-16 Thread Bodo Eggert
Roman Zippel [EMAIL PROTECTED] wrote: On Thu, 15 Feb 2007, David Howells wrote: This is really the weak point - it offers no advantage over an equivalent implementation in user space (e.g. in the module tools). So why has to be done in the kernel? Because the init_module() system call

Re: GPL vs non-GPL device drivers

2007-02-15 Thread Bodo Eggert
v j <[EMAIL PROTECTED]> wrote: > So far I have heard nothing but, "if you don't contribute, screw you." That's exactly what you tell to the linux community: If they don't contribute to your project *FOR*NOTHING*IN*RETURN*, you'll punish them by - stamping your feet, crying out loud and *paying*

Re: somebody dropped a (warning) bomb

2007-02-15 Thread Bodo Eggert
Sergei Organov <[EMAIL PROTECTED]> wrote: > Linus Torvalds <[EMAIL PROTECTED]> writes: >> Exactly because "char" *by*definition* is "indeterminate sign" as far as >> something like "strlen()" is concerned. > > Thanks, I now understand that you either don't see the difference > between

Re: [RFC] [PATCH] more support for memory-less-node.

2007-02-15 Thread Bodo Eggert
Andi Kleen <[EMAIL PROTECTED]> wrote: > Now if it's better to set up a empty node or use a nearby node > for a memory less cpu can be further discussed. I still think > I lean towards the later. Worst case: Only slot 0 is used. Plug your memoryless CPU card into the last slot before your plug

Re: GPL vs non-GPL device drivers

2007-02-15 Thread Bodo Eggert
v j <[EMAIL PROTECTED]> wrote: > On 2/14/07, Arjan van de Ven <[EMAIL PROTECTED]> wrote: >> On Wed, 2007-02-14 at 21:16 -0800, v j wrote: >> > This is in reference to the following thread: >> > >> > http://lkml.org/lkml/2006/12/14/63 >> > >> > I am not sure if this is ever addressed in LKML, but

Re: GPL vs non-GPL device drivers

2007-02-15 Thread Bodo Eggert
v j [EMAIL PROTECTED] wrote: On 2/14/07, Arjan van de Ven [EMAIL PROTECTED] wrote: On Wed, 2007-02-14 at 21:16 -0800, v j wrote: This is in reference to the following thread: http://lkml.org/lkml/2006/12/14/63 I am not sure if this is ever addressed in LKML, but linux is _very_

Re: [RFC] [PATCH] more support for memory-less-node.

2007-02-15 Thread Bodo Eggert
Andi Kleen [EMAIL PROTECTED] wrote: Now if it's better to set up a empty node or use a nearby node for a memory less cpu can be further discussed. I still think I lean towards the later. Worst case: Only slot 0 is used. Plug your memoryless CPU card into the last slot before your plug the

Re: somebody dropped a (warning) bomb

2007-02-15 Thread Bodo Eggert
Sergei Organov [EMAIL PROTECTED] wrote: Linus Torvalds [EMAIL PROTECTED] writes: Exactly because char *by*definition* is indeterminate sign as far as something like strlen() is concerned. Thanks, I now understand that you either don't see the difference between indeterminate and

Re: GPL vs non-GPL device drivers

2007-02-15 Thread Bodo Eggert
v j [EMAIL PROTECTED] wrote: So far I have heard nothing but, if you don't contribute, screw you. That's exactly what you tell to the linux community: If they don't contribute to your project *FOR*NOTHING*IN*RETURN*, you'll punish them by - stamping your feet, crying out loud and *paying* for

2.6.20 doesn't compile with gcc-3.2.2

2007-02-05 Thread Bodo Eggert
Al Boldi <[EMAIL PROTECTED]> wrote: > Doing the following results in an incomplete vmlinuz: > # make bzlilo > > objcopy: arch/i386/boot/compressed/vmlinux.bin: File truncated > make[2]: *** [arch/i386/boot/compressed/vmlinux.bin] Error 1 > make[1]: *** [arch/i386/boot/compressed/vmlinux] Error

Re: [PATCH/RFC] alternative aproach to: Ban module license tag string termination trick

2007-02-05 Thread Bodo Eggert
On Sat, 3 Feb 2007, Alan wrote: > Bodo Eggert <[EMAIL PROTECTED]> wrote: > > This patch changes the module license handling code to: > > - allow modules to have multiple licenses > > NAK I still think it would be a good idea, but if too many people misinterpre

Re: [PATCH/RFC] alternative aproach to: Ban module license tag string termination trick

2007-02-05 Thread Bodo Eggert
On Sat, 3 Feb 2007, Alan wrote: Bodo Eggert [EMAIL PROTECTED] wrote: This patch changes the module license handling code to: - allow modules to have multiple licenses NAK I still think it would be a good idea, but if too many people misinterpret my concept, you can't do

2.6.20 doesn't compile with gcc-3.2.2

2007-02-05 Thread Bodo Eggert
Al Boldi [EMAIL PROTECTED] wrote: Doing the following results in an incomplete vmlinuz: # make bzlilo objcopy: arch/i386/boot/compressed/vmlinux.bin: File truncated make[2]: *** [arch/i386/boot/compressed/vmlinux.bin] Error 1 make[1]: *** [arch/i386/boot/compressed/vmlinux] Error 2 make:

Re: [PATCH/RFC] alternative aproach to: Ban module license tag string termination trick

2007-02-03 Thread Bodo Eggert
On Sat, 3 Feb 2007, Jan Engelhardt wrote: > On Feb 3 2007 03:08, Bodo Eggert wrote: > >This patch changes the module license handling code to: > >- allow modules to have multiple licenses > >- access GPL symbols if at least one license is GPL-compatible > > I strong

Re: [PATCH/RFC] alternative aproach to: Ban module license tag string termination trick

2007-02-03 Thread Bodo Eggert
On Sat, 3 Feb 2007, Jan Engelhardt wrote: On Feb 3 2007 03:08, Bodo Eggert wrote: This patch changes the module license handling code to: - allow modules to have multiple licenses - access GPL symbols if at least one license is GPL-compatible I strongly nak that. If you combine two object

[PATCH/RFC] alternative aproach to: Ban module license tag string termination trick

2007-02-02 Thread Bodo Eggert
es) - move the ndiswrapper check into the new license checking routine Signed-Off-By: Bodo Eggert <[EMAIL PROTECTED]> --- The license handling code was kind of strange: - The kernel itself would only consider the first license, while modpost looks at all of them. - If you offer your mo

[PATCH/RFC] alternative aproach to: Ban module license tag string termination trick

2007-02-02 Thread Bodo Eggert
the ndiswrapper check into the new license checking routine Signed-Off-By: Bodo Eggert [EMAIL PROTECTED] --- The license handling code was kind of strange: - The kernel itself would only consider the first license, while modpost looks at all of them. - If you offer your module under a non-GPL

[PATCH] pipefs unique inode numbers

2007-01-30 Thread Bodo Eggert
change pipefs to use a unique inode number equal to the memory address unless it would be truncated. Signed-Off-By: Bodo Eggert <[EMAIL PROTECTED]> --- Tested on i386. --- 2.6.19/fs/pipe.c.ori2007-01-30 22:02:46.0 +0100 +++ 2.6.19/fs/pipe.c2007-01-30 23:22:27.0

Re: [PATCH 2/2] make pipefs do lazy i_ino assignment and hashing

2007-01-30 Thread Bodo Eggert
Jeff Layton <[EMAIL PROTECTED]> wrote: > This patch updates pipefs to do defer assigning an i_ino value to its inodes > until someone actually tries to stat it. This allows us to have unique i_ino > values for the inodes here, without the performance impact for anyone who > doesn't actually care

Re: [patch] raw: don't allow the creation of a raw device with minor number 0

2007-01-30 Thread Bodo Eggert
Dave Jones <[EMAIL PROTECTED]> wrote: > On Fri, Jan 12, 2007 at 05:58:41PM -0500, [EMAIL PROTECTED] wrote: > > jengelh> What: RAW driver (CONFIG_RAW_DRIVER) > > jengelh> When: December 2005 > > jengelh> Why:declared obsolete since kernel 2.6.3 > > jengelh> O_DIRECT can

Re: [patch] raw: don't allow the creation of a raw device with minor number 0

2007-01-30 Thread Bodo Eggert
Dave Jones [EMAIL PROTECTED] wrote: On Fri, Jan 12, 2007 at 05:58:41PM -0500, [EMAIL PROTECTED] wrote: jengelh What: RAW driver (CONFIG_RAW_DRIVER) jengelh When: December 2005 jengelh Why:declared obsolete since kernel 2.6.3 jengelh O_DIRECT can be used

Re: [PATCH 2/2] make pipefs do lazy i_ino assignment and hashing

2007-01-30 Thread Bodo Eggert
Jeff Layton [EMAIL PROTECTED] wrote: This patch updates pipefs to do defer assigning an i_ino value to its inodes until someone actually tries to stat it. This allows us to have unique i_ino values for the inodes here, without the performance impact for anyone who doesn't actually care about

[PATCH] pipefs unique inode numbers

2007-01-30 Thread Bodo Eggert
change pipefs to use a unique inode number equal to the memory address unless it would be truncated. Signed-Off-By: Bodo Eggert [EMAIL PROTECTED] --- Tested on i386. --- 2.6.19/fs/pipe.c.ori2007-01-30 22:02:46.0 +0100 +++ 2.6.19/fs/pipe.c2007-01-30 23:22:27.0 +0100

Re: swap: which is the maximum size allowed?

2007-01-28 Thread Bodo Eggert
Eriberto <[EMAIL PROTECTED]> wrote: > I am trying understand the swap. I would like to know which is the > maximum swap size on i386. Is 64 MB? If yes, how to know the origin of > this "magic" number? I don't found it (Internet). Look into the manpage of mkswap. It's 2 G x 32 swap partitions,

Re: swap: which is the maximum size allowed?

2007-01-28 Thread Bodo Eggert
Eriberto [EMAIL PROTECTED] wrote: I am trying understand the swap. I would like to know which is the maximum swap size on i386. Is 64 MB? If yes, how to know the origin of this magic number? I don't found it (Internet). Look into the manpage of mkswap. It's 2 G x 32 swap partitions, minus a

Re: O_DIRECT question

2007-01-27 Thread Bodo Eggert
Denis Vlasenko <[EMAIL PROTECTED]> wrote: > On Friday 26 January 2007 19:23, Bill Davidsen wrote: >> Denis Vlasenko wrote: >> > On Thursday 25 January 2007 21:45, Michael Tokarev wrote: >> >> But even single-threaded I/O but in large quantities benefits from >> >> O_DIRECT significantly, and I

Re: [PATCH 2/8] readahead: state based method routines: explicitly embed class_new/class_old inside flags

2007-01-27 Thread Bodo Eggert
Fengguang Wu <[EMAIL PROTECTED]> wrote: > The new/old ra class were implicitly stored in low bits of > file_ra_state.flags. Now make the data structure obvious, and remove the > coding tricks. > +++ linux-2.6.20-rc4-mm1/include/linux/fs.h > - unsigned long flags;/* RA_FLAG_xxx |

Re: [PATCH 2/8] readahead: state based method routines: explicitly embed class_new/class_old inside flags

2007-01-27 Thread Bodo Eggert
Fengguang Wu [EMAIL PROTECTED] wrote: The new/old ra class were implicitly stored in low bits of file_ra_state.flags. Now make the data structure obvious, and remove the coding tricks. +++ linux-2.6.20-rc4-mm1/include/linux/fs.h - unsigned long flags;/* RA_FLAG_xxx | ra_class_old |

Re: O_DIRECT question

2007-01-27 Thread Bodo Eggert
Denis Vlasenko [EMAIL PROTECTED] wrote: On Friday 26 January 2007 19:23, Bill Davidsen wrote: Denis Vlasenko wrote: On Thursday 25 January 2007 21:45, Michael Tokarev wrote: But even single-threaded I/O but in large quantities benefits from O_DIRECT significantly, and I pointed this out

Re: [RFC] Limit the size of the pagecache

2007-01-25 Thread Bodo Eggert
Peter Zijlstra <[EMAIL PROTECTED]> wrote: > On Wed, 2007-01-24 at 22:22 +0800, Aubrey Li wrote: >> On 1/24/07, Peter Zijlstra <[EMAIL PROTECTED]> wrote: >> > He wants to make a nommu system act like a mmu system; this will just >> > never ever work. >> >> Nope. Actually my nommu system works

Re: [ANNOUNCE] System Inactivity Monitor v1.0

2007-01-25 Thread Bodo Eggert
Scott Preece <[EMAIL PROTECTED]> wrote: > My own hot button is making sure that the definition of what > constitutes user activity is managed in exactly one place, whether in > the kernel or not. My naive model would be to put the response at user > level, but to provide a single point of

Re: [ANNOUNCE] System Inactivity Monitor v1.0

2007-01-25 Thread Bodo Eggert
Scott Preece [EMAIL PROTECTED] wrote: My own hot button is making sure that the definition of what constitutes user activity is managed in exactly one place, whether in the kernel or not. My naive model would be to put the response at user level, but to provide a single point of definition in

Re: [RFC] Limit the size of the pagecache

2007-01-25 Thread Bodo Eggert
Peter Zijlstra [EMAIL PROTECTED] wrote: On Wed, 2007-01-24 at 22:22 +0800, Aubrey Li wrote: On 1/24/07, Peter Zijlstra [EMAIL PROTECTED] wrote: He wants to make a nommu system act like a mmu system; this will just never ever work. Nope. Actually my nommu system works great with some of

Re: PROBLEM: KB->KiB, MB -> MiB, ... (IEC 60027-2)

2007-01-22 Thread Bodo Eggert
On Mon, 22 Jan 2007, Tony Foiani wrote: > > "Jan" == Jan Engelhardt <[EMAIL PROTECTED]> writes: > > Jan> For "F"s sake, when you gotta use abbreviations, then just use > Jan> k=1000 and K=1024 already, b for bits and B for bytes. Problem > Jan> gone. > >The one-letter abbreviations are

Re: PROBLEM: KB-KiB, MB - MiB, ... (IEC 60027-2)

2007-01-22 Thread Bodo Eggert
On Mon, 22 Jan 2007, Tony Foiani wrote: Jan == Jan Engelhardt [EMAIL PROTECTED] writes: Jan For Fs sake, when you gotta use abbreviations, then just use Jan k=1000 and K=1024 already, b for bits and B for bytes. Problem Jan gone. The one-letter abbreviations are identical to SI

Re: PROBLEM: KB->KiB, MB -> MiB, ... (IEC 60027-2)

2007-01-21 Thread Bodo Eggert
Tony Foiani <[EMAIL PROTECTED]> wrote: >> "David" == David Schwartz <[EMAIL PROTECTED]> writes: > Just last night I formatted some new "500GB" drives, and they > eventually came back with 465GB as the displayed capacity. Wouldn't > it make more sense to display that as "465GiB"? [...] >

Re: PROBLEM: KB-KiB, MB - MiB, ... (IEC 60027-2)

2007-01-21 Thread Bodo Eggert
Tony Foiani [EMAIL PROTECTED] wrote: David == David Schwartz [EMAIL PROTECTED] writes: Just last night I formatted some new 500GB drives, and they eventually came back with 465GB as the displayed capacity. Wouldn't it make more sense to display that as 465GiB? [...] David Adopting IEC

<    1   2   3   4   5   6   7   8   >