On 2/15/06, Arjan van de Ven <arjan@xxxxxxxxxxxxx> wrote:
>
> thanx in advance.
>
you forgot the attachement!
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/
I am sunil's project partner, I am sending attachment.
// struct super_block *ramfs_get_sb(struct file_system_type *fs_type, int flags, const char *dev_name, void *data) { struct super_block *new_sb, *mysb; printk("<0>ramfs_get_sb: Enter\n"); printk("<0>get_sb_nodev\n"); new_sb = get_sb_nodev(fs_type, flags, data, ramfs_fill_super); for(mysb = new_sb;(struct super_block *)mysb->s_list.next != new_sb ; mysb = (struct super_block*)mysb->s_list.next) { printk("<0>************current : %s\n", mysb->s_type->name); if(!strcmp(mysb->s_type->name,"vfat")) break; else ; } printk("<0>************outside my : %s\n", mysb->s_type->name); printk("<0>************outside new : %s\n", new_sb->s_type->name); printk("<0>ramfs_get_sb: Leave\n"); return (new_sb); } // this function is mapped to get_sb for modified ramfs //OUTPUT, when mounted the output is as follows Feb 15 19:58:28 linux kernel: ramfs_get_sb: Enter Feb 15 19:58:28 linux kernel: get_sb_nodev Feb 15 19:58:28 linux kernel: ramfs_fill_super: Enter Feb 15 19:58:28 linux kernel: ramfs_get_inode : Enter Feb 15 19:58:28 linux kernel: Ramfs_get_inode: Assign the inode attributes Feb 15 19:58:28 linux kernel: Ramfs_get_inode: mode,uid,gid,blksize,block,i_mapping->a_ops,time Feb 15 19:58:28 linux kernel: S_IFDIR : directory Feb 15 19:58:28 linux kernel: ramfs_get_inode: Leave Feb 15 19:58:28 linux kernel: d_alloc_root: Allocate root dentry Feb 15 19:58:28 linux kernel: ramfs_fill_super: Leave Feb 15 19:58:28 linux kernel: ************current : myramfs Feb 15 19:58:28 linux kernel: Unable to handle kernel NULL pointer dereference at virtual address 00000000 Feb 15 19:58:28 linux kernel: printing eip: Feb 15 19:58:28 linux kernel: d09df9fa Feb 15 19:58:28 linux kernel: *pde = 00000000 Feb 15 19:58:28 linux kernel: Oops: 0000 [#1] Feb 15 19:58:28 linux kernel: Modules linked in: raif2 thinkpad nfsd exportfs i915 usbserial parport_pc lp parport nvram speedstep_lib freq_table thermal processor fan button battery ac snd_pcm_oss snd_mixer_oss snd_intel8x0 snd_ac97_codec snd_pcm snd_timer snd soundcore snd_page_alloc ipv6 edd usbhid evdev joydev sg st sd_mod sr_mod scsi_mod ide_cd cdrom intel_agp agpgart ehci_hcd uhci_hcd hw_random binfmt_misc subfs nls_utf8 nls_cp437 vfat fat via_rhine mii dm_mod usbcore reiserfs Feb 15 19:58:29 linux kernel: CPU: 0 Feb 15 19:58:29 linux kernel: EIP: 0060:[<d09df9fa>] Tainted: G U VLI Feb 15 19:58:29 linux kernel: EFLAGS: 00010206 (2.6.8-24-default ) Feb 15 19:58:29 linux kernel: EIP is at ramfs_get_sb+0x4a/0xe0 [raif2] Feb 15 19:58:29 linux kernel: eax: 00000000 ebx: c036b774 ecx: c8ac3ed4 edx: cded7800 Feb 15 19:58:29 linux kernel: esi: d09dfee8 edi: d09dfeaa ebp: d09dfeaa esp: c8ac3ed8 Feb 15 19:58:29 linux kernel: ds: 007b es: 007b ss: 0068 Feb 15 19:58:29 linux kernel: Process mount (pid: 5053, threadinfo=c8ac2000 task=c1944550) Feb 15 19:58:29 linux kernel: Stack: cded7800 fffffff4 c2865800 d09e1a00 00000000 c0156f47 00000000 00000000 Feb 15 19:58:29 linux kernel: ca428000 00000000 c8aab000 00000000 c8aab005 ca428000 c01698fa 00000000 Feb 15 19:58:29 linux kernel: 00000000 00000000 c8ac3f50 ca428000 00000000 c8ac3f50 00000000 c0169ef2 Feb 15 19:58:29 linux kernel: Call Trace: Feb 15 19:58:29 linux kernel: [<c0156f47>] do_kern_mount+0x87/0x180 Feb 15 19:58:29 linux kernel: [<c01698fa>] do_new_mount+0x5a/0x90 Feb 15 19:58:29 linux kernel: [<c0169ef2>] do_mount+0x172/0x1c0 Feb 15 19:58:29 linux kernel: [<c013a3b4>] __alloc_pages+0x134/0x3b0 Feb 15 19:58:29 linux kernel: [<c0169ca6>] exact_copy_from_user+0x26/0x60 Feb 15 19:58:29 linux kernel: [<c016a26c>] sys_mount+0x6c/0xc0 Feb 15 19:58:29 linux kernel: [<c0105c69>] sysenter_past_esp+0x52/0x79 Feb 15 19:58:29 linux kernel: Code: f9 9d d0 89 da 8b 4c 24 24 89 f0 e8 d1 73 77 ef 89 c3 89 44 24 0c 83 c4 0c 39 00 0f 84 8b 00 00 00 bd aa fe 9d d0 8b 43 20 89 ef <8b> 08 51 68 af fe 9d d0 e8 19 d0 73 ef 58 5a 8b 53 20 8b 32 ac Feb 15 19:59:01 linux /usr/sbin/cron[5066]: (root) CMD ( rm -f /var/spool/cron/lastrun/cron.hourly)