Re: Stackable file systems and NFS

2012-08-16 Thread Ranjan Sinha
Hi, On Tue, Aug 14, 2012 at 4:19 PM, Rajat Sharma fs.ra...@gmail.com wrote: Try mounting with noac nfs mount option to disable attribute caching. ac / noac Selects whether the client may cache file attributes. If neither option is specified (or if ac is specified), the client caches file

Debug linker with GDB

2012-08-16 Thread Geraint Yang
Hello everyone. I am debugging the dynamic library linker in kernel with gdb, when the kernel is going to execute a program which uses *.so, the linker will be loaded and load other required libraries before the program is executed, because the load address of ld(linker) is 0x, the kernel

Re: Stackable file systems and NFS

2012-08-16 Thread Rajat Sharma
Correct me if I am reading something wrong, in your program listing, while printing the buffer you are passing a total_count variable, while vfs_read returned value is collected in count variable. debug_dump(Read buffer, buf, total_count); One suggestion, please fill up buf with some fixed known

Re: Stackable file systems and NFS

2012-08-16 Thread Ranjan Sinha
On Thu, Aug 16, 2012 at 1:00 PM, Rajat Sharma fs.ra...@gmail.com wrote: Correct me if I am reading something wrong, in your program listing, while printing the buffer you are passing a total_count variable, while vfs_read returned value is collected in count variable. debug_dump(Read buffer,

Re: Stackable file systems and NFS

2012-08-16 Thread Rajat Sharma
What is the pattern other NFS client is writing to the file? Can't it be a legitimate NUL by any chance? On Thu, Aug 16, 2012 at 1:22 PM, Ranjan Sinha rnjn.si...@gmail.com wrote: On Thu, Aug 16, 2012 at 1:00 PM, Rajat Sharma fs.ra...@gmail.com wrote: Correct me if I am reading something wrong,

Re: Android jelly bean mounting problem

2012-08-16 Thread sandeep kumar
Thanks for your suggestions. The issue is the mounting problem of filesystem. We were trying to mount it on the wrong partition. Thats why the error came. With regards Sandeep On Tue, Aug 14, 2012 at 6:02 PM, Andy Jung ajung...@gmail.com wrote: looks like your mmc block is not formatted in

Re: Stackable file systems and NFS

2012-08-16 Thread Ranjan Sinha
On Thu, Aug 16, 2012 at 1:33 PM, Rajat Sharma fs.ra...@gmail.com wrote: What is the pattern other NFS client is writing to the file? Can't it be a legitimate NUL by any chance? Redirected output of ping. On Thu, Aug 16, 2012 at 1:22 PM, Ranjan Sinha rnjn.si...@gmail.com wrote: On Thu, Aug

Re: need some clarifications concerning rootf mounting

2012-08-16 Thread stl
Thanks for your answer. Ok, here is what I have exactly done: - compiled with my uClibc cross-compiler a simple hello world program. - written a basic config file in linux-2.6.37/usr, creating a dev/console, a /init from /usr/hello and some other dirs. - edited the .config file with

Re: How to understand the macro __init?

2012-08-16 Thread stl
To be more precise, all the content of the .init section will be freed at the end of the boot. (see vmlinux.lds.S) This is done by the function free_initmem() which is an architecture specific function defined in linux-*/arch/arch/mm/init.c. This function frees the memory between the symbols

Re: How to understand the macro __init?

2012-08-16 Thread stl
sorry for the wrong manipulation (resume of the previous mail) As explained before, the symbols and functions defined with __init are only used during boot initialization. Thez will never be used again. So The entire .init section is freed, and this freed memory will become available memory pages

Re: How to understand the macro __init?

2012-08-16 Thread Vijay Chauhan
Hi, On Tue, Aug 14, 2012 at 9:34 AM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: Hi.. :) On Tue, Aug 14, 2012 at 9:14 AM, 王哲 wangzhe5...@gmail.com wrote: i use the __init for function print_k. in my opinion after the fisrt invoking the print_k in the hello_init. the memory of print_k

Re: Stackable file systems and NFS

2012-08-16 Thread Rajat Sharma
So is it truncating the file? i.e. # ping /nfs/somefile On Thu, Aug 16, 2012 at 2:46 PM, Ranjan Sinha rnjn.si...@gmail.com wrote: On Thu, Aug 16, 2012 at 1:33 PM, Rajat Sharma fs.ra...@gmail.com wrote: What is the pattern other NFS client is writing to the file? Can't it be a legitimate NUL

Re: How to understand the macro __init?

2012-08-16 Thread Amarnath Revanna
Hi Ezequiel, On Thu, Aug 16, 2012 at 10:53 PM, Ezequiel Garcia elezegar...@gmail.comwrote: Hi Amar, On Thu, Aug 16, 2012 at 1:08 PM, Amarnath Revanna amarnath.reva...@gmail.com wrote: On the other hand, any other kernel module that you load using insmod or modprobe comes after this

Re: How to understand the macro __init?

2012-08-16 Thread Amarnath Revanna
Just want to add a little more for better understanding: When I spoke about .init section of the final kernel image, please note that this section is going to contain all the __init data (and functions) coming from _All_ the drivers and modules that were included as part of the kernel image.

Re: How to understand the macro __init?

2012-08-16 Thread Ezequiel Garcia
Hey Amar, On Thu, Aug 16, 2012 at 3:39 PM, Amarnath Revanna amarnath.reva...@gmail.com wrote: Just want to add a little more for better understanding: When I spoke about .init section of the final kernel image, please note that this section is going to contain all the __init data (and

Re: How to understand the macro __init?

2012-08-16 Thread Amarnath Revanna
On Fri, Aug 17, 2012 at 12:19 AM, Ezequiel Garcia elezegar...@gmail.comwrote: Hey Amar, On Thu, Aug 16, 2012 at 3:39 PM, Amarnath Revanna amarnath.reva...@gmail.com wrote: Just want to add a little more for better understanding: When I spoke about .init section of the final kernel

network dead/stuck for kernel 2.6.32-279.2.1

2012-08-16 Thread Nitin Sharma
I had my eth0 die with this trace. restarting network didn't work, had to reboot the box. looks like a 2.6.32-279.2.1 bug or related to the eth0 driver? Any pointers would be appreciated. OS: CentOS release 6.3 (Final) 08:24:29 kernel: [ cut here ] 08:24:29 kernel:

Re: network dead/stuck for kernel 2.6.32-279.2.1

2012-08-16 Thread Mulyadi Santosa
Hi... On Fri, Aug 17, 2012 at 5:11 AM, Nitin Sharma nitin...@gmail.com wrote: I had my eth0 die with this trace. restarting network didn't work, had to reboot the box. looks like a 2.6.32-279.2.1 bug or related to the eth0 driver? Any pointers would be appreciated. have you tried with similar