2009-10-04T01:31:37 *** Murmuria has quit IRC 2009-10-04T03:01:16 *** Murmuria has joined #glendix 2009-10-04T03:01:37 anomit, hi! 2009-10-04T03:01:57 howz /net looking? 2009-10-04T06:15:21 *** MichaelRaskin has left #glendix 2009-10-04T06:16:11 *** MichaelRaskin has joined #glendix 2009-10-04T06:52:50 Murmuria, hello...are you there? Sorry, wasn't around when you pinged 2009-10-04T06:59:34 anomit 2009-10-04T07:00:24 Murmuria, so I have been just looking through the netfs.c code, putting in a few printk's here and there to understand the flow 2009-10-04T07:01:08 hmm 2009-10-04T07:01:16 thats how I wrote it too 2009-10-04T07:01:35 made the mistake of deleting them, instead of packing them with #define DEBUG 2009-10-04T07:01:45 I mean, #ifdef 2009-10-04T07:01:51 okay, yes I got it 2009-10-04T07:02:06 so, any initial questions? 2009-10-04T07:03:03 *** FragmentedCurve has quit IRC 2009-10-04T07:03:17 Quite a basic doubt, when we are redirecting the output to suppose /net/cs, where exactly does the "connection" initialization begin? 2009-10-04T07:05:24 well, the entire flow is described in my report (if you can find it) :P /net/cs is the connection server... it only converts IP to the URL... (by contacting the DNS server)... 2009-10-04T07:05:52 the actual connection is done in /net/tcp 2009-10-04T07:05:59 or /net/udp 2009-10-04T07:06:27 did I say IP to URL, I meant the other way round.. :P 2009-10-04T07:06:40 hehe yeah, it should be the other way round 2009-10-04T07:06:45 I'm reading the blog posts you put up on slashnet.wordpress.com. They might give me a better idea, wouldn't they? 2009-10-04T07:06:54 they should 2009-10-04T07:07:05 but the flow of connections are better described in my report... 2009-10-04T07:07:14 wait.. let me point you to the right piece... 2009-10-04T07:07:16 hold.. 2009-10-04T07:08:38 anomit: 4.1.3 explains how connections are made... 2009-10-04T07:08:41 in my report.. 2009-10-04T07:09:10 you can ignore the rc script for now, if it is not intuitive to you.. 2009-10-04T07:09:46 Murmuria, I'm trying to find the report right now :P 2009-10-04T07:09:55 I emailed it to you 2009-10-04T07:09:59 as an attachment 2009-10-04T07:10:17 its not linked online 2009-10-04T07:10:24 oh ok, checking it 2009-10-04T07:10:29 not on my blog, and not on glendix.org 2009-10-04T07:10:58 see the email I had given in response to Anant's email 2009-10-04T07:11:14 you want the report once ahain? 2009-10-04T07:11:30 silly thunderbird, such a small attachment icon :| 2009-10-04T07:11:35 heh 2009-10-04T07:12:31 so, the report is a little too much text for everyone's liking, but once you start reading, you can begin to feel at home... 2009-10-04T07:12:41 I intend on improving the report... 2009-10-04T07:12:48 that's why its not online anywhere 2009-10-04T07:12:53 *** FragmentedCurve has joined #glendix 2009-10-04T07:13:03 I have no problems with text as such when working on something, the more the merrier :) 2009-10-04T07:14:23 so I'll be reading through the whole implementation section, will ping you in case of doubts 2009-10-04T07:14:44 ok... if you want to cut it short for now, 4.1.3 is where you should look... 2009-10-04T07:15:20 actually, read the whole thing 2009-10-04T07:15:23 its better 2009-10-04T07:15:35 okay, I was thinking about the same 2009-10-04T07:17:20 I'll bug you all later when I'm done with it 2009-10-04T07:19:36 I am here... 2009-10-04T07:21:05 anomit, what do you do? 2009-10-04T07:21:26 I'm just an undergraduate student back here in India 2009-10-04T07:21:32 where? 2009-10-04T07:21:44 Manipal Inst of Tech, doing BE in CSE 2009-10-04T07:21:52 in my 7th semester 2009-10-04T07:21:56 aah, ok, nice... 2009-10-04T07:22:04 so that is the one in Banglore, I think... 2009-10-04T07:22:06 right? 2009-10-04T07:22:14 I mean, in Manipal 2009-10-04T07:22:18 Karnataka 2009-10-04T07:22:23 or nto? 2009-10-04T07:22:26 not* 2009-10-04T07:22:26 actually ~400 km away from B'lore, but yes, in Karnataka 2009-10-04T07:22:44 and you are from Bengal? 2009-10-04T07:22:48 yes, right 2009-10-04T07:23:12 I consider Kolkata my hometown... 2009-10-04T07:23:25 my grandparents are there.. I was born there 2009-10-04T07:23:35 nice :) 2009-10-04T07:23:55 so, 7th sem, you must be working towards a final year project then? 2009-10-04T07:24:36 nope, not really, if that's what it looks like :P 2009-10-04T07:25:13 heh.. no, I meant well... anyways... 2009-10-04T07:25:47 I am online tonight.. got some university stuff to catch up on... 2009-10-04T07:26:08 atleast for next 6 hrs... 2009-10-04T07:26:16 great then 2009-10-04T07:26:56 *** Murmuria has quit IRC 2009-10-04T07:27:13 *** Murmuria has joined #glendix 2009-10-04T07:30:23 not that it matters but I'm still in the process of applying for a few external projects for my final semester work 2009-10-04T07:30:26 I wanted to start working on /net because I checked back on the glendix homepagea few days back and saw that it was under active development, so I thought it'd be better if I join a part of the project that already has someone working on it :) 2009-10-04T09:29:47 *** MichaelRaskin has left #glendix 2009-10-04T09:30:37 *** MichaelRaskin has joined #glendix 2009-10-04T10:12:43 *** synchris_ has joined #glendix 2009-10-04T10:18:15 *** synchris_ has quit IRC 2009-10-04T10:25:43 Murmuria, are you there? 2009-10-04T10:29:52 anomit, yes 2009-10-04T10:30:19 Murmuria, so there is a bug in socknet_connect? 2009-10-04T10:31:31 well, inside that function, there is that sock->opt->connect 2009-10-04T10:31:54 enabling that one line causes a segfault 2009-10-04T10:31:55 yes, sock->ops->connect 2009-10-04T10:32:02 so the parameters are wrong, mostly 2009-10-04T10:32:18 but I am doing it like anywhere else in the kernel 2009-10-04T10:32:23 so the technique is right 2009-10-04T10:32:54 oh ok 2009-10-04T10:45:50 anomit, http://lxr.linux.no/#linux+v2.6.30.5/fs/cifs/connect.c#L1744 2009-10-04T10:45:51 Title: LXR / The Linux Cross Reference (at lxr.linux.no) 2009-10-04T10:45:59 they do two things differently... 2009-10-04T10:46:14 they use sock_create_kern() 2009-10-04T10:46:40 and pass 0 as the last argument in the connect() instead of the flags 2009-10-04T10:46:48 looking into that 2009-10-04T10:46:53 I never understood why I was entering the flags 2009-10-04T10:48:01 I just copied that from elsewhere, so I cannot justify using f_flags as an argument there... 2009-10-04T10:48:14 so these two things you can try... 2009-10-04T10:49:02 I see, but shouldn't it have given a compile time error during make if the function signatures didn't match? 2009-10-04T10:49:39 no, the thing is, f_flags is being created by the other function before this 2009-10-04T10:49:44 and it must be an int 2009-10-04T10:49:51 and probably has the value 0 2009-10-04T10:49:56 try printing it 2009-10-04T10:50:21 oksy, trying it in a few minutes, having lunch now :) 2009-10-04T11:17:36 *** anomit has quit IRC 2009-10-04T13:03:13 *** anomit has joined #glendix 2009-10-04T13:12:07 Murmuria: I put EXTRA_CFLAGS = -DBROKEN , that should build the broken code too, right? 2009-10-04T15:45:36 *** anomit has quit IRC 2009-10-04T15:45:48 *** anomit has joined #glendix 2009-10-04T18:39:52 *** anomit has quit IRC 2009-10-04T18:39:56 *** anomit has joined #glendix 2009-10-04T19:14:52 *** Murmuria has quit IRC 2009-10-04T19:15:11 *** Murmuria has joined #glendix