Re: IPsec AH use of ahash

2013-01-30 Thread Jan Engelhardt
On Sunday 2013-01-20 14:54, Tom St Denis wrote: >> >> > You should really try running checkpatch.pl over code that's >> > already in the kernel before you call out new contributors on it. >> > >> > How is this supposed to not be adversarial when I can't even use >> > the Kernel source itself as a

Re: kconfig-frontends-3.8.0.0 release

2013-02-19 Thread Jan Engelhardt
On Tuesday 2013-02-19 23:14, Yann E. MORIN wrote: >I'm pleased to announce the release of kconfig-frontends 3.8.0.0! >Go download it there: > > http://ymorin.is-a-geek.org/download/kconfig-frontends/kconfig-frontends-3.8.0.0.tar.xz > > http://ymorin.is-a-geek.org/download/kconfig-frontends

Re: kconfig-frontends-3.8.0.0 release

2013-02-19 Thread Jan Engelhardt
On Wednesday 2013-02-20 00:21, Yann E. MORIN wrote: >> This seems to install >> /usr/bin/diff[...] > >By default, the binaries should all ne prefixed with 'kconfig-' to avoid >such name-clashing (as root, in a fresh debootstrap of squeeze here): Aha. Seems I hit a peculiarity in rpmbuild

Re: [Announce] Checkpoint-restore tool v0.4

2013-02-22 Thread Jan Engelhardt
On Wednesday 2013-02-20 12:18, Pavel Emelyanov wrote: > >As was planned, the v0.4 of C/R tools is out, right after the Linux v3.8. > >The most valuable thing in this release, is that all the kernel patches >we had are now merged, and thus what crtools-v0.4 can do will work on >the upstream kernel

Re: Read I/O starvation with writeback RAID controller

2013-02-22 Thread Jan Engelhardt
On Friday 2013-02-22 20:28, Martin Svec wrote: > > Yes, I've already tried the ROW scheduler. It helped for some low iodepths > depending on quantum settings but generally didn't solve the problem. I think > the key issue is that none of the schedulers can throttle I/O according to > e.g. > avera

Re: Which disk is ata4?

2012-08-30 Thread Jan Engelhardt
On Thursday 2012-08-30 17:22, Borislav Petkov wrote: >On Thu, Aug 30, 2012 at 08:17:13AM -0700, Andy Lutomirski wrote: >> $ dmesg |grep ST3000DM001-9YN166 >> [1.064910] ata5.00: ATA-8: ST3000DM001-9YN166, CC4B, max UDMA/133 >> [1.064926] ata3.00: ATA-8: ST3000DM001-9YN166, CC4B, max UDMA/1

Re: Which disk is ata4?

2012-08-30 Thread Jan Engelhardt
On Thursday 2012-08-30 06:38, Andy Lutomirski wrote: >One of my disks went out to lunch for a while. Logs below. > >[784786.047673] ata4.00: exception Emask 0x10 SAct 0x7800 SErr 0x0 >action 0x6 frozen > >Which one is it? The only useful thing in /sys/class/ata_port/ata4 is >the device symlink,

Re: Which disk is ata4?

2012-08-30 Thread Jan Engelhardt
On Thursday 2012-08-30 18:57, Andy Lutomirski wrote: >On Thu, Aug 30, 2012 at 9:14 AM, Jan Engelhardt wrote: >> On Thursday 2012-08-30 06:38, Andy Lutomirski wrote: >> >>>One of my disks went out to lunch for a while. Logs below. >>> >>>[784786.047673]

Re: [PATCH] strings: helper for maximum decimal encoding of an unsigned integer

2012-09-14 Thread Jan Engelhardt
On Friday 2012-09-14 11:17, Bernd Petrovitsch wrote: >Shouldn't that have been > snip >#define base10len(i) ((const int[]){1,3,5,8,10,13,15,17,20}[sizeof(i)]) > snip Yeah. >A pure K&R-C version would use a string: >#define base10len(i) "\0x1\0x3\0x5\0x8\0x0A\0x0D\0x0F\0x11\0x1

Re: [PATCH] strings: helper for maximum decimal encoding of an unsigned integer

2012-09-14 Thread Jan Engelhardt
On Friday 2012-09-14 14:30, Jim Rees wrote in an odd quote style (the > are mine): >Bernd Petrovitsch wrote: > > A pure K&R-C version would use a string: > snip > #define base10len(i) "\0x1\0x3\0x5\0x8\0x0A\0x0D\0x0F\0x11\0x14"[sizeof(i)] > snip > (if I converted them p

Re: [PATCH] strings: helper for maximum decimal encoding of an unsigned integer

2012-09-14 Thread Jan Engelhardt
On Friday 2012-09-14 15:46, Jim Rees wrote: >Jan Engelhardt wrote: > > >A pure K&R-C version would use a string: > >#define base10len(i) "\0x1\0x3\0x5\0x8\0x0A\0x0D\0x0F\0x11\0x14"[sizeof(i)] > >(if I converted them properly into hexadecimal) > The

oldconfig/menuconfig help text display for "choice" items

2008-01-30 Thread Jan Engelhardt
Hi, when running oldconfig, I got to see some new IO delay questions, and tried displaying its info using ?. IO delay type 1. port 0x80 based port-IO delay [recommended] (IO_DELAY_0X80) (NEW) > 2. port 0xed based port-IO delay (IO_DELAY_0XED) (NEW) 3. udelay b

Re: how to find out which modules are embedded and running in a static kernel

2008-01-30 Thread Jan Engelhardt
On Jan 30 2008 23:36, Geraldo Netto wrote: > >Sorry for this newbie question, >but i would like to know how to find >out which modules are embedded >and running in a static kernel >because we have a kernel which >we don't know what components(drivers, ...) >are embedded and also, we don't know >wh

Re: [2.6 patch] remove smbfs

2008-01-30 Thread Jan Engelhardt
On Jan 31 2008 12:33, David Newall wrote: >Jan Engelhardt wrote: >> On Jan 30 2008 12:53, Steve French wrote: >> >>> I have mounted to Windows98 a few months ago with no problems (other >>> than a few restrictions like you can't set the file times via uti

Re: [2.6 patch] remove smbfs

2008-01-31 Thread Jan Engelhardt
On Jan 30 2008 19:23, Steve French wrote: >> On Jan 30 2008 12:53, Steve French wrote: >> >I have mounted to Windows98 a few months ago with no problems (other >> >than a few restrictions like you can't set the file times via utimes). >> > For mounts to Windows98 note that you have to specify the

Re: [PATCH] x86: introduce /dev/mem restrictions with a config option

2008-01-31 Thread Jan Engelhardt
On Jan 30 2008 12:48, Arjan van de Ven wrote: >Subject: [PATCH] x86: introduce /dev/mem restrictions with a config option > >This patch introduces a restriction on /dev/mem: Only non-memory can be >read or written unless the newly introduced config option is set. Would not it be nicer to add a /d

Re: [BUG?] GDTH driver not working after upgrade to 2.6.24

2008-01-31 Thread Jan Engelhardt
Hi, On Jan 31 2008 14:35, Boaz Harrosh wrote: > >Thanks, Perhaps someone else then. >Anyone with gdth HW that can test patches? Is bisecting down the existing chain and finding the bad commit sufficient? (I also take new patches.) >Your lspci said: "Intel Corporation RAID Controller" Matthew >

Re: test

2008-01-31 Thread Jan Engelhardt
On Jan 31 2008 11:32, Stephen Clark wrote: > > test - is the ml alive. > 'tis ml be well alive; if ye don't get mails, check the spam filters (high-volume list) #include "test-rant.txt" -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL

Re: [PATCH] nozomi: constify driver

2008-01-31 Thread Jan Engelhardt
On Jan 31 2008 22:10, Frank Seidel wrote: > >This one is based on the last patch i sent >(Re: [PATCH 012/196 ver2] nozomi driver) and is a rework >of the nozomi constify patch from Jan Engelhardt. It's hard to find what you actually reworked... >-static struct pci_devi

Re: [1/2] POHMELFS - network filesystem with local coherent cache.

2008-01-31 Thread Jan Engelhardt
On Jan 31 2008 22:17, Evgeniy Polyakov wrote: > >POHMELFS stands for Parallel Optimized Host Message Exchange >Layered File System. It allows to mount remote servers to local >directory via network. This filesystem supports local caching >and writeback flushing. >POHMELFS is a brick in a future di

Re: how to tell i386 from x86-64 kernel

2008-01-31 Thread Jan Engelhardt
On Jan 31 2008 16:46, Ray Lee wrote: >On Jan 31, 2008 4:42 PM, Pavel Machek <[EMAIL PROTECTED]> wrote: >> Quiz: on a booted system, how do you tell 32bit from 64bit kernel? > >Uhm, is this a trick question? What's wrong with uname(2)? # uname -m I won't tell you. # linux32 uname -m i686 Now what

Re: how to tell i386 from x86-64 kernel

2008-01-31 Thread Jan Engelhardt
don't strip Ccs, thanks. (and try not to tofu either.) On Jan 31 2008 17:01, Justin Banks wrote: > >uname -a will tell you, though. No. uname is generally not a reliable source to tell you the bitness (or more precisely, the arch). It may even happen that you cannot find out at all if access p

Re: Are Section mismatches out of control?

2008-02-01 Thread Jan Engelhardt
On Feb 1 2008 12:10, Andi Kleen wrote: >On Friday 01 February 2008 11:47:18 Sam Ravnborg wrote: >> James said in a related posting that the Section mismatch >> warnings were getting out of control. > >My question is: where are crashes? If the sections were >really in such bad shape and since we po

Re: Are Section mismatches out of control?

2008-02-01 Thread Jan Engelhardt
On Feb 1 2008 03:21, Harvey Harrison wrote: >> >> Question is: why do people keep adding new ones when they are so easy to >> detect and fix? >> >> Asnwer: because neither they nor their patch integrators are doing adequate >> compilation testing. > >[...] >Unless they break the build, or if the

Re: Are Section mismatches out of control?

2008-02-01 Thread Jan Engelhardt
On Feb 1 2008 23:40, Sam Ravnborg wrote: >> >> checkpatch does not parse C, it uses heuristical regexes. >> >> That makes it very different from sparse or the section mismatch >> finder which do not output false positives. > >Unfortunately I most correct you. Section mismatch checks seldoms find

Re: [PATCH] Allow NBD to be used locally

2008-02-02 Thread Jan Engelhardt
On Feb 2 2008 12:23, Pavel Machek wrote: >On Fri 2008-02-01 14:25:32, Laurent Vivier wrote: >> This patch allows Network Block Device to be mounted locally. > >What is local nbd good for? Use loop instead... Local NBD is good for when the content you want to make available through the block devic

Re: [PATCH] Allow NBD to be used locally

2008-02-02 Thread Jan Engelhardt
On Feb 2 2008 15:40, [EMAIL PROTECTED] wrote: > >>In fact, VMware uses local nbd today for its vmware-loop helper >>utility, most likely because of the above-mentioned reasons. (Though >>it quite often hung last time I tried.) > >seems this will go away. recent vmware versions (e.g. server 2.0 >be

Re: [PATCH] Allow NBD to be used locally

2008-02-02 Thread Jan Engelhardt
On Feb 2 2008 18:31, [EMAIL PROTECTED] wrote: > >> How will that work? Fuse makes up a filesystem - not helpful >> if you have a raw disk without a known fs to mount. > >take zfs-fuse or ntfs-3g for example. >you have a blockdevice or backing-file containing data structures and fuse >makes those

Re: Linux 2.6.24

2008-02-03 Thread Jan Engelhardt
On Jan 24 2008 15:17, Linus Torvalds wrote: > >The release is out there (both git trees and as tarballs/patches), and for >the next week many kernel developers will be at (or flying into/out of) >LCA in Melbourne, so let's hope it's a good one. |type commit |tag v2.6.24 |tagger Linus Torvalds <

Commit f06e4ec breaks vmware

2008-02-03 Thread Jan Engelhardt
Hi, sad to say, but f06e4ec... breaks booting the kernel in vmware (bisected). Booting just stops after Checking for 'hlt' instruction... commit f06e4ec1c15691b0cfd2397ae32214fa36c90d71 Author: Ingo Molnar <[EMAIL PROTECTED]> Date: Wed Jan 30 13:32:39 2008 +0100 x86: read_tsc sy

Re: [QUESTION] I have a question about making device driver

2008-02-04 Thread Jan Engelhardt
On Feb 4 2008 18:54, [EMAIL PROTECTED] wrote: > >I'm writing device driver for parallel port on Linux. Another one? >In initial function which is argument of module_init() in my device >driver, I reserved I/O address region, 0x378-0x37a, with using >request_region() and regist my charactor devic

Re: Commit f06e4ec breaks vmware

2008-02-04 Thread Jan Engelhardt
On Feb 3 2008 20:19, Petr Vandrovec wrote: >> >> sad to say, but f06e4ec... breaks booting the kernel in vmware (bisected). >> Booting just stops after >> >> Checking for 'hlt' instruction... >> >> commit f06e4ec1c15691b0cfd2397ae32214fa36c90d71 >> Author: Ingo Molnar <[EMAIL PROTECTED]> >> Da

Re: CodingStyle: provide good example

2008-02-04 Thread Jan Engelhardt
On Feb 5 2008 00:43, Pavel Machek wrote: >Subject: CodingStyle: provide good example > >if (!buffer) is actually prefered style, so lets use it in example. Just because it is "preferred" by some does not mean it is bad. I vote for diversity! -- To unsubscribe from this list: send the line "unsubs

Re: Announce: Linux-next (Or Andrew's dream :-))

2008-02-12 Thread Jan Engelhardt
On Feb 11 2008 20:21, Greg KH wrote: >> >> I hope to recreate this tree every day automatically. In order to do >> this, any tree that has a conflict will be dropped from that days tree. > >Oh oh oh, I get merged first! me me me! No, you can't have a tree like that. [森林 Not yours. 森林] Let's

Re: BTRFS partition usage...

2008-02-12 Thread Jan Engelhardt
On Feb 12 2008 15:26, David Miller wrote: > >> (Yes, I had xfs on sparc before, so it's not like you NEED the >> whitespace at the start of a partition.) > >You actully do unless you want to lose significant chunks of your disk >space. > >The Sun disk label only allows you to specify the start of

Re: BTRFS partition usage...

2008-02-12 Thread Jan Engelhardt
On Feb 12 2008 15:38, David Miller wrote: > >> I still don't like the idea of btrfs trying to be smarter than a user >> who can partition up his system according to >> (a) his likes >> (b) system or hardware requirements or recommendations >> to align the superblock to a specific locatio

Re: BTRFS partition usage...

2008-02-12 Thread Jan Engelhardt
> On Feb 12 2008 09:35, Chris Mason wrote: >> >> and slap the bootloader into "MBR", just like on x86. >> Or I am missing something.. > >It was a request from hpa, and he clearly had something in mind. He kindly >offered to review the disk format for bootloaders and other lower level >issues but

Re: BTRFS partition usage...

2008-02-12 Thread Jan Engelhardt
On Feb 12 2008 09:08, Chris Mason wrote: >> > >> >So, if Btrfs starts zeroing at 1k, will that be acceptable for you? >> >> Something looks wrong here. Why would btrfs need to zero at all? >> Superblock at 0, and done. Just like xfs. >> (Yes, I had xfs on sparc before, so it's not like you NEED th

Re: BTRFS partition usage...

2008-02-12 Thread Jan Engelhardt
On Feb 12 2008 08:49, Chris Mason wrote: >> > >> > This is a real issue on sparc where the default sun disk labels >> > created use an initial partition where block zero aliases the disk >> > label. It took me a few iterations before I figured out why every >> > btrfs make would zero out my disk

Re: bug in checkpatch (on pointers to typedefs?)

2008-02-13 Thread Jan Engelhardt
On Feb 10 2008 15:33, Marcin Slusarz wrote: >Checkpatch in current mainline outputs following errors: > >$ ./scripts/checkpatch.pl -q --file ./fs/udf/misc.c >ERROR: need consistent spacing around '*' (ctx:WxV) >#205: FILE: fs/udf/misc.c:205: >+ tag *tag_p; >^ I'd say "don't add

Re: [BUGFIX 2/2] gdth: bugfix for the Timer at exit crash

2008-02-13 Thread Jan Engelhardt
On Feb 13 2008 11:03, Boaz Harrosh wrote: >> >> I've tested this patch now - and it works fine. Now rmmod, halt and >> reboot also works. >> >> Stefan Priebe >> >This is grate news Stefan. Thank you very much for all your time >and effort, with out we could not have fixed all this. Do you hav

Re: [2.6 patch] #if 0 aoedev_isbusy()

2008-02-13 Thread Jan Engelhardt
On Feb 13 2008 23:30, Adrian Bunk wrote: > >This patch #if 0's the no longer used aoedev_isbusy(). Why not just remove it? (It can be resurrected from earlier revisions should it be needed again.) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

Re: vmsplice exploits, stack protector and Makefiles

2008-02-14 Thread Jan Engelhardt
On Feb 13 2008 17:48, [EMAIL PROTECTED] wrote: >On 13 Feb 2008 at 8:29, Randy Dunlap wrote: > >> Is it signed-off-by: pageexec ? > >no it isn't, on purpose as i won't give out my real name that the >DCO requires. But could still add "Brought-to-attention-by: [EMAIL PROTECTED]" or something like t

Re: Is there a "blackhole" /dev/null directory?

2008-02-14 Thread Jan Engelhardt
On Feb 14 2008 10:46, Andi Kleen wrote: >Jasper Bryant-Greene <[EMAIL PROTECTED]> writes: >> >> This could be done fairly trivially with FUSE, and IMHO is a good use >> for FUSE because since you're just throwing most data away, performance >> is not a concern. There is a much more interesting 'p

Re: Is there a "blackhole" /dev/null directory?

2008-02-14 Thread Jan Engelhardt
On Feb 14 2008 16:19, Hans-Jürgen Koch wrote: >> >> Q: What if a program attempts to mkdir /dev/nullmnt/foo to just >>create a file /dev/nullmnt/foo/barfile? >> A: /dev/nullmnt/foo must continue to exist or be accepted for a while, >>or perhaps for eternity. > >Well, the problem seems to

Re: bug in checkpatch (on pointers to typedefs?)

2008-02-14 Thread Jan Engelhardt
On Feb 14 2008 10:06, Andy Whitcroft wrote: >On Wed, Feb 13, 2008 at 08:43:58PM +0100, Jan Engelhardt wrote: >> >> On Feb 10 2008 15:33, Marcin Slusarz wrote: >> >Checkpatch in current mainline outputs following errors: >> > >> >$ ./scripts/checkpatch.pl

Re: [PATCH] Make sysctl a separate filesystem

2008-02-15 Thread Jan Engelhardt
On Feb 15 2008 12:35, Mikael Pettersson wrote: >Andi Kleen writes: > > Pavel Emelyanov <[EMAIL PROTECTED]> writes: > > >this subdir; > > > 3. sysctl inodes are now smaller than the procfs ones. > > > > That's always a good thing. > > > > > Note: update your initscripts to mount sysctl filesy

Re: [PATCH 05/14] [ISDN] HiSax enternow: convert to PCI hotplug API

2008-02-15 Thread Jan Engelhardt
On Jul 17 2007 23:49, Jeff Garzik wrote: >+static struct pci_device_id en_pci_table[] = { >+ { PCI_VENDOR_ID_TIGERJET, PCI_DEVICE_ID_TIGERJET_300, 0x55, 0x02, }, >+ >+ { } /* terminate list */ >+}; This can be v v static const

Re: REGRESSION: x86 vDSO: remove vdso-syms.o

2008-02-15 Thread Jan Engelhardt
On Feb 11 2008 15:29, Roland McGrath wrote: >Sam might want to experiment with something like: > > stdout_target = $(1) > $(@D)/.tmp_$(@F) && mv -f $(@D)/.tmp_$(@F) $@ > > cmd_foo = $(call stdout_target,blah | sed s/foo/bar/) > >to clean up all the places that would benefit from robust

Re: [PATCH] gdth: convert to PCI hotplug API

2008-02-15 Thread Jan Engelhardt
On Feb 13 2008 13:07, Boaz Harrosh wrote: >+static struct pci_device_id gdthtable[] __devinitdata = { >+ { PCI_VDEVICE(VORTEX, PCI_ANY_ID) }, >+ { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_SRC) }, >+ { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_SRC_XSCALE) }, >+ { } /* terminate l

Re: [PATCH 0/4] ide: generic packet command representation

2008-02-15 Thread Jan Engelhardt
On Feb 12 2008 01:09, Bartlomiej Zolnierkiewicz wrote: > >> On a different note, i noticed ide-scsi might also need a cleanup >> similar to the other drivers. It is next on my TODO list in case >> you don't have anything with a higher prio. > >I was actually hoping that you'll continue unifying AT

Re: [PATCH] quota: Turn quotas off when remounting read-only

2008-02-15 Thread Jan Engelhardt
On Feb 11 2008 13:39, Jan Kara wrote: >> >> But... I'm thinking about this scenario: >> >> # mount /data >> # quotaon /data >> (some maintenance stuff to be planned) >> # mount -o remount,ro /data >> (do backup etc) >> # mount -r remount,rw /data >> >> at this point, it's expected that q

Re: [PATCH 09/11] ata: fix sparse warning in pata_marvell.c

2008-02-15 Thread Jan Engelhardt
On Feb 13 2008 21:14, Harvey Harrison wrote: >drivers/ata/pata_marvell.c:88:2: warning: returning void-valued expression This is interesting. Why did not gcc warn us about this? (foo.c:3: warning: "return" with a value, in function returning void) -- To unsubscribe from this list: send the line

Re: [PATCH] Use directly kmalloc() and kfree() in init/initramfs.c

2008-02-15 Thread Jan Engelhardt
On Feb 15 2008 12:13, Thomas Petazzoni wrote: >+++ linux/init/initramfs.c >@@ -57,7 +57,7 @@ > continue; > return (*p)->name; > } >- q = (struct hash *)malloc(sizeof(struct hash)); >+ q = (struct hash *)kmalloc(sizeof(struct hash), GFP_KERNEL);

Re: Disk schedulers

2008-02-15 Thread Jan Engelhardt
On Feb 14 2008 17:21, Lukas Hejtmanek wrote: >Hello, > >whom should I blame about disk schedulers? Also consider - DMA (e.g. only UDMA2 selected) - aging disk -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo in

Re: [PATCH] Use directly kmalloc() and kfree() in init/initramfs.c

2008-02-15 Thread Jan Engelhardt
On Feb 15 2008 16:45, Thomas Petazzoni wrote: > >> Remove the cast while you are at it, thanks :) > >Right, thanks for the comment. Here is an updated patch. Who will pick >it up ? There doesn't seem to be a maintainer for the initramfs code >(not in MAINTAINERS, not in the init/initramfs.c file i

Re: [PATCH] Make sysctl a separate filesystem

2008-02-15 Thread Jan Engelhardt
On Feb 15 2008 17:57, Oliver Pinter wrote: >> > >> >Doing it automatically is the only acceptable way, IMO. >> >> For time being only. >> >> The kernel (currently) only auto-mounts invisible filesystems. > and /selinux with selinuxfs, it is automounted ... but it is visible fs > Sorry if I do not

Re: [PATCH] Make sysctl a separate filesystem

2008-02-15 Thread Jan Engelhardt
On Feb 15 2008 08:34, Randy Dunlap wrote: >> > >> >Doing it automatically is the only acceptable way, IMO. >> >> For time being only. >> >> The kernel (currently) only auto-mounts invisible filesystems. > >like /root, sysfs, futexfs, pipefs, anon_inodefs, bdev, devpts, >hugetlbfs, inotifyfs ? Y

Re: Linux 2.6.25-rc2

2008-02-16 Thread Jan Engelhardt
On Feb 15 2008 13:23, Linus Torvalds wrote: > >Just to show how _much_ of a winner it is, it's been awarded a coveted >"weasel" series name, which should tell you just how good it's going to >be. It's a name revered in Linux kernel history, and as such this brings >back the good old days where

Re: [RFC/PATCH 2/2] block: Adding ROW scheduling algorithm

2012-09-20 Thread Jan Engelhardt
On Wednesday 2012-09-19 07:29, Jan Engelhardt wrote: >On Monday 2012-08-06 18:35, Jeff Moyer wrote: >>Tatyana Brokhman writes: >> >>> This patch adds the implementation of a new scheduling algorithm - ROW. >>> The policy of this algorithm is to prioritize READ r

Re: Question on /proc/cpuinfo

2012-09-23 Thread Jan Engelhardt
On Friday 2012-09-14 14:30, Cong Wang wrote: > On 09/14/2012 07:18 AM, JA Magallón wrote: >> Hi... >> >> Probably it is a stupid question, but... I wan to count the number of >> processors, cores and threads on a linux system. I do it by reading >> /proc/cpuinfo. > > Probably lscpu(1) is better fo

Re: [PATCH 00/13] overlay filesystem: request for inclusion (v15)

2012-09-23 Thread Jan Engelhardt
On Thursday 2012-09-20 22:48, Miklos Szeredi wrote: > >> Miklos, how do you think about this? >> >> Do you think UnionMount is totally gone? > >Unionmount provides almost the same functionality as overlayfs. The big >difference between the

Re: Drop support to compressed modules?

2012-09-23 Thread Jan Engelhardt
On Friday 2012-09-21 23:41, Lucas De Marchi wrote: > >While fixing a bug in kmod related to using compressed modules (that >already existed in module-init-tools) we stopped to think about these >questions. Dave made a couple of benchmarks and performance wise it's >better to use uncompressed modul

Re: RFE: tty color features

2012-09-25 Thread Jan Engelhardt
On Tuesday 2012-09-25 08:01, Dave Yost wrote: >It would be nice to be able to specify fg/bg colors at the tty level, >so that echoed characters can be colorized. The tty layer does not know what $TERM is used, so it cannot reliably produce any codes. But you can edit GNU screen because it has t

fixdep ought to be compiled with -D_FILE_OFFSET_BITS

2013-08-29 Thread Jan Engelhardt
Because fixdep is compiled without -D_FILE_OFFSET_BITS=64, a 32-bit fixdep (in a chroot build root, for example) may fail to run on a 64-bit host system if any file has an inode larger than 2^32, which can easily happen (in my case, on xfs): [ares07:~/rpmbuild/BUILD/kernel-pae-3.10.9~jng20/linux

Re: Introducing libgadget 0.0.1

2013-09-11 Thread Jan Engelhardt
On Wednesday 2013-09-04 19:25, Matt Porter wrote: >With the move to configfs for creation of arbitrary USB composite gadgets, >I found myself wanting a simple C library to configure and parse gadgets >in a system. It has no other dependencies other than libc itself. > >It can be found at: > >

Re: [PATCH 11/12] netfilter: Remove extern from function prototypes

2013-09-28 Thread Jan Engelhardt
On Monday 2013-09-23 20:37, Joe Perches wrote: >There are a mix of function prototypes with and without extern >in the kernel sources. Standardize on not using extern for >function prototypes. > >Function prototypes don't need to be written with extern. >extern is assumed by the compiler. Its us

Re: linux-user-chroot 2012.2

2012-09-09 Thread Jan Engelhardt
On Monday 2012-08-13 20:10, Andy Lutomirski wrote: > >One of these days, I intend to resurrect my unprivileged chroot kernel >patches. My current thought is to add a new syscall weak_chroot, >which should have these properties: >[...] >3. Can't be used to break out of chroot jail. > >The interfac

Re: [PATCH] Add mach-specific includes

2012-09-09 Thread Jan Engelhardt
On Friday 2012-08-31 15:45, Michal Marek wrote: >> # Build header package >> (cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl > >> "$objtree/debian/hdrsrcfiles") >> (cd $srctree; find arch/$SRCARCH/include include scripts -type f >> >> "$objtree/debian/hdrsrcfiles") >>

Re: [PATCH 07/13] overlay: overlay filesystem documentation

2012-09-09 Thread Jan Engelhardt
On Wednesday 2012-08-15 17:48, Miklos Szeredi wrote: >[...] >+This is most obvious from the 'st_dev' field returned by stat(2). >+ >+While directories will report an st_dev from the overlay-filesystem, >+all non-directory objects will report an st_dev from the lower or >+upper filesystem that is p

Re: [PATCH 2/2] brd: RAM block module is called 'brd'

2012-09-09 Thread Jan Engelhardt
On Tuesday 2012-08-21 17:10, Paul Bolle wrote: > >2) "modinfo rd" doesn't work. Apparently one needs to feed modinfo the >actual module name and not an alias. Is that by design? I would say so, because you can call modprobe --resolve-alias rd to figure out the actual module to any given

Re: [PATCH] strings: helper for maximum decimal encoding of an unsigned integer

2012-09-09 Thread Jan Engelhardt
On Tuesday 2012-08-21 23:29, J. Bruce Fields wrote: >I've seen a couple examples recently where we've gotten this wrong. >Maybe something like this would help? Is there some better way? >(Approximation due to Jim Rees). > >+/* >+ * length of the decimal representation of an unsigned integer. Jus

Re: [patch 7/7] fs, notify: Add procfs fdinfo helper v6

2012-12-09 Thread Jan Engelhardt
On Saturday 2012-11-17 00:56, Andrew Morton wrote: >> | pos: 0 >> | flags:0200 >> | inotify wd:3 ino: 9e7e >> | inotify wd:2 ino: a111 >> | inotify wd:1 ino:6b149[...] > >This is a lousy output format. It's sort-of like

Re: Read starvation by sync writes

2012-12-11 Thread Jan Engelhardt
On Monday 2012-12-10 23:12, Jan Kara wrote: > > I was looking into IO starvation problems where streaming sync writes (in >my case from kjournald but DIO would look the same) starve reads. This is >because reads happen in small chunks and until a request completes we don't >start reading further

Re: [PATCH] vfs: update atimes over one day in the past or future

2012-12-25 Thread Jan Engelhardt
On Tuesday 2012-12-18 22:14, Dave Chinner wrote: > >> >> CC: sta...@vger.kernel.org >> >> --- >> >> fs/inode.c | 7 --- >> >> 1 ??? 4 ???(+)? 3 ???(-) >> > >> > There's something wrong with the character encoding you are using... >> >> Chinese locale, but proba

Potentially missing "else"

2013-08-07 Thread Jan Engelhardt
nges up to e4523541e7f26457cf7078d5f30e091d1b24e3a9: depmod: add missing "else" clause (2013-08-07 23:50:51 +0200) -------- Jan Engelhardt (1): depmod: add missing "else" clause libkmod/libkmod-config.c | 2 +- tools/depmod.c

[PATCH] depmod: add missing "else" clause

2013-08-07 Thread Jan Engelhardt
It occurred to an openSUSE user that our mkinitrd would throw a warning when used with kmod: libkmod: conf_files_list: unsupported file mode /dev/null: 0x21b6 Grepping for the error message revealed that there might be a missing "else" keyword here, since it is unusual to put an "if" directly aft

Re: awful kconfig help texts.

2012-08-01 Thread Jan Engelhardt
On Wednesday 2012-08-01 09:43, Thierry Reding wrote: >> > >> > PWM Support (PWM) [N/y/?] (NEW) ? >> > >> > CONFIG_PWM: >> > This enables PWM support through the generic PWM framework. >> >> Oh, there's one more enlightening sentence in the help: >> >> "You only need to enable this, if you also

Re: [vmw_vmci 11/11] Apply the header code to make VMCI build

2012-08-02 Thread Jan Engelhardt
On Friday 2012-07-27 12:34, Sam Ravnborg wrote: >> +#ifndef _VMCI_COMMONINT_H_ >> +#define _VMCI_COMMONINT_H_ >> + >> +#include >> +#include > >Use inverse chrismas tree here. >Longer include lines first, and soret alphabetically when >lines are of the same length. So that's where unreadable in

Re: [RFC PATCH] netconsole.txt: "nc" needs "-p" to specify the listening port

2012-08-02 Thread Jan Engelhardt
On Friday 2012-07-27 08:35, Dirk Gouders wrote: >diff --git a/Documentation/networking/netconsole.txt >b/Documentation/networking/netconsole.txt >index 8d02207..ffe30a7 100644 >--- a/Documentation/networking/netconsole.txt >+++ b/Documentation/networking/netconsole.txt >@@ -52,7 +52,7 @@ initiali

Re: [PATCH] fat: Refactor shortname parsing

2012-08-03 Thread Jan Engelhardt
On Tuesday 2012-07-03 13:14, Steven J. Magnani wrote: >Nearly identical shortname parsing is performed in fat_search_long() >and __fat_readdir(). Extract this code into a function that may be >called by both. > >v2: Attempt to clarify difference between vfat and msdos parsing. >Remove decision

Re: [PATCH] fat: Refactor shortname parsing

2012-08-03 Thread Jan Engelhardt
On Friday 2012-08-03 17:06, OGAWA Hirofumi wrote: >>>+static inline unsigned char fat_tolower(unsigned char c) >>>+{ >>>+return ((c >= 'A') && (c <= 'Z')) ? c+32 : c; >>>+} >>>+ >> >> The kernel already has a tolower() function, can that not be used? > >tolower() is not exactly same, right? e.

Re: [PATCH] fs: Introducing Lanyard Filesystem

2012-08-22 Thread Jan Engelhardt
On Sunday 2012-08-19 15:34, Dan Luedtke wrote: >I analyzed about 600k file stored on various removable storage devices. >80 volunteers sent in data about their devices, generated by a program >(windows) and scripts (linux, bsd, osx) I wrote for that purpose. The >data shows that people use more

Re: [PATCH v3 2/9] rbtree: add __rb_change_child() helper function

2012-08-23 Thread Jan Engelhardt
On Tuesday 2012-08-21 00:17, Andrew Morton wrote: > >If we have carefully made a decision to inline a function, we should >(now) use __always_inline. >If we have carefully made a decision to not inline a function, we >should use noinline. > >If we don't care, we should omit all such markings. >Thi

Re: [ANNOUNCE] kmod 10

2012-09-16 Thread Jan Engelhardt
On Thursday 2012-09-06 21:37, Lucas De Marchi wrote: > >kmod 10 is out: > >ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/kmod-10.tar.xz >ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/kmod-10.tar.sign make check fails here with glibc-2.15, gcc-4.7, x86_64, due to what seems to be duplicated

Re: [RFC/PATCH 2/2] block: Adding ROW scheduling algorithm

2012-09-18 Thread Jan Engelhardt
On Monday 2012-08-06 18:35, Jeff Moyer wrote: >Tatyana Brokhman writes: > >> This patch adds the implementation of a new scheduling algorithm - ROW. >> The policy of this algorithm is to prioritize READ requests over WRITE >> as much as possible without starving the WRITE requests. > >Perhaps you

Re: "Inconsistent kallsyms data" error

2012-08-09 Thread Jan Engelhardt
On Saturday 2012-07-07 23:40, Michal Marek wrote: >index cd9c6c6..4629038 100644 >--- a/scripts/link-vmlinux.sh >+++ b/scripts/link-vmlinux.sh >@@ -210,8 +210,8 @@ if [ -n "${CONFIG_KALLSYMS}" ]; then > mksysmap ${kallsyms_vmlinux} .tmp_System.map > > if ! cmp -s System.map .tmp_Syste

Re: [PATCH] MPILIB: Provide count_leading/trailing_zeros() based on arch functions

2012-08-10 Thread Jan Engelhardt
On Saturday 2012-07-21 02:46, David Miller wrote: >> Arnd Bergmann wrote: >> >>> I don't generally like to put stuff into asm-generic when it's unlikely >>> to be overridden by architectures. It would really belong into >>> include/linux, but then again we have all the other bitops in asm-generi

Re: Regression - /proc/kmsg does not (always) block for 1-byte reads

2012-08-10 Thread Jan Engelhardt
On Saturday 2012-07-07 23:19, Kay Sievers wrote: >On Fri, Jul 6, 2012 at 10:30 PM, Linus Torvalds > wrote: >> Kay, this needs to be fixed. >> >> Suggested fix: just use the 'seq_printf()' interfaces, which do the >> proper buffering, and allow any size reads of various packetized data. > >I'll hav

Re: Compiling with 2.6.25-rc2 with binutils 2.17 fails?

2008-02-16 Thread Jan Engelhardt
On Feb 16 2008 17:27, Rob Landley wrote: >The build does this: >> VDSOSYM arch/x86/vdso/vdso32-syms.lds >> --- - Fri Feb 15 23:38:41 2008 >> +++ arch/x86/vdso/vdso32-int80-syms.lds Fri Feb 15 23:38:41 2008 >> @@ -0,0 +1,5 @@ >> +VDSO32_PRELINK = 0x0; >> +VDSO32_rt_sigreturn = 0x040c; >> +VDSO3

Re: 2.6.25-rc1/2 CD/DVD burning broken

2008-02-17 Thread Jan Engelhardt
On Feb 18 2008 00:21, Joerg Schilling wrote: > >> changing ide-cd (take 4)] I cannot burn any CD/DVD any more, getting the >> following error from wodim: > >> Errno: 0 (Success), write_g1 scsi sendcmd: no error >> CDB: 2A 00 00 00 00 00 00 00 1F 00 >> status: 0x2 (CHECK CONDITION) >> Sense B

Re: 2.6.25-rc1/2 CD/DVD burning broken

2008-02-18 Thread Jan Engelhardt
On Feb 18 2008 12:28, Joerg Schilling wrote: > >> >This fragment is much too short to allow to judge on possible reasons. >> >There is a high probability that your problem is caused by the cdrecord >> >fork called "wodim". >> > >> [...] >> > >> >As a general advise: if you have problems, always fi

Re: 2.6.25-rc1/2 CD/DVD burning broken

2008-02-18 Thread Jan Engelhardt
On Feb 18 2008 11:31, Frans Pop wrote: >> > >> > There is also the 100% certainty that this reply was from a known troll >> > and should just be ignored. >> >> That was rude, crude and uncalled for. > >I have no problems with my reply being called "rude" or "crude". After all, >I wasn't even remo

Re: Where to put adapters

2008-02-19 Thread Jan Engelhardt
On Feb 19 2008 08:01, Karl Dahlke wrote: > >Now that notifiers are in, (yay!), people are going to start writing adapters >for visually and motor impaired individuals. >I suggest we place them in drivers/adapters in the source tree, Umph, that sounds a bit generic. Network cards are sometimes ref

Re: adapter, what's in a name

2008-02-20 Thread Jan Engelhardt
On Feb 19 2008 18:16, Karl Dahlke wrote: > >I completely understand your point about the word adapter. >It is highly overloaded, to the point that it is almost meaningless. >How about "accessibility"? >Drivers and modules designed to make linux more accessible >could be placed in drivers/accessibi

Re: vfat32 Free Cluster Count Update

2008-02-20 Thread Jan Engelhardt
On Feb 19 2008 19:23, OGAWA Hirofumi wrote: > >This problem was introduced by it ignores a free cluster count (not >"usefree"). If we was not using "usefree" option, FAT doesn't trust the >"free cluster count" anymore. > >So, it doesn't update until re-count. Um.. yes, it's a bit >problem. Ah.. i

Re: very poor ext3 write performance on big filesystems?

2008-02-20 Thread Jan Engelhardt
On Feb 18 2008 10:35, Theodore Tso wrote: >On Mon, Feb 18, 2008 at 04:57:25PM +0100, Andi Kleen wrote: >> > Use cp >> > or a tar pipeline to move the files. >> >> Are you sure cp handles hardlinks correctly? I know tar does, >> but I have my doubts about cp. > >I *think* GNU cp does the right thi

Re: adapter, what's in a name

2008-02-20 Thread Jan Engelhardt
On Feb 20 2008 10:38, Stefan Richter wrote: >Karl Dahlke wrote: >> The longer I stay on this list, the more I will learn. >> But it's high volume, so I may not be able to stay for long. > >Because of the high volume at this list, it is essential that > - you keep everyone who posted in a tread in

Re: [PATCH] Document huge memory/cache overhead of memory controller in Kconfig

2008-02-20 Thread Jan Engelhardt
On Feb 20 2008 20:50, Balbir Singh wrote: >John Stoffel wrote: >> I know this is a pedantic comment, but why the heck is it called such >> a generic term as "Memory Controller" which doesn't give any >> indication of what it does. >> >> Shouldn't it be something like "Memory Quota Controller", or

Re: [RFC PATCH 3/8] [NET]: uninline dev_alloc_skb, de-bloats a lot

2008-02-20 Thread Jan Engelhardt
On Feb 20 2008 17:27, Patrick McHardy wrote: >> Striking. How can this even happen? A callsite which calls >> >> dev_alloc_skb(n) >> >> is just equivalent to >> >> __dev_alloc_skb(n, GFP_ATOMIC); >> >> which means there's like 4 (or 8 if it's long) bytes more on the >> stack. For a worst cas

  1   2   3   4   5   6   7   8   9   10   >