/srv/irclogs.ubuntu.com/2006/01/24/#ubuntu-kernel.txt

mjg59Marvell haven't been too bad in the past, AFAIK12:04
=== mgalvin [n=mgalvin@ubuntu/member/mgalvin] has joined #ubuntu-kernel
=== zyga [n=zyga@ubuntu/member/zyga] has joined #ubuntu-kernel
zygahello12:34
zygaI'm trying to write a fuse based fs with some dynamic files12:34
zygaI want something similar to /proc/foo where I can use cat to see the contents12:35
zygawhen I make my virtual files have size 0 and mode with I_SFREG I cannot cat it12:36
zygaI need to supply some non-zero size to be able to read the content12:36
zygaI was wondering if /proc is using some special way to handle this12:36
BenCthe size shouldn't have anything to do with it12:36
zygastat'ing files in proc and my fs does not show any difference :/12:36
BenCread() operations don't even pay attention to the filesize12:37
zygaBenC: maybe proc is using mmap interface12:37
BenCcat doesn't12:37
BenCread() is read()12:37
zygaBenC: true, I didn't test that with a dumb program that relies only on read12:37
zygaBenC: still, as long as stat returns 0 in st_size I cannot see the contents with cat12:37
BenCthere's lots of files in proc and /sys that show zero size and cat works on them just fine12:38
zygaBenC: that's why I'm asking ... I don't know why this happens12:38
BenCI'm doubting that has anything to do with it, but I'm also not familiar with fuse, so I'm not the right person to ask12:38
zygamaybe that's something fuse-specific12:38
zygaI see a sequence of stat, open and release (final close)12:41
zygaI never see any reads12:41
BenCdid any of those fail?12:48
BenCperhaps the open failed?12:48
BenCstrace cat /your/file12:49
BenCshould tell you if the open failed for some reason12:49
BenCbrb12:49
zygaBenC, no12:52
=== BenC [n=bcollins@debian/developer/bcollins] has joined #ubuntu-kernel
zygaBenC: I'm starting to see the problem01:01
zygathe call doesn't fail, python has mixed the stat structure somewhat01:01
zyga(python-fuse)01:01
zygaI don't really know which field gets passed where, I'll sort this out soon01:01
=== tkup|bed [n=tkup@cpe-67-10-255-86.houston.res.rr.com] has joined #ubuntu-kernel
zygawhat should be the st_size of a directory?01:10
crimsunzyga: hmm, in-kernel fuse?01:36
crimsunI see fuse 2.5.001:36
zygacrimsun: ?01:38
crimsunzyga: what's triggering the bug?01:38
zygacrimsun: I don't know yet01:38
zygacrimsun: it seems that for files that have st_size == 0 the read function is never called01:39
zygaI'm looking at python2.4-fuse now01:39
crimsunsorry, I should have been more precise: What's your test case? (I guess you partially answered that)01:39
crimsunfuse 2.5.0 has a bunch of fixes01:39
=== crimsun git pulls
zygacrimsun: I'm using 2.4.201:40
zygapython-fuse is automatically setting blocksize to 409601:41
zygaas well as hum...01:42
zygait's broken :P01:42
zygacrimsun: by fuse 2.5.0, you ment fuse not, python-fuse, right?01:47
crimsunright.01:47
zygacrimsun, BenC: thanks for the help02:19
zygait seems to be a fuse issue but I'm not 100% sure yet02:19
zygaI call it a day, night :)02:19
=== ubuntulog [i=ubuntulo@trider-g7.fabbione.net] has joined #ubuntu-kernel
=== Topic for #ubuntu-kernel: Ubuntu kernel development discussion ONLY | New git tree for dapper: https://wiki.ubuntu.com/KernelGitGuide | 2.6.15-12.17 uploaded (I have no clever code name) | Daily Diet of Destruction: http://people.ubuntu.com/~bcollins/kernels-daily/
=== Topic (#ubuntu-kernel): set by BenC at Wed Jan 18 02:16:17 2006
=== psusi [n=phreak@54.161.205.68.cfl.res.rr.com] has joined #ubuntu-kernel
=== rikai-2 [n=gtk2@pool-70-105-231-88.port.east.verizon.net] has joined #ubuntu-kernel
=== JaneW [n=JaneW@dsl-146-130-233.telkomadsl.co.za] has joined #ubuntu-kernel
=== chmj [n=chmj@196.44.1.98] has joined #ubuntu-kernel
=== rikai-2 [n=gtk2@pool-70-105-231-88.port.east.verizon.net] has joined #ubuntu-kernel
=== rikai [n=gtk2@pool-70-105-231-88.port.east.verizon.net] has joined #ubuntu-kernel
=== CataEnry [n=Enrico@host232-21.pool8250.interbusiness.it] has joined #ubuntu-kernel
MithrandirBenC: have you had a chance to look at the unionfs problems on PPC in the live cd?09:58
=== ubuntulog [i=ubuntulo@trider-g7.fabbione.net] has joined #ubuntu-kernel
=== Topic for #ubuntu-kernel: Ubuntu kernel development discussion ONLY | New git tree for dapper: https://wiki.ubuntu.com/KernelGitGuide | 2.6.15-12.17 uploaded (I have no clever code name) | Daily Diet of Destruction: http://people.ubuntu.com/~bcollins/kernels-daily/
=== Topic (#ubuntu-kernel): set by BenC at Wed Jan 18 02:16:17 2006
=== doko [n=doko@dslb-084-059-108-033.pools.arcor-ip.net] has joined #ubuntu-kernel
=== zul [n=chuck@CPE0006258ec6c1-CM000a73655d0e.cpe.net.cable.rogers.com] has joined #ubuntu-kernel
zulheylo02:39
BenCMithrandir: should be fixed in -1302:39
=== CataEnry [n=cataenry@host232-21.pool8250.interbusiness.it] has joined #ubuntu-kernel
=== mgalvin [n=mgalvin@ubuntu/member/mgalvin] has joined #ubuntu-kernel
MithrandirBenC: great, thanks03:08
BenCMithrandir: #ubuntu-meeting03:08
Mithrandiralready there03:09
=== slushpupie [i=jay@slushpupie.com] has joined #ubuntu-kernel
JaneWmjg59: PING03:31
=== zooko [n=user@blk-215-95-202.eastlink.ca] has joined #ubuntu-kernel
zookoGreetings, folk of #ubuntu-kernel!03:59
zookoI'm considering installing the dapper gcc and dapper linux-source on my breezy system and compiling the kernel.  If I do so, do you want to hear any resulting bug reports?04:00
BenCit wont work well04:08
BenCit would be the same as installing the dapper kernel images from breezy04:08
BenCyou would be better off just upgrading just the kernel image from dapper (and it's dependencies)04:08
BenCthe kernel really doesn't care where it's compiled, it's the system it's running on that really matters04:09
BenC"installing the dapper kernel images" (not from breezy)04:09
=== lamont__ [n=lamont@mib.fc.hp.com] has joined #ubuntu-kernel
=== CataEnry [n=cataenry@host232-21.pool8250.interbusiness.it] has joined #ubuntu-kernel
zookoBenC: thanks for the suggestions.04:45
=== ..[topic/#ubuntu-kernel:BenC] : Ubuntu kernel development discussion ONLY | New git tree for dapper: https://wiki.ubuntu.com/KernelGitGuide | 2.6.15-13.18 uploaded (The "Stick it to da man" Release) | Daily Diet of Destruction: http://people.ubuntu.com/~bcollins/kernels-daily/
zulslacker04:50
zookoHm.  I guess I'll go for gcc 4.0.whateverisindapper04:53
BenCare you still going to rebuild dapper kernel source in breezy?04:53
zookoYes.04:54
BenCJust want to make sure you realize that it's not going to build a kernel any different than what is in dapper04:54
BenCit will be the same kernel (assuming you use the same .config's)04:54
zookoUnderstood.  Although I'll have slightly different configs...04:54
zookoI don't intend to request support from you on this.04:54
BenCI wasn't going to give any, but I just hate seeing someone waste time :)04:55
zookoI consider this channel to be for development, so I really mentioned it in case someone would say something like "Oh, please test such and such a bug while you do that" or some such.04:55
zooko:-)04:55
BenCI started 2.6.15-dapper kernel development on strictly breezy systems, so I know the outcome...your devices wont autoload, udev will become dumb and you'll typically be unhappy04:56
zookoWhat's the IRC channel for Ubuntu-using-bzr?  I'm interested in listening to how people use bzr.04:56
zookoHm.04:56
BenC#bzr? note sure04:56
zookoThat does sound intimidating.04:56
zookoMaybe I can avoid some of those problems by updating my udev package to dapper...04:57
zookoBut now I am discouraged.  Maybe I'll stick with 2.6.12...04:57
zookoOTOH it can't hurt to try.  ;-)04:58
BenCit wont kill you thats for sure :)04:59
zulunless a large wooden mallet pops out of your computer and hits you over the head...its a new driver in 2.6.1504:59
BenCfortunately with udev broken, it never gets loaded05:00
zullol05:01
BenCTry to avoid "modprobe kbd-electrocution" though05:01
infinityBenC: Erk, I don't see an ipw2100 sync in that changelog.05:01
BenCinfinity: it was done...I thought I did the changelog entry05:02
BenCbut it's surely done (1.1.4)05:02
infinityGuess I should have gone through the motions of reassigning that bug...05:02
infinityOh, it's done?.. Cool.05:02
infinityAlright.  I'm on VAC as of now.05:03
infinitylamont's your bitch now.05:04
lamont__"By your command"05:04
=== rikai [n=gtk2@pool-70-105-231-88.port.east.verizon.net] has joined #ubuntu-kernel
=== smurf [n=smurf@debian/developer/smurf] has joined #ubuntu-kernel
=== rikai-2 [n=gtk2@pool-71-241-195-206.port.east.verizon.net] has joined #ubuntu-kernel
=== rikai-2 [n=gtk2@pool-71-241-195-206.port.east.verizon.net] has joined #ubuntu-kernel
dokoBenC, infinity, please could you have a look if iptables is worth updating? ftp://ftp.netfilter.org/pub/iptables/changes-iptables-1.3.4.txt05:50
BenCis that the userspace stuff?05:50
BenCsupposedly, our userspace and kernel drivers are out of sync terribly05:51
MithrandirBenC: do you think a patch to add a label to swsusp images would have > 0 chance of being accepted upstream?05:52
BenCwhat sort of label?05:52
Mithrandirfree-text, max 32 chars.05:52
Mithrandirunused by the kernel, but we could use it for stuff like "make sure you're resuming from the image that says "Ubuntu-$(uname -r)" and not the one which says "SuSE-$(uname -r)"05:53
BenCguess it all depends on what the purpose is05:53
Mithrandirsimilar, we would have support for suspend on the live cd.  Suspend to an USB stick, resume from that later.05:53
BenCah, that does sound cool05:54
Mithrandiryeah, I thought so.05:54
BenCI would include it in our kernel, and I can push it upstream if you want05:54
MithrandirI have the kernel patch mostly done, but would need to test it, naturally.05:54
dokoBenC: iptables is userspace06:02
BenCdoko: doesn't it depend on some kernel stuff (kernel headers or something)?06:03
BenCkernel-team@l.u.c has a user reporting problems with sync between kernel headers and iptables userspace06:03
dokoBenC: it does06:06
BenCwill the new version fix that?06:06
dokoBenC: I didn't check, I just scanned dapper/main for packages with new upstream versions06:10
BenCif it helps that situation, then I'd say it's a good candidate for new upstream version06:10
BenCwe already know the current package/setup is broken06:11
=== zooko [n=user@blk-215-95-202.eastlink.ca] has joined #ubuntu-kernel
zookoSo you know how I planned to compile 2.6.15-12.17 myself, on breezy?  And BenC warned me about this?06:43
zookoWell, instead I installed the kernel image from dapper, and all of its dependencies.06:44
zookoIt *almost* works.  The only breakage that I can find is that one of my four hard drives is not detected.06:44
zookoUnfortunately, I really need that one, so now I must dig myself out of this situation...06:44
zookoHm.  No /proc/config.gz.06:45
zookoAh, and when I install linux-headers-2.6.15-12 I get this bug which Ben Collins has already assured me is impossible...06:53
zookohttps://launchpad.net/distros/ubuntu/+source/linux-source-2.6.12/+bug/638406:53
zookoUh-oh.  I upgraded dpkg and debfoster in order to see if this would make Ben's assertion true.06:58
zookoUnfortunately it made it worse -- now I cannot back out of this situation anymore by using "dpkg --purge".06:58
zookoOh yes I can.  I just need to dpkg --purge the *other* package instead of the new and uninstallable one.  Good.06:59
=== zooko [n=user@blk-215-95-202.eastlink.ca] has joined #ubuntu-kernel
zookoI do hope that linux-image-2.6.12-9-amd64-k8 from dapper universe will recognize my fourth hard drive so that I can copy my work from it.08:01
zulshouldnt you have a backup plan?08:36
=== ds [n=nnds@dsl092-014-052.sfo1.dsl.speakeasy.net] has joined #ubuntu-kernel
=== aLeSD [n=alex@76.Red-88-5-94.staticIP.rima-tde.net] has joined #ubuntu-kernel
aLeSDhi akk08:45
aLeSDall08:45
aLeSDI have a question08:45
aLeSDwhy default kernels in ubuntu don't use preemtive?08:46
aLeSDanother one is I'm compiling the kernel by hands... but it gives a kernel panic on rootfs mounting ... I use the usually make && make modules_install. I think it's because the support for the filesystem in ubuntu kernel is all modular (the most). Now how could I create an initd file by hands?08:47
mjg59BenC: Waa NetworkManager oopses my kernel08:48
Mithrandirhmm, they don't?08:48
mjg59(-12, -11 was fine)08:48
Mithrandir$ grep CONFIG_PREEMPT= /boot/config-2.6.15-12-68608:48
MithrandirCONFIG_PREEMPT=y08:48
BenCmjg59: try -13, it should fix it08:49
aLeSDMithrandir: wow ... I have only the 6.12 in my repository08:50
BenCdaper kernels have preempt, not breezy08:51
BenCdapper08:51
aLeSDok... could I compile my kernel by hand or I have to use make-kpkg08:52
aLeSD?08:52
aLeSDok ... stupid question... but It's my first time in ubuntu ... and i don't know how is it.. 08:53
BenCyou can do whatever you want, but make-kpkg is prefered08:53
aLeSDok I understand .-... make-kpkg08:54
mjg59BenC: Is that in the archive?08:54
BenCjust uploaded today, so give it a few hours08:55
mjg59Ok08:55
BenCI assume you are getting an oops about "BUG in ...ieee80211"?08:55
mjg59Yup08:55
=== BenC [n=bcollins@debian/developer/bcollins] has joined #ubuntu-kernel
=== zooko [n=user@blk-215-95-202.eastlink.ca] has joined #ubuntu-kernel
zookoFor what it is worth, when I upgrade to 2.6.15 from dapper, everything works except for my promise raid controller 0000:00:08.0 RAID bus controller: Promise Technology, Inc. PDC20378 (FastTrak 378/SATA 378) (rev 02)09:49
zooko09:49
cjbzooko: Is there a module for it?  Anything in dmesg?09:53
zookoThere is a sata_promise module loaded.09:57
zooko/var/log/syslog:Jan 19 13:33:13 yumyum kernel: [   37.708288]  sata_promise 0000:00:08.0: version 1.0309:57
zooko09:57
zooko"1.03" is the version of the promise bios.  Not sure if that is the same number as in my syslog there.09:57
BenCmodprobe sd_mod10:10
zookono output.  sd_mod now appears in the output of lsmod.10:12
zookoIt might or might not have been in lsmod before that.10:12
=== zooko is now known as zookofamilytime
BenCare the drives connected sata drivers, or just ata?10:34
BenCjust so happens that I got 4 promise 150 SATA controller cards in the mail from a very nice user today :)10:35
BenCmy ATA drive doesn't appear to be recognized, but I assume that's because the controller driver doesn't support it (or maybe the controller doesn't)10:35
tkuphow can I use a function from the kernel include files inside my module? I tried including the header file itself, but it didn't solve the problem. For instance, I included linux/swap.h but couldn't use any of the extern functions. Can anyone tell what I'm doing wrong?10:57
=== makx [n=max@baikonur.stro.at] has joined #ubuntu-kernel
BenCtkup: explain how you can't use it11:12
BenCis it showing as unresolved when you load the module?11:12
BenCif so, that's because the functions aren't exported for module use (with EXPORT_SYMBOL())11:12
tkupBenC, that's right. the function isn't exported out. Does it mean that there's no other way but to reimplement that function?11:14
BenCyou can add the EXPORT_SYMBOL to the file where the function is, and recompile the kernel11:14
tkupor link against that module that implements it,,,11:14
cjbtkup: Well, the obvious answer is to export it yourself, and persuade the kernel maintainers that it's needed by your code.11:15
BenCbut you really should email linux-kernel@vger.kernel.org to see if your use of the function is correct or not11:15
cjbIf you don't want to persuade them of that because you're not writing code for public consumption, it shouldn't be a problem to build your own kernel.  ;-)11:15
BenCtkup: unresolved functions in kernel modules like this isn't a matter of linker (ld) problems, it's the kernel enforcing what modules are allowed to do11:15
tkupBenC, cjb  I'm interested in add_to_swap.  the module is already GPL but nothing to write home about... just working on something I thought was interesting to see it work11:16
BenCI wouldn't reimplement the function (could create compatibility problems later on)11:17
BenCreally, you should email l-k about the function you are using, if you are interested in releasing the module11:17
BenCsee what they say about it, and maybe they could suggest the right way to handle it11:18
tkupI guess I could do what you said for starters and see if the module is interested before I write lkml11:18
tkupBenC, I'll email lkml and see if I should be using it at all11:18
tkupthanks11:19
BenCnp11:20
BenCsweet, I got pata working on the sata_promise driver11:49

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!