Re: HID device calibration - how to override mapping?

2012-08-08 Thread Tigran
clutch = joyInfo->ax[cmd[CMD_CLUTCH].val]; // dirty stuff, sorry if (clutch <= 0) clutch = -clutch; else clutch = 2.0 - clutch; clutch /= 2.0; car->_clutchCmd = fa

Re: PCI bookkeeping

2000-10-21 Thread tigran
rnel data structures rather than peek directly into PCI config space. Which driver (in 2.4) do you manipulating irq values from config space? Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

Re: about /proc/meminfo and mmap

2000-10-21 Thread tigran
ot is nr_free_pages() whilst the one shown in /proc/meminfo is totalram_pages -- they are different. Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

lost charaters -- this is becoming annoying!

2001-02-13 Thread Tigran Aivazian
k fine previously -- like in the days of 2.3.99 and 2.4.0-teX series (yes, teX was meant to be "testX"!) So, the keyboard or pty driver is badly broken. Regards, Tigran PS. This only happens on this Dell latitude CPx (notice lost shift in Latitude?) H450GT. PPS. No, my laptop is fine -

Re: lost charaters -- this is becoming annoying!

2001-02-13 Thread Tigran Aivazian
On Tue, 13 Feb 2001, Tigran Aivazian wrote: > > PPS. No, my laptop is fine -- rebootingnto 2.2.x makes it type without > loosing characters... > just to clarify -- it does _not_ add characters -- the "loosing" vs "losing" thing is my own frequent typo :) Ti

Re: lost charaters -- this is becoming annoying!

2001-02-13 Thread Tigran Aivazian
.4 handle keyboard error cases quite differently (less so as of 2.2.18) > When you say 2.2.x works does that include 2.2.18. no, I meant the plain 2.2.x as of Red Hat 7.0 which is labelled as "2.2.16-22". > > The next stage then is probably to log when you see errored keyboard byte

Re: lost charaters -- this is becoming annoying!

2001-02-13 Thread Tigran Aivazian
d, nor APM in the kernel. Regards, Tigran On Tue, 13 Feb 2001, Andrew Morton wrote: > Hi, Tigran. > > Internal keyboard, or external? > > Does it happen on the console or just in X? (How come you can't > tell whether it's the k/b driver or the PTY driver?) > >

Re: lost charaters -- this is becoming annoying!

2001-02-13 Thread Tigran Aivazian
s email about was -- I get the same effect licq (just lost "in" before licq!) so it is not xterm-specific but probably that is not importt anymore (just lost "an" in "important").. (lost a . in "..." :) Tgran (unbelievable -- it doesn't even let me spell

Re: lost charaters -- this is becoming annoying!

2001-02-13 Thread Tigran Aivazian
suspicious. Regards, Tigran On Tue, 13 Feb 2001, Alan Cox wrote: > > > When you say 2.2.x works does that include 2.2.18. > > > > no, I meant the plain 2.2.x as of Red Hat 7.0 which is labelled as > > "2.2.16-22". > > Can you try 2.2.18/2.2.19pre. T

Re: lost charaters -- this is becoming annoying!

2001-02-13 Thread Tigran Aivazian
counting to ten lately? > yes, my fingers are okay -- I frequently check the mapping between the items in Exodus 20 and the fingers to make sure I still have the right number (of both). Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the b

Re: How to install Alan's patches?

2001-02-13 Thread Tigran Aivazian
uot;) and create a pipe, just use shell input redirection facility "<". Regards, Tigran On Tue, 13 Feb 2001, Thomas Foerster wrote: > Hi folks, > > sorry for the silly question, but i can't get it to work : > > I have linux-2.4.1 unpacked, configured and install

[patch-2.4.1-ac10] unsetting TASK_RUNNING

2001-02-13 Thread Tigran Aivazian
een some people setting this TASK_RUNNING incorrectly, based on a mere observation that "official Linux kernel code does so" -- so the patch below is not just an optimization but serves for education (i.e. to stop people copying unnecessary code). Regards, Tigran PS. Btw, I still haven&#x

Re: [patch-2.4.1-ac10] unsetting TASK_RUNNING

2001-02-14 Thread Tigran Aivazian
e to find bugs in them and _mandate_ that I accept the fixes (if they are correct) -- I have no right to neglect them. Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: mke2fs and kernel VM issues

2001-02-16 Thread Tigran Aivazian
ry big) ext2 filesystem with 0 processes killed. The kernel I use is 2.4.2-pre3. The machine has 6G RAM with the 3G given to kernel virtual. The amount of swap is massive (2G) but it is never used. Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel&

RE: 128MB lost... where ?

2001-02-21 Thread Tigran Aivazian
e like David Parsons will probably be interested in your configuration... Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read

Re: 128MB lost... where ?

2001-02-21 Thread Tigran Aivazian
On Wed, 21 Feb 2001, Tigran Aivazian wrote: > On Wed, 21 Feb 2001, Giuliano Pochini wrote: > > > > > Perhaps this is a faq... > > I have a dual-800 (mb asus, no AGP) with 1GB ram, > > but according to /proc/meminfo tells I only have > > 90KB. I tri

Re: Detecting SMP

2001-02-21 Thread Tigran Aivazian
On Wed, 21 Feb 2001, Jeff Garzik wrote: > On Wed, 21 Feb 2001, Tigran Aivazian wrote: > > yes, just run the famous mptable program. If the machine is SMP then it > > will have a valid Intel MP 1.4 configuration tables so the program will > > show meaningful output. >

Re: Detecting SMP

2001-02-21 Thread Tigran Aivazian
On Wed, 21 Feb 2001, Tigran Aivazian wrote: > yes, just run the famous mptable program. before I am snowed under with questions about where to get this program, here is the src and binaries that I use -- it is quite possible that there is a newer version (I suspect Ingo Molnar might know bet

Re: Detecting SMP

2001-02-21 Thread Tigran Aivazian
yes, just run the famous mptable program. If the machine is SMP then it will have a valid Intel MP 1.4 configuration tables so the program will show meaningful output. Regards, Tigran On Tue, 20 Feb 2001, Burton Windle wrote: > Hello. Is there a way, when running a non-SMP kernel, to detect

Re: 128MB lost... where ?

2001-02-21 Thread Tigran Aivazian
back ? > when you compile your 2.4.x kernel make sure you set the "4G of RAM" option, i.e. CONFIG_HIGHMEM4G. If you chose "up to 1G" then it means "up to 986M" (or something like that) -- the number in Help is just rounded up to confuse the dummy user :) Re

Re: awe_ram.c

2001-02-26 Thread Tigran Aivazian
play with this and see if it detects my ISA-PNP SB AWE64 card. Give the above patch a try and see if you figure out the values to plug in there sooner than I do. Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [E

[patch-2.4.2] bugfix -- ENXIO for read/write beyond end of raw device

2001-02-27 Thread Tigran Aivazian
- why not consider it sooner rather than later? Regards, Tigran diff -urN -X dontdiff linux/drivers/char/raw.c vmfs/drivers/char/raw.c --- linux/drivers/char/raw.cMon Oct 2 04:35:15 2000 +++ vmfs/drivers/char/raw.c Thu Feb 22 07:21:26 2001 @@ -277,8 +277,11 @@ if ((

Re: What is 2.4 Linux networking performance like compared to BSD?

2001-03-01 Thread Tigran Aivazian
use it is illegal (without going through proper steps of publishing them), I shouldn't even be saying that they show Linux to be much faster :) Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECT

Re: Hashing and directories

2001-03-01 Thread Tigran Aivazian
ted to without breaking any userland. Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: Linux 2.4.2ac7

2001-03-01 Thread Tigran Aivazian
On Thu, 1 Mar 2001, José Luis Domingo López wrote: > Linux 2.4.2-ac7 reports wrong CPU speed and model name for a Pentium III > correctly detected on, at least, 2.2.18, 2.4.2 and 2.4.2-ac4. The > processor is a 600 MHz one, with a 133 MHz front bus. same here with PIII550MHz/100MHz bus. Actually,

Re: 2.4.2ac8 lost char devices

2001-03-02 Thread Tigran Aivazian
o with misc device registration as I lost not just psaux but microcode device (which happens to be misc as well) Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kern

Re: Linux 2.4.2ac8

2001-03-02 Thread Tigran Aivazian
ot gpm generates an "oops" from gpm.c(968) saying "/dev/mouse: No such device" So, ac8 has two problems for me: 1. /proc/cpuinfo shows wrong info about bus (claims to be overclocked) -- I will get back to you with the info you requested shortly 2. misc device registration is broke

[patch-2.4.2-ac8] misc_register() fix (was Re: Linux 2.4.2ac8

2001-03-02 Thread Tigran Aivazian
On Fri, 2 Mar 2001, Tigran Aivazian wrote: > On Thu, 1 Mar 2001, Alan Cox wrote: > > 2.4.2-ac8 > > o Stop two people claiming the same misc dev id (Philipp Rumpf) > > is this what has broken misc devi registration on my machine? I have two > misc devices -- microcode

Re: [patch] ps2fix-2.4.2-A0

2001-03-02 Thread Tigran Aivazian
On Fri, 2 Mar 2001, Ingo Molnar wrote: > > + if (c == &misc_list) { > > > > This should be (c != &misc_list) > oops, I didn't notice -- ignore the patch I sent a minute ago :) Regards, Tigran - To unsubscribe from this list: send the line "uns

cpu/bus speed detection (was Re: Linux 2.4.2ac7

2001-03-02 Thread Tigran Aivazian
(KERN_ERR "lo=%x hi=%x\n", lo, hi); produces the output: # dmesg | grep lo= lo=c5100800 hi=0 lo=c5100800 hi=0 lo=c5000800 hi=0 Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo in

Re: Linux 2.4.2ac7

2001-03-02 Thread Tigran Aivazian
quot; in the code) then they should remain constant when one is overclocking, right? As for my question on the evenness of the calls to identify_cpu() -- ignore it, it was obvious, of course (called from check_bugs() on boot_cpu_data and then on SMP on each cpu_data + id) Regards, Tigran - To

Re: Linux 2.4.2ac7

2001-03-02 Thread Tigran Aivazian
l stop here/now but I will definitely come back to this interesting problem in 24 hours. But if anyone fixes it before then, I won't cry :) Of course, before sending anything I will make sure my patch works on _all_ my machines without any exceptions. Regards, Tigran - To unsubscrib

Re: Confirmation request about new 2.4.x. kernel limits

2001-01-04 Thread Tigran Aivazian
Ware 7.1.1+ -- this would be a very useful exercise as I vaguely remember some people claiming that Linux PAE implementation is not ideal (if it is true then it ought to be made ideal to be inline with the rest of the kernel). Regards, Tigran - To unsubscribe from this list: send the line "u

Re: 2.4.0 bug: file /proc/dri 4 times in ls listing

2001-01-16 Thread Tigran Aivazian
ixing this requires either a new filesystem type (drifs) or (simpler!) redesigning dri to separate common things into a separate dri_core thing shared amongst them. Regards, Tigran On Tue, 16 Jan 2001, Bobo Rajec wrote: > > Hi, > > I'm running kernel 2.4.0 on Redhat 7.0. I trie

Re: 2.4.0 bug: file /proc/dri 4 times in ls listing

2001-01-16 Thread Tigran Aivazian
On Tue, 16 Jan 2001, Tigran Aivazian wrote: > Fixing this requires either a new filesystem type (drifs) or > (simpler!) redesigning dri to separate common things into a separate > dri_core thing shared amongst them. just for completeness -- there is the 3rd option -- one could just fix

2.4.1-pre8/10 klogd taking 100% of CPU time -- bug?

2001-01-23 Thread Tigran Aivazian
nd not on the desktop. It only happens _after_ some activity but I have not yet managed to narrow down exactly what activity. Regards, Tigran PS. No, I don't use power management or anything fancy/unproven like that -- laptop is just a small/portable desktop, imho. - To unsubscribe from this lis

Re: 2.4.1-pre8/10 klogd taking 100% of CPU time -- bug?

2001-01-23 Thread Tigran Aivazian
On 23 Jan 2001, Chmouel Boudjnah wrote: > Tigran Aivazian <[EMAIL PROTECTED]> writes: > > > Btw, this only happens on my laptop and not on the desktop. It only > > happens _after_ some activity but I have not yet managed to narrow down > > exactly what activity. &

test11-pre5 breaks vmware

2000-11-14 Thread Tigran Aivazian
worthy of propagating into your latest .tar.gz file for 2.4.x Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

[patch] fixes for kdb on 2.4.0-test11-pre5

2000-11-15 Thread Tigran Aivazian
Hi Keith, Here is some fixes related to x86 capabilities changes in test11-pre5. Against your latest patch (test11-pre5) from oss.sgi. Tested under test11-pre5 on SMP. Regards, Tigran --- arch/i386/kernel/traps.c.0 Wed Nov 15 11:20:34 2000 +++ arch/i386/kernel/traps.cWed Nov 15 11:28:20

test11-pre5 _completely_ broken?

2000-11-15 Thread Tigran Aivazian
m (of course vim starts fast as it should). Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

Re: [patch] fixes for kdb on 2.4.0-test11-pre5

2000-11-15 Thread Tigran Aivazian
On Wed, 15 Nov 2000, Tigran Aivazian wrote: > Hi Keith, > > Here is some fixes related to x86 capabilities changes in test11-pre5. > Against your latest patch (test11-pre5) from oss.sgi. Tested under > test11-pre5 on SMP. > small (but important!) typo fixed, thanks to George

Re: [patch] fixes for kdb on 2.4.0-test11-pre5

2000-11-15 Thread Tigran Aivazian
On Wed, 15 Nov 2000, Tigran Aivazian wrote: > On Wed, 15 Nov 2000, Tigran Aivazian wrote: > > > Hi Keith, > > > > Here is some fixes related to x86 capabilities changes in test11-pre5. > > Against your latest patch (test11-pre5) from oss.sgi. Teste

Re: Microcode ....

2000-11-15 Thread Tigran Aivazian
do is to always apply the latest, available on: http://www.urbanmyth.org/microcode/ Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

Re: Newbie

2000-11-15 Thread Tigran Aivazian
c/linux/Documentation/kernel-docs.txt Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] get_empty_inode() cleanup

2000-11-16 Thread Tigran Aivazian
tion, it is cleaner to just add the 'sb' argument to get_empty_inode() and those who do not wish to pass it should just pass NULL. Checking if(sb) inside it is easier than making yet another function call, maybe. Regards, Tigran - To unsubscribe from this list: send the line &qu

Re: [PATCH] get_empty_inode() cleanup

2000-11-16 Thread Tigran Aivazian
On Thu, 16 Nov 2000, Tigran Aivazian wrote: > On Thu, 16 Nov 2000, Alexander Viro wrote: > > > Almost all (== all filesystem and then some) callers of > > get_empty_inode() follow it with > > inode->i_sb = some_sb; > > inode->i_dev = some_sb->

Re: [PATCH] get_empty_inode() cleanup

2000-11-16 Thread Tigran Aivazian
his patch -- namely new_inode would need to be exported). Regards, Tigran On Thu, 16 Nov 2000, Tigran Aivazian wrote: > On Thu, 16 Nov 2000, Tigran Aivazian wrote: > > > On Thu, 16 Nov 2000, Alexander Viro wrote: > > > > > Almost all (== all filesystem and then some) c

Re: RFC: "SubmittingPatches" text

2000-11-16 Thread Tigran Aivazian
d exclude list and info Alan Cox is very concise. I shall interpret :) He refers to the dontdiff file I currently maintain on: http://www.moses.uklinux.net/patches/dontdiff and the command line to make the patch would become: diff -urN -X dontdiif linux $MYSRC > /tmp/mysrc.patch Regards, Ti

[patch] hotplug fixes Re: test11-pre6

2000-11-17 Thread Tigran Aivazian
On Thu, 16 Nov 2000, Linus Torvalds wrote: > > The log-file says it all.. > > Linus No, I am sorry but it does not mention hotplug things in net/core/dev.c and they are broken. The fix below. Regards, Tigran diff -urN -X dontdiff linux/init/main.c work/init/main

Re: Error in x86 CPU capabilities starting with test5/6

2000-11-17 Thread Tigran Aivazian
nux is very stable wrt to application interfaces (I compare Linux with Linux and not Linux with "non-Linux", cf 1Cor 2:13) so one can safely rely on the exported data formats to stay always the same (to a reasonable extent). Regards, Tigran - To unsubscribe from this list: send the line &q

Re: Error in x86 CPU capabilities starting with test5/6

2000-11-17 Thread Tigran Aivazian
On Fri, 17 Nov 2000, Andi Kleen wrote: > [of course rdtsc only works properly on UP or with bind_cpu()] I thought Linux kernel does synchronize them on boot? So, you are saying I cannot rely on this being 100% correct? Regards, Tigran - To unsubscribe from this list: send the line "uns

Re: BUG with no HOTPLUG set.

2000-11-17 Thread Tigran Aivazian
net] Error 2 > > It looks like /net/core/dev.c should add functions like run_sbin_hotplug > only if CONFIG_HOTPLUG is set. no, not just there but also in init/main.c the patch below has been posted here ages ago and a similar one even earlier (so I was told, I didn't check). R

test11-pre6 still very broken

2000-11-17 Thread Tigran Aivazian
p (or hang) when run via strace, but only sometimes, not always... (no, I don't have faulty memory, I run memtest!) Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] x86 mm init cleanup

2000-11-18 Thread Tigran Aivazian
ot also correct the wrong comment at the top of the function? It talks about 0-4M pagetables whereas we really setup (see head.S) 0-8M. Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the

VFS busy inodes after umount -- have a nice day...

2000-11-19 Thread Tigran Aivazian
2M each (total is 6G) now try to umount the filesystem and you'll get the above. I will try test11-pre7 tomorrow... Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at htt

Re: Defective Red Hat Distribution poorly represents Linux

2000-11-20 Thread Tigran Aivazian
es Brouwer has long ago fixed this bug in the 2.4 kernel (i.e. made DOS physical partitions enumerated first so no foreign partitions can mix anything up) so the workaround is -- boot your system somehow (be a man, find _some_ way of booting your system even if there is no way ;) and then install 2

Re: Defective Red Hat Distribution poorly represents Linux

2000-11-20 Thread Tigran Aivazian
On Mon, 20 Nov 2000, Bernhard Rosenkraenzer wrote: > On Mon, 20 Nov 2000, Tigran Aivazian wrote: > > > Try Red Hat 7.0 -- it is certainly better. True, no distribution is > > perfect but over the years I've developed my own CD image upgrade.iso > > which goes dir

2.4.0-test11 ext2 filesystem corruptions

2000-11-20 Thread Tigran Aivazian
latest kernel were perfectly stable (wrt to this particular bug). Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

Re: kernel-2.4.0-test11 crashed again; this time i send you theOops-message

2000-11-20 Thread Tigran Aivazian
On Mon, 20 Nov 2000, Oliver Poths wrote: > looks fascinating... you know, it looks even more fascinating when you pass it through ksymoops like this: ksymoops < rawoops > oops and then mail the result. Regards, Tigran - To unsubscribe from this list: send the line "unsubscrib

deadlock on 4way machine

2000-11-21 Thread Tigran Aivazian
Hi, Some processes get stuck in page fault handler for ages (like for 10 minutes!). The machine still has plenty (3.5G) of free high memory but zero (2216K) of free low memory. here are some traces: Entering kdb (current=0xc767c000, pid 0) on processor 2 due to Keyboard Entry [2]kdb> ps Task Ad

Re: deadlock on 4way machine

2000-11-21 Thread Tigran Aivazian
On 21 Nov 2000, Jes Sorensen wrote: > >>>>> "Tigran" == Tigran Aivazian <[EMAIL PROTECTED]> writes: > > Tigran> Hi, Some processes get stuck in page fault handler for ages > Tigran> (like for 10 minutes!). The machine still has plenty (3.5G)

Re: deadlock on 4way machine

2000-11-21 Thread Tigran Aivazian
On 21 Nov 2000, Jes Sorensen wrote: > Including info on the kernel version would kinda help. sorry, I said more words when one was sufficient - 2.4.0-test11 Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EM

[patch-2.4.0-test11] show_mem() to dump free pages

2000-11-21 Thread Tigran Aivazian
Hi Linus, In arch/i386/mm/init.c:show_mem() we calculate the number of free pages but don't printk it out. Therefore, we must either a) remove the variable and the calculation or b) make use of it. I think b) is obviously better. The patch below was tested under 2.4.0-test11. Regards, T

Re: [PATCH] removal of "static foo = 0" from drivers/ide (test11)

2000-11-21 Thread Tigran Aivazian
and look for surprised. This is becoming FAQ, Richard, how about putting it into your FAQ mentioned at the bottom of this message?) Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

Re: [patch-2.4.0-test11] show_mem() to dump free pages

2000-11-21 Thread Tigran Aivazian
On Tue, 21 Nov 2000, Tigran Aivazian wrote: > Hi Linus, > > In arch/i386/mm/init.c:show_mem() we calculate the number of free pages > but don't printk it out. Therefore, we must either a) remove the variable > and the calculation or b) make use of it. I think b) is obviou

Re: [PATCH] removal of "static foo = 0" from drivers/ide (test11)

2000-11-21 Thread Tigran Aivazian
On Wed, 22 Nov 2000, J . A . Magallon wrote: > > On Wed, 22 Nov 2000 00:04:53 Tigran Aivazian wrote: > > On Tue, 21 Nov 2000, J . A . Magallon wrote: > > > > Quite the contrary. The patch seems correct and useful to me. What do you > > think is wrong with it? (Lin

Re: filesystems

2000-11-22 Thread Tigran Aivazian
source, it is so complex. But it is definitely worth a try -- just remember, it is a lifelong process. Nevertheless, it is certainly a good thing to dedicate whole life to study the subject so complex, and which changes so frequently that nobody in the whole world has an overall picture of it. But

Re: filesystems

2000-11-22 Thread Tigran Aivazian
On Wed, 22 Nov 2000, Tigran Aivazian wrote: > you do not mount a VFS filesystem. VFS is not a filesystem. VFS is a > Virtual Filesystem Switch, i.e. a set of concepts, philosophy, data > structures and functions which together make writing new filesystems easy. > The name is derived f

vfree() question.

2000-11-22 Thread Tigran Aivazian
having thoughts that it can still be optimized more). Regards, Tigran PS. To be specific, here is the patch I had in mind: --- linux/mm/vmalloc.c Mon Nov 20 11:56:14 2000 +++ work/mm/vmalloc.c Wed Nov 22 11:25:29 2000 @@ -214,9 +214,9 @@ for (p = &vmlist ; (tmp = *

Re: {PATCH} isofs stuff

2000-11-23 Thread Tigran Aivazian
e people who have reported corruption problems... I am using 2.91.66. Ok, I'll get on with testing Al Viro's latest patch now. Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

alloc_tty_struct() question.

2000-11-23 Thread Tigran Aivazian
Hi, The sizeof(struct tty_struct) = 3084. Why don't we have a private slab cache for it instead of getting a page and wasting some precious bytes at the end? Potentially, we can have thousands of tty_struct allocated (assuming we have thousands of concurrent users)... regards, Tigran

Re: ext2 filesystem corruptions back from dead? 2.4.0-test11

2000-11-23 Thread Tigran Aivazian
t_ survive. The corruptions usually come from real useful work and not from articfical tests (unfortunately) Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

Re: ext2 filesystem corruptions back from dead? 2.4.0-test11

2000-11-24 Thread Tigran Aivazian
I have seen ext2 filesystem corruption both on SCSI and IDE drives. Tigran On Fri, 24 Nov 2000, Mike Ricketts wrote: > On Fri, 24 Nov 2000, Ion Badulescu wrote: > > > So I'm asking the same question, to all those who have seen unexplained > > filesystem corruption wi

[patch-2.4.0-test11] various small fixes

2000-11-24 Thread Tigran Aivazian
Hi Linus, This patch does: a) cleans up the show_mem() function on various architectures wrt page_count() macro and the 'free' variable b) corrects the comment above paging_init() about 0-8M page tables c) changes the name of kflushd to bdflush. All kernel data structures around this thread ar

Re: [PATCH] removal of "static foo = 0"

2000-11-25 Thread Tigran Aivazian
it requires absolutely _impossible_ amount of patience on the part of Linus Torvalds, but that is indeed what he does -- the impossible and may God bless him and keep him. > > I see that this message is cc'ed to Tigran, so let me address him as well. > Tigran, you like to destabil

Re: [PATCH] removal of "static foo = 0"

2000-11-26 Thread Tigran Aivazian
in .data. Think of binary patching an object as one valid example (there may be others, I forgot). Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] removal of "static foo = 0"

2000-11-26 Thread Tigran Aivazian
uglier) which Andries pointed out to counter it. Regards, Tigran. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] removal of "static foo = 0"

2000-11-26 Thread Tigran Aivazian
hiding from Andries ;) can't we optimize this code to move words at a time and not bytes ;) Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

number of open fds?

2000-11-26 Thread Tigran Aivazian
)? Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

Re: number of open fds?

2000-11-27 Thread Tigran Aivazian
never mind this question: a) I found count_open_files() b) for what I needed it for, close_files() is easily enhanceable to return this number as well, without having to walk the sets twice Regards, Tigran On Sun, 26 Nov 2000, Tigran Aivazian wrote: > Hi, > > T

[patch-2.4.0-test11] free_uid() optimization

2000-11-27 Thread Tigran Aivazian
Hi Alan, Instead of having SMP-specific code and doing a sequence of (on SMP): test if count is 0 take a spinlock test if count is still 0 we could make use of the atomic primitive atomic_dec_and_lock() and do it in one go, which is cleaner, imho. Regards, Tigran --- linux.kernel/user.c

bug in count_open_files() or a strange granularity?

2000-11-28 Thread Tigran Aivazian
current->comm, count_open_files(files, files->max_fdset)); b) write a program that opens that device and sleeps indefinitely. Run it, you will see: op has 32 files open c) # lsof -p 659 | nl 1 COMMAND PID USER FD TYPE DEVICESIZE NODE NAME 2 op 659 tigran cwd

Re: binfmt question

2000-11-28 Thread Tigran Aivazian
e Core was generated by `auto BOOT_IMAGE=240-test11 ro root=302 BOOT_FILE=/boot/vmlinuz-2.4.0-test11'. #0 0x0 in ?? () (gdb) p 2) >> 8) ^ (2)) & (1024 - 1)) $1 = 2 (gdb) p pidhash[2]->comm $2 = "eventd\000\000\000\000\000\000\000\000\000" (gdb) p pidhash[2]->bi

Re: bug in count_open_files() or a strange granularity?

2000-11-28 Thread Tigran Aivazian
DULE in the fops, it doesn't use MOD_INC/DEC_USE_COUNT macros b) No, those macros should NOT be defined to do nothing because the Linux kernel is a lot more than just set of drivers. There are subsystems that still need them. Regards, Tigran - To unsubscribe from this list: send the line &quo

Re: [PATCH] no RLIMIT_NPROC for root, please

2000-11-28 Thread Tigran Aivazian
u _really_ think that superuser (whatever entity that might be) should be exempt from RLIMIT_NPROC and can prove that (SuSv2 seems to be silent so you may be right), then you should use capable() to do proper capability test and not that horrible explicit uid test as in your patch above. Regards, Tigran

Re: [PATCH] no RLIMIT_NPROC for root, please

2000-11-28 Thread Tigran Aivazian
t, Jan: the ->user->uid is maintained for a reason completely different from your usage above (see kernel/user.c to learn why -- it is to easily find out given user_struct which real uid it belongs to in uid_hash_find()). If you wanted this process' uid you should have used p-&g

Re: [PATCH] removal of "static foo = 0" from drivers/ide (test11)

2000-11-28 Thread Tigran Aivazian
if you count multiple architectures. Use Keith Owens' famous perl script to do the counting. Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] removal of "static foo = 0" from drivers/ide (test11)

2000-11-28 Thread Tigran Aivazian
On Tue, 28 Nov 2000, Peter Samuelson wrote: > [Tigran Aivazian] > > First, they are not trivially equivalent. In fact, they are not > > equivalent at all. Any good C book should tell you that one places > > data in "data segment" and another in "bss segm

Re: ext2 filesystem corruptions back from dead? 2.4.0-test11

2000-11-29 Thread Tigran Aivazian
Mohammad, can you please tell me if that 4K corrupted block in a file was on a UP machine or SMP? So far I have not seen a corruption on UP machines, only SMP. Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

Re: corruption

2000-11-29 Thread Tigran Aivazian
On Wed, 29 Nov 2000, Alexander Viro wrote: > > I'ld really like to see details on the box with ext2 corruption on SCSI. > Tigran, IIRC you had it on SCSI boxen, right? Could you send me relevant > part of logs? > I definitely did have this very corruption on a 4xXeon SCSI-o

36bit mtrrs work! (2.4.0-test12-pre3)

2000-11-29 Thread Tigran Aivazian
do in all previous versions. (without david-mtrr.patch) Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

Re: corruption

2000-11-29 Thread Tigran Aivazian
is offtopic for this thread but not for this list. I am continuing to pursue the corruption. Nothing yet. Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

Re: 'holey files' not holey enough.

2000-11-29 Thread Tigran Aivazian
nguin 2.4.0-test12 #1 Wed Nov 29 09:08:13 GMT 2000 i686 unknown Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] removal of "static foo = 0" from drivers/ide (test11)

2000-11-29 Thread Tigran Aivazian
On Wed, 29 Nov 2000, Peter Samuelson wrote: > It would probably also be reasonable to document it and provide an > option to switch it off. yes, that is perfectly fine by me. Now, who is going to do the _work_? :) Regards, Tigran - To unsubscribe from this list: send the line "

Re: corruption

2000-11-29 Thread Tigran Aivazian
not reproduce the problem. This is a SCSI-only machine and I don't know what Jens' fix is and whether it is applicable or not. Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

Re: access() says EROFS even for device files if /dev is mounted RO

2000-11-29 Thread Tigran Aivazian
ed on real uid instead of relying on open(2) to fail. This should make it clear that the two (access(2) and open(2)) should behave identically modulo the euid->ruid transformation. Regards, Tigran PS. This is the sort of dicussion where openly showing snippets of proprietary UNIX source code woul

Re: access() says EROFS even for device files if /dev is mounted RO

2000-11-29 Thread Tigran Aivazian
just to add (obvious!) -- whenever "uid" was mentioned I implied "uid and gid"... On Wed, 29 Nov 2000, Tigran Aivazian wrote: > On Wed, 29 Nov 2000, Hugh Dickins wrote: > > Sorry, I missed the point at issue here, and what changed when. > > Assuming (p

Re: access() says EROFS even for device files if /dev is mounted RO

2000-11-29 Thread Tigran Aivazian
t should be the return of access(W_OK) (or, the same, open() for write with switched uid) for devices on a readonly-mounted filesystems? Should the majority win? I.e. should we say OK, as we do now? Regards, Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel&q

Re: access() says EROFS even for device files if /dev is mounted RO

2000-11-29 Thread Tigran Aivazian
uld have been obvious from the src but I trust my hands more than my eyes :) If I read the src right, AIX 4.3 and Monterey64 should do the same. OSR504 looks the same but Hugh knows it a lot better than me (he wrote most of it!) so I defer to him to verify. Regards, Tigran - To unsubscribe from t

Re: access() says EROFS even for device files if /dev is mounted RO

2000-11-29 Thread Tigran Aivazian
On Wed, 29 Nov 2000, Tigran Aivazian wrote: > On Wed, 29 Nov 2000, Alexander Viro wrote: > > Considering your previous workplace... How does official SVR{4,5} behave? > > Under SCO UnixWare 7.1.1 you can happily write to devices in a readonly > mounted (vxfs) filesystem. Yo

  1   2   3   4   5   >