Re: [PATCH 13/16] show-pipesize-in-stat.diff

2007-04-17 Thread Jan Engelhardt
Hi, On Wed, 04 Apr 2007 07:03:55 +0200, Eric Dumazet wrote: find net | xargs grep -n SIOCINQ I suspect you will find unix_ioctl() in net/unix/af_unix.c ? BTW, my patch only worked for pipes, not fifos. Ie pipe(), not open(/some/fifo.p, ...) Thanks for your patch. There is a question however;

Re: Loud pop coming from hard drive on reboot

2007-04-19 Thread Jan Engelhardt
On Apr 18 2007 09:39, Stephen Clark wrote: So this is the pop I hear on my new laptop that is using libata=combined_mode when I shut my system down. I didn't get the pop with the same disk drive in an older laptop that was only ide. It sounds like a relay closing or opening, but is really my

Re: built 2.6.20.7 on suse 10.0, boots fine, no mouse, network or keyboard

2007-04-19 Thread Jan Engelhardt
On Apr 18 2007 10:45, david rankin wrote: Mates, First post and I am having heck building the vanilla 2.6.20.7 kernel on Suse 10.0. Basically I put 2.6.20.7 in /usr/src, then I did [...] All current minimal requierments are met *except* udev which is version 068. Everything compiled

Re: Loud pop coming from hard drive on reboot

2007-04-21 Thread Jan Engelhardt
On Apr 20 2007 21:57, Fabio Comolli wrote: hda: TOSHIBA MK8025GAS, ATA DISK drive MK...? These sort of disks do that stupid pop. Mine -- a MK2003GAH -- does it even while running Linux, if the disk is _idle_. See http://lkml.org/lkml/2006/11/15/413 - hope it provides some pointers. Regards,

Re: [patch 7/8] allow unprivileged mounts

2007-04-21 Thread Jan Engelhardt
On Apr 21 2007 08:10, Eric W. Biederman wrote: Define a new fs flag FS_SAFE, which denotes, that unprivileged mounting of this filesystem may not constitute a security problem. Since most filesystems haven't been designed with unprivileged mounting in mind, a thorough audit is needed

Re: [patch 7/8] allow unprivileged mounts

2007-04-21 Thread Jan Engelhardt
On Apr 21 2007 10:57, Eric W. Biederman wrote: tmpfs! tmpfs is a possible problem because it can consume lots of ram/swap. Which is why it has limits on the amount of space it can consume. Users can gobble up all RAM and swap already today. (Unless they are confined into an rlimit, which,

Re: [REPORT] cfs-v4 vs sd-0.44

2007-04-21 Thread Jan Engelhardt
On Apr 21 2007 18:00, Ingo Molnar wrote: * Con Kolivas [EMAIL PROTECTED] wrote: Feels even better, mouse movements are very smooth even under high load. I noticed that X gets reniced to -19 with this scheduler. I've not looked at the code yet but this looked suspicious to me.

Re: [PATCH] kthread: Spontaneous exit support

2007-04-24 Thread Jan Engelhardt
On Apr 23 2007 12:25, Christoph Hellwig wrote: On Sun, Apr 22, 2007 at 09:12:55PM -0600, Eric W. Biederman wrote: This patch implements the kthread helper functions kthread_start and kthread_end which make it simple to support a kernel thread that may decided to exit on it's own before we

Re: How to walk through the tasklist ?

2007-04-24 Thread Jan Engelhardt
On Apr 24 2007 14:58, Stephan von Krawczynski wrote: Hello all, can anyone give me a short hint how walking through the tasklist in a device driver can be achieved nowadays. In ancient pre-20 times you could simply: read_lock(tasklist_lock); p=current; do { if (p-pid==pid)

Re: Question about Reiser4

2007-04-24 Thread Jan Engelhardt
On Apr 23 2007 17:21, H. Peter Anvin wrote: Neil Brown wrote: Our you could think outside the circle: Store all your small files as symlinks, then use symlink to create them and readlink to read them. (You would probably end up use symlinkat and readlinkat). Only one system call instead

Big reserved mappings on x86_64

2007-04-25 Thread Jan Engelhardt
Hello, I noticed that on x86_64, the VSZ indicator (`ps u $$`) is quite high, compared to i386 or sparc64. 10:32 ichi:~ ps u $$ # i686 USER PID %CPU %MEMVSZ RSS TTY STAT START TIME COMMAND jengelh 4950 0.2 0.2 4776 2112 pts/4Ss 10:32 0:00 -bash 10:36 sun:~

Re: Big reserved mappings on x86_64

2007-04-25 Thread Jan Engelhardt
On Apr 25 2007 11:30, Eric Dumazet wrote: Jakub Jelinek [EMAIL PROTECTED] wrote: On Wed, Apr 25, 2007 at 10:42:20AM +0200, Jan Engelhardt wrote: I actually took a look at `pmap $$`, which reveals that a lot of shared libraries map 2044K or 2048K unreadable-unwritable-private mappings

Re: [PATCH] chaostables

2007-03-08 Thread Jan Engelhardt
(I suspect a mailserver issue on my side, since I did not receive the replies from Alan or Patrick. But lkml.org has them, so I will be replying to both them there.) On Mar 8 2007 09:55, James Morris wrote: On Thu, 8 Mar 2007, Alan Cox wrote: Any chance of tweaking the name - it's just

Re: [PATCH] chaostables

2007-03-08 Thread Jan Engelhardt
On Mar 8 2007 18:15, Patrick McHardy wrote: Take xt_portscan as an example, which would require a minimum of 23 filtering rules (which cannot reproduce the module's action in its fullest). 23 rules means we will be looping a bit in ipt_do_table() for a single packet, repeatedly checking

Re: [PATCH] Fix building kernel under Solaris

2007-03-08 Thread Jan Engelhardt
On Mar 8 2007 08:35, Christoph Hellwig wrote: On Wed, Mar 07, 2007 at 11:45:11PM +0100, Jan Engelhardt wrote: On Mar 7 2007 09:42, Christoph Hellwig wrote: #include sys/time.h #include sys/ioctl.h #include sys/types.h +#ifndef __sun__ #include asm/types.h #endif +#endif

Re: [PATCH] Fix building kernel under Solaris 11_snv

2007-03-08 Thread Jan Engelhardt
On Mar 8 2007 22:25, Sam Ravnborg wrote: Subject: Re: [PATCH] Fix building kernel under Solaris Since Solaris seems to be on the run, I did myself try compile it. However, unlike the original poster who said he did so on SunOS 4.8, I did it on 5.11_snv39, yielding a bigger changeset. I thought

Re: [PATCH] chaostables

2007-03-08 Thread Jan Engelhardt
Hello, On Thu, 08 Mar 2007 18:15:12 +0100, Patrick McHardy wrote: Index: linux-2.6.21-rc3/net/netfilter/xt_CHAOS.c + /* Equivalent to: +* -A chaos -m statistic --mode random --probability \ +* $reject_percentage -j REJECT --reject-with host-unreach; +* -A chaos -m statistic

Re: [PATCH] chaostables

2007-03-09 Thread Jan Engelhardt
Hello, On Mar 9 2007 09:35, Amin Azez wrote: * Jan Engelhardt wrote, On 08/03/07 20:26: xt_portscan needs to keep track of what packets the machine has already seen. So on the first SYN, the connection is marked with 1. (Then we send our SYN-ACK... and the connection turns ESTABLISHED

Re: [PATCH] chaostables

2007-03-09 Thread Jan Engelhardt
Hello, On Mar 9 2007 11:54, Amin Azez wrote: Adding a member to the ip_conntrack/nf_conntrack and sk_buff struct would increase the struct sizes, and that would penalize users who do not intend to use xt_portscan. I understand what you say but it sounds a bit like saying: but we didn't make

Re: [PATCH] Fix building kernel under Solaris 11_snv

2007-03-09 Thread Jan Engelhardt
On Mar 9 2007 20:00, Sam Ravnborg wrote: On Thu, Mar 08, 2007 at 11:01:57PM +0100, Jan Engelhardt wrote: Since Solaris seems to be on the run, I did myself try compile it. However, unlike the original poster who said he did so on SunOS 4.8, I did it on 5.11_snv39, yielding a bigger

Re: ABI coupling to hypervisors via CONFIG_PARAVIRT

2007-03-09 Thread Jan Engelhardt
Hello, On Mar 9 2007 20:24, Ingo Molnar wrote: * Linus Torvalds [EMAIL PROTECTED] wrote: On Fri, 9 Mar 2007, Ingo Molnar wrote: yes - but we already support the raw hardware ABI, in the native kernel. Why do you continue to call paravirt an ABI? We got over that. It's not. It's an API.

Re: [PATCH] Fix building kernel under Solaris 11_snv

2007-03-09 Thread Jan Engelhardt
On Mar 9 2007 23:23, Sam Ravnborg wrote: Date: Fri, 9 Mar 2007 23:23:32 +0100 From: Sam Ravnborg [EMAIL PROTECTED] To: Jan Engelhardt [EMAIL PROTECTED], Paulo Marques [EMAIL PROTECTED] Cc: [EMAIL PROTECTED], Christoph Hellwig [EMAIL PROTECTED], Deepak Saxena [EMAIL PROTECTED], Andrew

Re: [patch 1/9] signalfd/timerfd v1 - anonymoush inode source ...

2007-03-09 Thread Jan Engelhardt
On Mar 9 2007 15:39, Davide Libenzi wrote: This patch add an anonymous inode source, to be used for files that need and inode only in order to create a file*. We do not care of having an inode for each file, and we do not even care of having different names in the associated dentries (dentry

Re: [PATCH] Use more gcc extensions in the Linux headers

2007-03-09 Thread Jan Engelhardt
On Mar 10 2007 09:57, Rusty Russell wrote: On Fri, 2007-03-09 at 16:56 +1100, Rusty Russell wrote: __builtin_types_compatible_p() has been around since gcc 2.95, and we don't use it anywhere. This patch quietly fixes that. OK, many people complained that it needed a comment. Good point! ==

Re: Where is Linux 2.6.20.2?

2007-03-10 Thread Jan Engelhardt
On Mar 10 2007 21:52, Tetsuo Handa wrote: Date: Sat, 10 Mar 2007 21:52:23 +0900 From: Tetsuo Handa [EMAIL PROTECTED] To: [EMAIL PROTECTED], linux-kernel@vger.kernel.org Subject: Re: Where is Linux 2.6.20.2? Cong WANG wrote: http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.2.tar.bz2

Re: [PATCH] Use more gcc extensions in the Linux headers

2007-03-10 Thread Jan Engelhardt
On Mar 10 2007 16:19, Nigel Cunningham wrote: On Fri, 2007-03-09 at 23:03 -0500, [EMAIL PROTECTED] wrote: On Sat, 10 Mar 2007 09:57:32 +1100, Rusty Russell said: +/* GCC is awesome. */ #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) \ +

Re: PROBLEM: Make nenuconfig does not save parameters.

2007-03-10 Thread Jan Engelhardt
On Mar 10 2007 19:06, Cyrill Gorcunov wrote: [Vladimir - Sat, Mar 10, 2007 at 04:05:42PM +0300] | Here's the problem: | 1. Unpack the kernel sources, run make menuconfig. | 2. Mark the necessary options. | 3. Pick Save an alternate configuration file, enter a filename (e.g.

Re: PROBLEM: Make nenuconfig does not save parameters.

2007-03-10 Thread Jan Engelhardt
On Mar 10 2007 19:35, Cyrill Gorcunov wrote: [Jan Engelhardt - Sat, Mar 10, 2007 at 05:26:03PM +0100] | On Mar 10 2007 19:06, Cyrill Gorcunov wrote: | [Vladimir - Sat, Mar 10, 2007 at 04:05:42PM +0300] | | Here's the problem: | | 1. Unpack the kernel sources, run make menuconfig. | | 2. Mark

Re: PROBLEM: Make nenuconfig does not save parameters.

2007-03-10 Thread Jan Engelhardt
On Mar 10 2007 19:46, Vladimir wrote: On Mar 10 2007 19:06, Cyrill Gorcunov wrote: [Vladimir - Sat, Mar 10, 2007 at 04:05:42PM +0300] | Here's the problem: | 1. Unpack the kernel sources, run make menuconfig. | 2. Mark the necessary options. | 3. Pick Save an alternate configuration

Re: [PATCH] Use more gcc extensions in the Linux headers

2007-03-10 Thread Jan Engelhardt
On Mar 10 2007 16:18, Andreas Schwab wrote: Jan Engelhardt [EMAIL PROTECTED] writes: So in case they _ARE_ compatible, we get the compile error, as far as I can see it. There's a ! too much in the !!_builtin line. The error case is when the types are compatible. That means

Re: PROBLEM: Make nenuconfig does not save parameters.

2007-03-10 Thread Jan Engelhardt
On Mar 10 2007 20:50, Cyrill Gorcunov wrote: lets see to the following scenario: 1) I've taken a pure Linux kernel (no .config at all) 2) I started menuconfig, made a few changes and saved the file to .config1 as alternate 3) Then I made some additional changes

Re: PROBLEM: Make nenuconfig does not save parameters.

2007-03-10 Thread Jan Engelhardt
On Mar 10 2007 21:50, Cyrill Gorcunov wrote: Actually, I always work with only .config file too... and the reason I wrote you is Vladimir's mail... so either menuconfig does not work as expected or users does not expect a such behaviour of menuconfig. The latter. Though this behavior has been

Re: PROBLEM: Make nenuconfig does not save parameters.

2007-03-10 Thread Jan Engelhardt
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 Alternate' or not, is a menuconfig axiom. Ask Sam Ravnborg if you want it changed :-) Current behaviour

Re: PROBLEM: Make nenuconfig does not save parameters.

2007-03-10 Thread Jan Engelhardt
On Mar 10 2007 23:45, 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 Alternate' or not, is a menuconfig axiom. Ask Sam Ravnborg if you want it changed :-) Current behaviour

Re: IP Defragmentation

2007-03-10 Thread Jan Engelhardt
On Mar 8 2007 11:45, Kanhu Rauta wrote: 1in case of fragmention i am getting only one packet at the hook,While analyzing the ip header it says this is the assembled packet(skb-len=1528,offset=0,MF=0). conntrack assembles defragmented packets. While dumping the data(for 0 to 1528 print

Re: [PATCH] Use more gcc extensions in the Linux headers

2007-03-10 Thread Jan Engelhardt
On Mar 11 2007 13:50, Rusty Russell wrote: On Sat, 2007-03-10 at 02:04 +0100, Jan Engelhardt wrote: Getting back at the macro, how would you like to have it merged? Well, this is what I sent to Linus and Andrew (many thanks to those who made appropriately whimsical *or* useful comments): diff

Re: Style Question

2007-03-11 Thread Jan Engelhardt
On Mar 11 2007 22:15, Cong WANG wrote: I have a question about coding style in linux kernel. In Documention/CodingStyle, it is said that Linux style for comments is the C89 /* ... */ style. Don't use C99-style // ... comments. _But_ I see a lot of '//' style comments in current kernel code.

Re: Style Question

2007-03-11 Thread Jan Engelhardt
On Mar 11 2007 18:01, Kyle Moffett wrote: On Mar 11, 2007, at 16:41:51, Daniel Hazelton wrote: On Sunday 11 March 2007 16:35:50 Jan Engelhardt wrote: On Mar 11 2007 22:15, Cong WANG wrote: So can I say using NULL is better than 0 in kernel? On what basis? Do you even know what NULL

Re: Style Question

2007-03-11 Thread Jan Engelhardt
On Mar 11 2007 21:27, Kyle Moffett wrote: On Mar 11, 2007, at 19:16:59, Jan Engelhardt wrote: On Mar 11 2007 18:01, Kyle Moffett wrote: On the other hand when __cplusplus is defined they define it to the __null builtin, which GCC uses to give type conversion errors for int foo = NULL

Re: Style Question

2007-03-11 Thread Jan Engelhardt
On Mar 12 2007 13:37, Cong WANG wrote: The following code is picked from drivers/kvm/kvm_main.c: static struct kvm_vcpu *vcpu_load(struct kvm *kvm, int vcpu_slot) { struct kvm_vcpu *vcpu = kvm-vcpus[vcpu_slot]; mutex_lock(vcpu-mutex); if (unlikely(!vcpu-vmcs)) {

Re: [PATCH] BUILD_BUG_ON_ZERO - BUILD_BUG_OR_ZERO

2007-03-12 Thread Jan Engelhardt
On Mar 12 2007 08:23, Jan Beulich wrote: I have to admit that I don't see the point here - I can't seem to make any sense of the OR... Jan BUILD_BUG_OR_ZERO will either (a) result in a build bug or (b) the number zero, suitable for arithmetic. Rusty Russell [EMAIL PROTECTED] 12.03.07 00:28

Re: [PATCH 00/18] Make common x86 arch area for i386 and x86_64 - Take 2

2007-03-14 Thread Jan Engelhardt
On Mar 14 2007 01:08, Steven Rostedt wrote: So I spent last night hacking up something to try to make a common ground for all code that is shared between x86_64 and i386. I called this arch/x86 Seems appropriate, but I really don't care what it's called. One thing about this name, is that

Re: [PATCH 00/18] Make common x86 arch area for i386 and x86_64 - Take 2

2007-03-14 Thread Jan Engelhardt
On Mar 14 2007 10:46, Steven Rostedt wrote: symbolic links perhaps? In that case i'd also introduce a common naming scheme: x86_early_printk.c - to make sure we know it right away that those files are bi-arch. Does the Linux code tree already support sym links? IOW, are there already sym

Re: [PATCH 00/18] Make common x86 arch area for i386 and x86_64 - Take 2

2007-03-14 Thread Jan Engelhardt
On Mar 14 2007 21:21, Andi Kleen wrote: also, having the x32_ and x64_ prefix is a painful daily reminder for all of us changing the architecture that 'this stuff needs to be unified!'. We would probably stuck with that forever and it just looks ugly. Non paravirt xen uses such a setup and

Re: [PATCH 00/18] Make common x86 arch area for i386 and x86_64 - Take 2

2007-03-15 Thread Jan Engelhardt
On Mar 15 2007 08:59, Linus Torvalds wrote: On Thu, 15 Mar 2007, Martin Bligh wrote: Can't we move the shared files into a new shared arch/ subdirectory (ia32_64 or whatever), and have them included from both places? That's *exactly* what the patches do (except it's called arch/x86, which

Re: [RFC] A need for yesno-function? (and cleanup of kernel.h) (was: Re: [KJ] [RFC] A need for a yesno-function?)

2007-03-16 Thread Jan Engelhardt
On Mar 16 2007 16:24, Richard Knutsson wrote: char yesno_chr(const bool value) { return ny[value]; } char *yesno_str(const bool value) { return no\0yes[3 * value]; } static/extern const char *const yesno[] = {no, yes}; static inline const char *yesno_str(bool

Re: Linux 2.6.21-rc4

2007-03-16 Thread Jan Engelhardt
On Mar 16 2007 19:55, Michal Piotrowski wrote: I've got *bad* news. Bug described here http: //www.ussg.iu.edu/hypermail/linux/kernel/0703.0/index.html#0889 http: //www.ussg.iu.edu/hypermail/linux/kernel/0703.0/index.html#1165 probably leaked into mainline. Fsck! fsck indeed. I

Re: Linux 2.6.21-rc4

2007-03-16 Thread Jan Engelhardt
On Mar 16 2007 17:13, Chris Friesen wrote: This would seem to be a bug in the build system then. Or are you supposed to make clean after every config change? No. When .config is changed, include/linux/config/ is updated, which causes things that depends on it one or the other way to rebuild.

Re: [RFC, PATCH] Fixup COMPAT_VDSO to work with CONFIG_PARAVIRT

2007-03-16 Thread Jan Engelhardt
On Mar 15 2007 20:03, Zachary Amsden wrote: Well testing that is not so fun. I installed SUSE Pro 9.0, and strings on ld.so contains the magic at_sysinfo assert! But it doesn't install TLS libraries, so I'll have to install them by hand. 9.0 is kinda old. And if you want some TLS libs,

Re: Documenting MS_RELATIME

2007-02-12 Thread Jan Engelhardt
Hi, On Feb 12 2007 10:40, Dave Jones wrote: Whilst on the subject of RELATIME, is there any good reason why not to make this a default mount option ? Ubuntu has been shipping with noatime as the default for some time now, with no obvious problems (I'm running Ubuntu). I see relatime

Re: [RFC PATCH] add filesystem subtype support

2007-02-12 Thread Jan Engelhardt
Hi, On Feb 12 2007 12:50, Miklos Szeredi wrote: Index: linux/fs/filesystems.c === --- linux.orig/fs/filesystems.c2007-02-12 12:42:55.0 +0100 +++ linux/fs/filesystems.c 2007-02-12 12:43:00.0 +0100 @@ -42,11

Re: ARP hidden patch vs. arp ignore/announce

2007-02-13 Thread Jan Engelhardt
On Feb 13 2007 09:52, Arjan van de Ven wrote: If there is currently no way to provide this functionality using arp_ignore/arp_annonce/arp_filter or their friends, why is this still a patch And is not integrated into the mainline kernel? eh? if you keep reading the doc it'll explain that

Re: [ANNOUNCE] DualFS: File System with Meta-data and Data Separation

2007-02-14 Thread Jan Engelhardt
On Feb 14 2007 16:10, sfaibish wrote: 1. DualFS has only one copy of every meta-data block. This copy is in the meta-data device, Where does this differ from typical filesystems like xfs? At least ext3 and xfs have an option to store the log/journal on another device too. The DualFS code,

Re: Linus' laptop and Num lock status

2007-02-14 Thread Jan Engelhardt
Hi, On Feb 14 2007 14:34, Dax Kelson wrote: I checked, and looking at offset 0x497 seems to work fine on a couple of systems with USB keyboards. Probably just because legacy mode was enabled. Plus I wonder what 0x497 will return when there is actually more than one USB keyboard connected at

Re: GPL vs non-GPL device drivers

2007-02-15 Thread Jan Engelhardt
On Feb 15 2007 18:43, Neil Brown wrote: We seem to have different definitions of open and closed. Open = 3rd party Linux drivers can be loaded. Closed = No third party Linux drivers can be loaded. Loading a driver is not at issue. Anyone may load a driver. And, after all, because

Re: GPL vs non-GPL device drivers

2007-02-15 Thread Jan Engelhardt
Hi, On Feb 15 2007 21:35, Trent Waddington wrote: I, personally, don't know why anyone who owned copyright on any GPL software and had no desire to enforce that copyright, would not offer to assign their copyright to the FSF so they can defend it.. but I imagine people have their reasons.

Re: [ANNOUNCE] DualFS: File System with Meta-data and Data Separation

2007-02-15 Thread Jan Engelhardt
On Feb 15 2007 21:38, Andi Kleen wrote: Also I would expect your design to be slow for metadata read intensive workloads. E.g. have you tried to boot a root partition with dual fs? That's a very important IO benchmark for desktop Linux systems. Did someone say metadata intensive? Try kernel

Re: [PATCH] Fix d_path for lazy unmounts

2007-02-15 Thread Jan Engelhardt
Hi, On Feb 14 2007 14:57, Andreas Gruenbacher wrote: [2] pipe: pipe:[439336] (or pipe/[439336]) [3] Always make disconnected paths double-slashed: -- pipe: //pipe/[439336] lazily

Re: GPL vs non-GPL device drivers

2007-02-16 Thread Jan Engelhardt
On Feb 16 2007 10:44, Jon K Hellan wrote: Xavier Bestel wrote: On Thu, 2007-02-15 at 21:48 -0800, v j wrote: We only get crap because no one here yet knows how to interpret proprietary modules loaded into the kernel. The proprietary modules where only a tiny wrapper is linux-specific and

securityfs_create_dir strange comment

2007-02-18 Thread Jan Engelhardt
Hello list, in security/inode.c, the comment for securityfs_create_dir() reads: If securityfs is not enabled in the kernel, the value -ENODEV will be returned. It is not wise to check for this value, but rather, check for NULL or !NULL instead as to eliminate the need

Re: forced umount?

2007-03-18 Thread Jan Engelhardt
On Mar 18 2007 14:13, Matthew Wilcox wrote: Equally, if one has one's ogg collection stored on said NFS server, the ogg player will be in uninterruptible sleep while holding the sound device open, preventing other applications from making sounds. Only if you have - a card with no hardware

Re: axp question 'bout uname voodoo

2007-03-20 Thread Jan Engelhardt
On Mar 20 2007 09:17, Oliver Falk wrote: But on i386 it reports: [EMAIL PROTECTED] ~]$ uname -mpi i686 i686 i386 Reports this for me: $ uname -mpi i686 athlon i386 And I remember that it used to report alphaev67 or alphaev56... Jan -- - To unsubscribe from this list: send the line

Re: [PATCH RESEND 1/1] crypto API: RSA algorithm patch (kernel version 2.6.20.1)

2007-03-20 Thread Jan Engelhardt
On Mar 20 2007 10:15, Matt Mackall wrote: On Tue, Mar 20, 2007 at 04:44:01PM +0200, Tasos Parisinos wrote: +/* Pre-allocate some auxilliary mpis */ +rsa_echo(Preallocating %lu bytes for auxilliary operands\n, + RSA_AUX_SIZE * RSA_AUX_COUNT * sizeof(_u32)); And printk. i

Re: UDP packets scheduling

2007-03-20 Thread Jan Engelhardt
On Mar 20 2007 09:31, Stephen Hemminger wrote: can anyone suggest me a proper way how to schedule UDP packets to transmit at some given rate? E.g., I have two boxes both having 10 GE interfaces. One box is able to transmit at 9.9Gbps, the other one is able to receive only at about

Re: kconfig `bool' (was: Re: [PATCH 13/13] fix ps3fb glue allowing a modular build)

2007-03-20 Thread Jan Engelhardt
On Mar 20 2007 22:06, Geert Uytterhoeven wrote: Maybe not bool vs mbool, but it might be nice to have bool FB_PS3 depends strictly on FB ie a depends strictly refuses to upgrade a bool dependency from m to y, while a regular depends allows it. Or something.. The

Re: [RFC] : Is /proc/kcore still usefull and/or maintained ?

2007-03-21 Thread Jan Engelhardt
On Mar 21 2007 23:58, Eric Dumazet wrote: Hi all On i386 , 2.6.20 / 2.6.21-rc4 : # gdb vmlinux /proc/kcore error # file /proc/kcore error 00:11 ichi:/hld # file /proc/kcore /proc/kcore: ELF 32-bit LSB core file Intel 80386, version 1 (SYSV), SVR4-style, from 'vmlinux' 00:11 ichi:/hld #

Re: sysfs q [was: sysfs ugly timer interface]

2007-03-22 Thread Jan Engelhardt
On Mar 22 2007 08:28, Greg KH wrote: [EMAIL PROTECTED]:/home/maxim# cat /sys/devices/system/clockevents/clockevents0/registered lapicF:0007 M:3(periodic) C: 1 hpet F:0003 M:1(shutdown) C: 0 lapicF:0007 M:3(periodic) C: 0 [EMAIL

Re: max_loop limit

2007-03-22 Thread Jan Engelhardt
On Mar 22 2007 14:42, Eric Dumazet wrote: Instead of using : static struct loop_device *loop_dev; loop_dev = kmalloc(max_loop * sizeof(struct loop_device)); Switch to : static struct loop_device **loop_dev; loop_dev = kmalloc(max_loop * sizeof(void *)); if (!loop_dev) rollback... for (i = 0 ;

Re: kmalloc() with size zero

2007-03-22 Thread Jan Engelhardt
On Mar 22 2007 16:18, Stephane Eranian wrote: Hello, I ran into an issue with perfmon where I ended up calling kmalloc() with a size of zero. To my surprise, this did not return NULL but a valid data address. I am wondering if this is a property of kmalloc() or simply a bug. It is the case

Re: sysfs q [was: sysfs ugly timer interface]

2007-03-22 Thread Jan Engelhardt
On Mar 22 2007 21:48, Greg KH wrote: On Fri, Mar 23, 2007 at 02:24:46AM +0100, Jan Engelhardt wrote: On Mar 22 2007 08:28, Greg KH wrote: Question regarding sysfs files: How would you do something like /proc/net/nf_conntrack with sysfs? Have directories named like , 0001, 0002, ..? I

2.6.21-rc regression in mptbase

2007-03-23 Thread Jan Engelhardt
Hello world, in at least 2.6.21-rc4, one or more of the mptscsi scsi modules is broken with respect to not detecting any harddisk (VMware provides that virtual LSI MPT controller), which means no working system. No problems in 2.6.20.2. I will be trying 2.6.21-rc1 shortly. 2.6.20.2: 6PIIX4:

[PATCH] max_loop limit

2007-03-23 Thread Jan Engelhardt
regression elsewhere is hindering me in finding out faster. Signed-off-by: Jan Engelhardt [EMAIL PROTECTED] Index: linux-2.6.21-rc4/drivers/block/loop.c === --- linux-2.6.21-rc4.orig/drivers/block/loop.c +++ linux-2.6.21-rc4/drivers

Re: [patch 1/2] hugetlb: add resv argument to hugetlb_file_setup

2007-03-23 Thread Jan Engelhardt
On Mar 23 2007 15:53, Ken Chen wrote: diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index 8c718a3..981886f 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c @@ -734,7 +734,7 @@ static int can_do_hugetlb_shm(void) can_do_mlock()); } -struct

Re: 2.6.21-rc regression in mptbase

2007-03-23 Thread Jan Engelhardt
On Mar 23 2007 19:06, Chuck Ebbert wrote: Jan Engelhardt wrote: Hello world, in at least 2.6.21-rc4, one or more of the mptscsi scsi modules is broken with respect to not detecting any harddisk (VMware provides that virtual LSI MPT controller), which means no working system

Fan control disabled

2007-03-24 Thread Jan Engelhardt
Hello, for some reason, pwm (fan control) is not writable 11:30 linux-si2r:../i2c-1/1-002e # l pwm*_enable -r--r--r-- 1 root root 4096 Mar 24 11:19 pwm1_enable -r--r--r-- 1 root root 4096 Mar 24 11:19 pwm2_enable -r--r--r-- 1 root root 4096 Mar 24 11:19 pwm3_enable 11:30

Re: [2.6.22 patch] more scheduled OSS driver removal

2007-03-26 Thread Jan Engelhardt
On Mar 26 2007 00:16, Lee Revell wrote: I guess he's referring to the well known Master volume only controls front output problem. This really does need to be resolved, as many other ALSA drivers are effected. I don't see that as a bug. Mine is a TerraTec DMX XFire 1024 (snd-cs46xx).

Re: [PATCH 25/90] ARM: OMAP: h4 must have blinky leds!!

2007-04-05 Thread Jan Engelhardt
On Apr 5 2007 11:19, David Brownell wrote: On Wednesday 04 April 2007 9:18 pm, Randy Dunlap wrote: I don't think it's a MUA thing. I think David is talking about the spaces after the ^\t that are used for indenting immediately under the if. Exactly. 1 if (There was a young lady named

Re: IRQ splitting

2007-04-05 Thread Jan Engelhardt
Hello Stephen, On Apr 5 2007 12:23, Stephen Hemminger wrote: If the radeon and/or the Ethernet driver support MSI, that would split out the IRQ's as well. Would Linux do that automatically? How to find out whether a given device -- or device driver? -- supports MSI? Thanks, Jan -- - To

Re: restoring x86 BIOS state before reboot

2007-04-06 Thread Jan Engelhardt
On Apr 6 2007 11:46, Bart Trojanowski wrote: Hi all, I am looking at a two stage boot where linux is loaded to do some system initialization before booting to Windows, which needs BIOS. I am interested in bypassing the BIOS on the second boot. I wanted to know if anyone has attempted to

Re: [PATCH] FUTEX : new PRIVATE futexes

2007-04-06 Thread Jan Engelhardt
On Apr 6 2007 07:05, Hugh Dickins wrote: On Fri, 6 Apr 2007, Nick Piggin wrote: I like |= for adding flags, it seems less ambiguous. But I guess that's a matter of opinion. Hugh seems to like +=, Do I? You probably have a shaming example in mind (PAGE_MAPPING_ANON? that's a hybrid case

Re: coding style for long conditions (WAS: Re: [PATCH 25/90] ... blinky leds!!)

2007-04-06 Thread Jan Engelhardt
On Apr 6 2007 10:29, David Brownell wrote: Using /^\t+\x20{2,8}/ on continuation line(s) is perfect because it does not cause either the continuation line(s) or the inner block code to move too much to the right. No, that's a clear violation of CodingStyle on two separate points: (a) the

Re: [PATCH] kernel-doc: handle spaces in array size

2007-04-06 Thread Jan Engelhardt
On Apr 6 2007 11:47, Randy Dunlap wrote: Unfortunately, kernel-doc has problems with a struct field like this: uint8_t databuf[NAND_MAX_PAGESIZE + NAND_MAX_OOBSIZE]; simply due to the spaces around the + sign, so drop all spaces inside [...] so that parsing is done correctly (in some

Re: coding style for long conditions (WAS: Re: [PATCH 25/90] ... blinky leds!!)

2007-04-06 Thread Jan Engelhardt
On Apr 6 2007 14:05, David Brownell wrote: Please change your coding style to conform to Documentation/CodingStyle. *** Only indent with tabs!! *** Every one of those examples violates that simple rule. Why does *anyone* have even the slightest difficulty understanding such

Re: coding style for long conditions (WAS: Re: [PATCH 25/90] ... blinky leds!!)

2007-04-06 Thread Jan Engelhardt
Hello David, On Apr 6 2007 13:57, David Brownell wrote: though I do not speak for them, seem to do it much the way I described, judging from the code they wrote/write. Your eyes are broken then ... Sorry? I could have simply told you to look into kernel/signal.c LINE 220 (that's in the

Re: coding style for long conditions

2007-04-06 Thread Jan Engelhardt
On Apr 6 2007 15:05, David Brownell wrote: but... egads! Linus put spaces before the s to line them up nicely! more in the breach and all that I guess... Yeah, nobody likes style nazis. On the other hand, it's rather unusual to be the target of style nazism for actually following the

Re: [PATCH] kernel-doc: handle spaces in array size

2007-04-06 Thread Jan Engelhardt
On Apr 6 2007 16:03, Randy Dunlap wrote: On Fri, 6 Apr 2007 21:24:48 +0200 (MEST) Jan Engelhardt wrote: On Apr 6 2007 11:47, Randy Dunlap wrote: Unfortunately, kernel-doc has problems with a struct field like this: uint8_t databuf[NAND_MAX_PAGESIZE + NAND_MAX_OOBSIZE]; simply due

Re: coding style for long conditions (WAS: Re: [PATCH 25/90] ... blinky leds!!)

2007-04-06 Thread Jan Engelhardt
On Apr 6 2007 15:40, David Brownell wrote: if (...) { THAT WAS ONE MORE TAB } Come on, stop wasting everyone's time with utter nonsense. I was never debating these two things. Actually, you did. If it was perceived I did, then I owe you an apology. Go back and see

Re: [patch 0/8] unprivileged mount syscall

2007-04-06 Thread Jan Engelhardt
On Apr 6 2007 16:16, H. Peter Anvin wrote: - users can use bind mounts without having to pre-configure them in /etc/fstab This is by far the biggest concern I see. I think the security implication of allowing anyone to do bind mounts are poorly understood. $ whoami miklos $ mount

Re: [PATCH] console UTF-8 fixes

2007-04-07 Thread Jan Engelhardt
Hi, I just wanted to give my opinion on things... (and enable utf8 to read this properly) On Apr 7 2007 11:24, Egmont Koblinger wrote: I strongly disagree. First of all, you're changing the semantics of a 13-year-old API. The semantics of the Linux console is that by specifying U+FFFD

Re: Two questions regarding Opening files within Kernel!

2007-04-07 Thread Jan Engelhardt
On Apr 7 2007 06:58, JanuGerman wrote: Hi Every one, I have got two questions regarding opening files within the Linux kernel. If some body can help me, in sorting out this problem, i will be very thankful. 1) I have just a file path with me, an absolute path, but no dentry, no

Re: Two questions regarding Opening files within Kernel!

2007-04-07 Thread Jan Engelhardt
On Apr 7 2007 16:57, JanuGerman wrote: Thanks Jan for the response. struct dentry *fbar = lookup_one_len(/foo/bar, current-fs-root); But that gives me a dentry, where as file object is still not reachable. So use filp_open. Question: I am currently using a function called

Re: If not readdir() then what?

2007-04-07 Thread Jan Engelhardt
On Apr 7 2007 16:36, Theodore Tso wrote: So how do we solve this problem? I can think of two solutions: 1) Deprecate telldir/seekdir() altogether. Relatively few progams use this functionality, and it is highly questionable how useful it is, anyway. If you use telldir/seekdir and keep the

Re: Add a norecovery option to ext3/4?

2007-04-09 Thread Jan Engelhardt
On Apr 8 2007 22:24, Eric Sandeen wrote: Samuel Thibault wrote: Can you elaborate? Under what circumstances is log replay going to harm data? Do you mean that the installer mounts partitions, looking for what OS is installed? How is that harmful? Hm, so the root cause there seems that

Re: Troll Of The Year

2007-04-09 Thread Jan Engelhardt
On Apr 9 2007 12:55, Ronni Nielsen wrote: [EMAIL PROTECTED] wrote: [snip arguments FUBAR] oscar And the award as Troll Of The Year goes to: johnrobertbanks. /oscar The year is not even over and you already picked your favorite - who bribed you? :-) Jan -- - To unsubscribe from this

Re: If not readdir() then what?

2007-04-09 Thread Jan Engelhardt
On Apr 9 2007 10:03, Trond Myklebust wrote: In practice, though, this sort of behaviour has to be managed carefully by the server. Forcing a client to re-read the entire contents of the directory doesn't really scale too well... What does the spec (readdir, and NFS READDIR) say about duplicate

Re: I give up

2007-04-09 Thread Jan Engelhardt
On Apr 9 2007 11:37, Gene Heskett wrote: On Monday 09 April 2007, Jeff Garzik wrote: Gene Heskett wrote: No; device mapper is the kernel portion of LVM2. Jeff, who actively avoids LVM on home computers Ya shoulda warned me. :-) It should have lots bigger warning labels, in bright red

Re: [GIT PULL -mm] Unionfs branch management code

2007-04-09 Thread Jan Engelhardt
On Apr 9 2007 10:53, Josef 'Jeff' Sipek wrote: The following patches introduce new branch-management code into Unionfs as well as fix a number of stability issues and resource leaks. For detailed announcement, see end of this email. I have to seriously ask: why don't we consider aufs? Without

Re: I give up

2007-04-09 Thread Jan Engelhardt
On Apr 9 2007 15:38, Gene Heskett wrote: On Monday 09 April 2007, H. Peter Anvin wrote: Jan Engelhardt wrote: dm is on 254 for me.. in opensuse with a 2.6.20 that is. I wonder why it even moves around. However, even then, those who use udev and device names rather than (major,minor) tuples

Re: [PATCH 2/2] NET: Multiqueue network device support implementation.

2007-04-09 Thread Jan Engelhardt
Hi, On Apr 9 2007 14:28, Peter P Waskiewicz Jr wrote: @@ -3345,6 +3358,7 @@ void free_netdev(struct net_device *dev) { #ifdef CONFIG_SYSFS /* Compatibility with error handling in drivers */ + kfree((char *)dev-egress_subqueue); if (dev-reg_state == NETREG_UNINITIALIZED) {

Re: [RFC, PATCH 1/3] introduce SYS_CLONE_MASK

2007-04-10 Thread Jan Engelhardt
On Apr 8 2007 20:57, Oleg Nesterov wrote: Anyway, re-parenting to swapper breaks pstree, it doesn't show kernel threads. And if -parent == /sbin/init, we can't remove us from -children (unless we forbid sub-thread-of-init exec). So the only safe change is set -exit_state = -1. Then we have to

  1   2   3   4   5   6   7   8   9   10   >