Re: Reg kdb utility

2001-07-03 Thread SATHISH.J

Hi,

I tried to use kdb on my 2.2.14-12 kernel. I was able to compile the file 
/usr/src/linux/arch/i386/kdb/modules/kdbm_vm.c and could get the object
file. When I tried to insert it as a module it givesd the following error
message:

./kdbm_vm.o: kernel-module version mismatch
./kdbm_vm.o was compiled for kernel version .2.14-12
while this kernel is version 2.2.14-12.



Please tell me why this message comes.

Thanks in advance,

Regards,
satish.j








-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Re: Reg kdb utility

2001-07-03 Thread SATHISH.J

Hi,

I tried to use kdb on my 2.2.14-12 kernel. I was able to compile the file 
/usr/src/linux/arch/i386/kdb/modules/kdbm_vm.c and could get the object
file. When I tried to insert it as a module it givesd the following error
message:

./kdbm_vm.o: kernel-module version mismatch
./kdbm_vm.o was compiled for kernel version .2.14-12
while this kernel is version 2.2.14-12.



Please tell me why this message comes.

Thanks in advance,

Regards,
satish.j








-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg crash utility installation

2001-07-01 Thread SATHISH.J

Hi,
I installed crash2.6 on my machine. 
When I give the command "crash" from the prompt it says "no debugging
symbols found in /boot/vmlinux2.2.14-12". Why does this message show.

Thanks in advance,

Regs,
sathish

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg crash utility installation

2001-07-01 Thread SATHISH.J

Hi,
I installed crash2.6 on my machine. 
When I give the command crash from the prompt it says no debugging
symbols found in /boot/vmlinux2.2.14-12. Why does this message show.

Thanks in advance,

Regs,
sathish

-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg installing a patch on linux

2001-06-26 Thread SATHISH.J

Hi,
Please tell me how to install a patch on linux kernel. I have downloaded a
patch "kernel-patch-2_2_13-kdb_0_6-2.deb". How to install this patch? I am
using a 2.2.14-12 kernel. Can I install the above patch. 

The main idea of mine is to install kdb to debug the kernel. Please help
me out with this.

Thanks in advance,
sathish.j


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



using gdb to debug kernel

2001-06-26 Thread SATHISH.J

Hi,

I would like to know how I can use gdb to debug some function in the
kernel. Please help me out with this detail.

Thanks in advance,


Regs,
sathish


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



using gdb to debug kernel

2001-06-26 Thread SATHISH.J

Hi,

I would like to know how I can use gdb to debug some function in the
kernel. Please help me out with this detail.

Thanks in advance,


Regs,
sathish


-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg installing a patch on linux

2001-06-26 Thread SATHISH.J

Hi,
Please tell me how to install a patch on linux kernel. I have downloaded a
patch kernel-patch-2_2_13-kdb_0_6-2.deb. How to install this patch? I am
using a 2.2.14-12 kernel. Can I install the above patch. 

The main idea of mine is to install kdb to debug the kernel. Please help
me out with this.

Thanks in advance,
sathish.j


-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg Kernel Debugger kgdb

2001-06-25 Thread SATHISH.J

Hi,

I couls see http://kgdb.sourceforge.net/ the kgdb for 2.4.5 kernel
version. Can I use the same for 2.2.14 kernel which I am using? If so how
can I use gdb.bz2 downloaded file. I have this downloaded to my windows
machine and have ftp ed to my linux machine to my home directory. Please
tell me how I should go about it.

Thanks in advance,

Regards,
sathish.j



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg Kernel Debugger kdb

2001-06-25 Thread SATHISH.J

Hi,
I would like to use a kernel debugger to set some breakpoints in some
of the kernel functions. In SVR4 and unixware we use kdb. What is its
equivalent in linux? Please tell me where the kernel debugger can be
downloaded for linux.

Thanks in advance,

With regards,
sathish.j



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg Kernel Debugger kdb

2001-06-25 Thread SATHISH.J

Hi,
I would like to use a kernel debugger to set some breakpoints in some
of the kernel functions. In SVR4 and unixware we use kdb. What is its
equivalent in linux? Please tell me where the kernel debugger can be
downloaded for linux.

Thanks in advance,

With regards,
sathish.j



-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg Kernel Debugger kgdb

2001-06-25 Thread SATHISH.J

Hi,

I couls see http://kgdb.sourceforge.net/ the kgdb for 2.4.5 kernel
version. Can I use the same for 2.2.14 kernel which I am using? If so how
can I use gdb.bz2 downloaded file. I have this downloaded to my windows
machine and have ftp ed to my linux machine to my home directory. Please
tell me how I should go about it.

Thanks in advance,

Regards,
sathish.j



-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



filldir() function

2001-06-20 Thread SATHISH.J

Hi,

Please someone tell me what is the function of filldir() function. I
could not understand it from the code. Just give me an outline of what it
will do.

Thanks in advance,
Regards,
sathish.j



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



filldir() function

2001-06-20 Thread SATHISH.J

Hi,

Please someone tell me what is the function of filldir() function. I
could not understand it from the code. Just give me an outline of what it
will do.

Thanks in advance,
Regards,
sathish.j



-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg putname() function

2001-06-18 Thread SATHISH.J

Hi,

Can anybody please tell me what the following assembly code means:
Tne function put_unused_fd() does FD_CLR() to clear the file descriptor
allocated in case file pointer could not be got. Before returning -1 as
file descriptor it goes to put_unused_fd() which calls FD_CLR() which is
as follows;

#define __FD_CLR(fd,fdsetp) \
__asm__ __volatile__("btrl %1,%0": \
"=m" (*(__kernel_fd_set *) (fdsetp)):"r" ((int)
(fd)))

This is in asm/posixtypes.h. Please decipher this for me.

Thanks in advance,
Regards,
sathish


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg:current a pointer to task_struct

2001-06-18 Thread SATHISH.J

Hi,

Please help me with the following:

I tried to go through get_current function which is in assembly.

static inline struct task_struct * get_current(void) {
struct task_struct *current;
__asm__("andl %%esp,%0; ":"=r" (current) : "0" (~8191UL));
return current;
 }


Please tell me what is done here. Does current refer to process onproc.


Thanks in advance,
Regards,
sathish


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



function of getname() function

2001-06-18 Thread SATHISH.J

Hi,

Sorry if this question is too silly.

I could not understand what getname(filename) function in the sys_open()
function is doing. I could not understand from the code what exactly it is
doing. Please help me with the same.

Thanks in advance,

Regards,
sathish



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



function of getname() function

2001-06-18 Thread SATHISH.J

Hi,

Sorry if this question is too silly.

I could not understand what getname(filename) function in the sys_open()
function is doing. I could not understand from the code what exactly it is
doing. Please help me with the same.

Thanks in advance,

Regards,
sathish



-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg:current a pointer to task_struct

2001-06-18 Thread SATHISH.J

Hi,

Please help me with the following:

I tried to go through get_current function which is in assembly.

static inline struct task_struct * get_current(void) {
struct task_struct *current;
__asm__(andl %%esp,%0; :=r (current) : 0 (~8191UL));
return current;
 }


Please tell me what is done here. Does current refer to process onproc.


Thanks in advance,
Regards,
sathish


-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg putname() function

2001-06-18 Thread SATHISH.J

Hi,

Can anybody please tell me what the following assembly code means:
Tne function put_unused_fd() does FD_CLR() to clear the file descriptor
allocated in case file pointer could not be got. Before returning -1 as
file descriptor it goes to put_unused_fd() which calls FD_CLR() which is
as follows;

#define __FD_CLR(fd,fdsetp) \
__asm__ __volatile__(btrl %1,%0: \
=m (*(__kernel_fd_set *) (fdsetp)):r ((int)
(fd)))

This is in asm/posixtypes.h. Please decipher this for me.

Thanks in advance,
Regards,
sathish


-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg:use of file_system_type structure

2001-06-17 Thread SATHISH.J

Hi,
Every file system has file_system_type structure defined. Where else this
structure is referred. Does register_filesystem() refer this structure.
Does sys_mount refer to this structure by any means?


Please help me with the info.

Thanks in advance,
Regards,
sathish.j


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg:magic number of the filesystem

2001-06-17 Thread SATHISH.J

Hi,

Every file system has a magic number. Can you please tell me what for this
magic number is used. When do we really use this unique magic number of
the file system and why?

Thanks in advance.

With Regards,
sathish


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg:dentry->d_mounts value

2001-06-17 Thread SATHISH.J

Hi,

Sorry to disturb you all.

In the d_alloc() function in the vfs layer of the filesystem(2.2.14
kernel) we can see the following: 

dentry->d_mounts = dentry;
dentry->d_covers = dentry;

Why should both the above be assigned the values of dentry. Wher elase is
this used. Please help me with this information. 

Thanks in advance,
Regards,
sathish.j

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg:dentry-d_mounts value

2001-06-17 Thread SATHISH.J

Hi,

Sorry to disturb you all.

In the d_alloc() function in the vfs layer of the filesystem(2.2.14
kernel) we can see the following: 

dentry-d_mounts = dentry;
dentry-d_covers = dentry;

Why should both the above be assigned the values of dentry. Wher elase is
this used. Please help me with this information. 

Thanks in advance,
Regards,
sathish.j

-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg:magic number of the filesystem

2001-06-17 Thread SATHISH.J

Hi,

Every file system has a magic number. Can you please tell me what for this
magic number is used. When do we really use this unique magic number of
the file system and why?

Thanks in advance.

With Regards,
sathish


-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg:use of file_system_type structure

2001-06-17 Thread SATHISH.J

Hi,
Every file system has file_system_type structure defined. Where else this
structure is referred. Does register_filesystem() refer this structure.
Does sys_mount refer to this structure by any means?


Please help me with the info.

Thanks in advance,
Regards,
sathish.j


-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg file system hash function

2001-06-15 Thread SATHISH.J

Hi,

In the vfs layer when we see the lookup_dentry() function code we see that
a part of the code checks whether low level filesystem wants to use its
own hash. the part odf the code that calls the filesystem dependant
hashing is  "error = base->d_op->d_hash->(base,);". Why should it
callfilesystem dependant hashing. What is the main purpose of hashing
here.
Please help me with these details. 

Thanks in advance,
Regards,
sathish.j
 


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg file system hash function

2001-06-15 Thread SATHISH.J

Hi,

In the vfs layer when we see the lookup_dentry() function code we see that
a part of the code checks whether low level filesystem wants to use its
own hash. the part odf the code that calls the filesystem dependant
hashing is  error = base-d_op-d_hash-(base,this);. Why should it
callfilesystem dependant hashing. What is the main purpose of hashing
here.
Please help me with these details. 

Thanks in advance,
Regards,
sathish.j
 


-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



RAM filesystem directory size

2001-06-14 Thread SATHISH.J

Hi,

Sorry for disturbing you all.

On RAMFS on 2.4 kernel, What is the default directory size? Does the size
of directory(number of blocks) change with the increase in the number of
files or directories under it? If so, please tell me which part of RAMFS
code it is implemented. 

Thanks in advance,
With Regards,
Sathish.J

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg-directory size

2001-06-14 Thread SATHISH.J

Hi,
When we create lot of files and directories under a directory the size of
the directory changes after aparticular limit. I could find that if the
size of directory is 4096 it can create 341 files(size of qstr structure
for each file is 12 bytes,so 4096/12=341.xx) before it changes to 8192. 
Please tell me where in the code does this directory size changes. Is it
in VFS level or in  the file system level? Please tell me this which would
be of great use to me.

Thanks in advance,
With Regards,
Sathish.J 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg-directory size

2001-06-14 Thread SATHISH.J

Hi,
When we create lot of files and directories under a directory the size of
the directory changes after aparticular limit. I could find that if the
size of directory is 4096 it can create 341 files(size of qstr structure
for each file is 12 bytes,so 4096/12=341.xx) before it changes to 8192. 
Please tell me where in the code does this directory size changes. Is it
in VFS level or in  the file system level? Please tell me this which would
be of great use to me.

Thanks in advance,
With Regards,
Sathish.J 

-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



RAM filesystem directory size

2001-06-14 Thread SATHISH.J

Hi,

Sorry for disturbing you all.

On RAMFS on 2.4 kernel, What is the default directory size? Does the size
of directory(number of blocks) change with the increase in the number of
files or directories under it? If so, please tell me which part of RAMFS
code it is implemented. 

Thanks in advance,
With Regards,
Sathish.J

-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



exec format error

2001-06-10 Thread SATHISH.J

Hi,
Sorry to disturb you.

I have written a file system in 2.2.14 kernel similar to ramfs on 2.5
kernel. I am able to register,mount and do file and directory operations.
I tried to write a C program and compile it. The compilation gave me the
object file. When i tried to run the object file it gave me an error 
" cannot execute binary file". I entered gdb and  I could get the error
"exec format error". What is exec format error and what is it because of?
Please help me out with this info.

Thanks in advance,

Regards,
sathish


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



exec format error

2001-06-10 Thread SATHISH.J

Hi,
Sorry to disturb you.

I have written a file system in 2.2.14 kernel similar to ramfs on 2.5
kernel. I am able to register,mount and do file and directory operations.
I tried to write a C program and compile it. The compilation gave me the
object file. When i tried to run the object file it gave me an error 
 cannot execute binary file. I entered gdb and  I could get the error
exec format error. What is exec format error and what is it because of?
Please help me out with this info.

Thanks in advance,

Regards,
sathish


-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg compiling of source code

2001-06-08 Thread SATHISH.J

Hi,
Sorry to disturb you.

I am in the process of writing a file system on 2.2.14 kernel similar to
ramfs on 2.4 kernel. I feel I should put some debug statements in the vfs
code and check the working. Please help me by trelling me how to compile
code in the vfs layer and add it to kernel. This info would be very
helpful for me and I am stuck up here.

Thanks in advance.

Regards,
sathish


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg compiling of source code

2001-06-08 Thread SATHISH.J

Hi,
Sorry to disturb you.

I am in the process of writing a file system on 2.2.14 kernel similar to
ramfs on 2.4 kernel. I feel I should put some debug statements in the vfs
code and check the working. Please help me by trelling me how to compile
code in the vfs layer and add it to kernel. This info would be very
helpful for me and I am stuck up here.

Thanks in advance.

Regards,
sathish


-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg mkdir syscall

2001-06-04 Thread SATHISH.J

Hi,
Sorry to disturb you.

Actually I had written a small file system(on 2.2.14 kernel) similar  to
RAMFS on 2.4 kernel. I am able to mount it but when I try to create
directory under it, it gives EEXIST error saying" file already exists" but
when I check the directory again that file gets created. But the link
count of the parent remains the same. I do not know how this directory
gets created but with an error message. Please also tell me what all
functions mkdir passes thro' while creating a directory. One more thing is
when I took an strace of mkdir command the syscall mkdir fails with
EEXIST error.
Please help me with your thoughts.

Thanks in advance,

Regards,
sathish.j




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg mkdir syscall

2001-06-04 Thread SATHISH.J

Hi,
Sorry to disturb you.

Actually I had written a small file system(on 2.2.14 kernel) similar  to
RAMFS on 2.4 kernel. I am able to mount it but when I try to create
directory under it, it gives EEXIST error saying file already exists but
when I check the directory again that file gets created. But the link
count of the parent remains the same. I do not know how this directory
gets created but with an error message. Please also tell me what all
functions mkdir passes thro' while creating a directory. One more thing is
when I took an strace of mkdir command the syscall mkdir fails with
EEXIST error.
Please help me with your thoughts.

Thanks in advance,

Regards,
sathish.j




-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



one link missing for a directory

2001-05-30 Thread SATHISH.J

Hi,
Sorry to disturb you.

I tried to create a file system similar to ramfs on 2.2.14 kernel. I was
able to insert it as a module and mount it to ram disk at /dev/ram0 at a
mount point called /mnt. It gets mounted . But after mounting it the link
count of directory /mnt becomes 1 and size becomes 0 which was previously
4096.
What might be the problem. In my file system I have implemented only
directory lookup and readdir functions. Which function takes care of the
link count and the size of the directory. It would be very helpful for me
if you could answer this so that I can proceed with my implementation.

Thanks in advance,

Regards,
sathish


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



one link missing for a directory

2001-05-30 Thread SATHISH.J

Hi,
Sorry to disturb you.

I tried to create a file system similar to ramfs on 2.2.14 kernel. I was
able to insert it as a module and mount it to ram disk at /dev/ram0 at a
mount point called /mnt. It gets mounted . But after mounting it the link
count of directory /mnt becomes 1 and size becomes 0 which was previously
4096.
What might be the problem. In my file system I have implemented only
directory lookup and readdir functions. Which function takes care of the
link count and the size of the directory. It would be very helpful for me
if you could answer this so that I can proceed with my implementation.

Thanks in advance,

Regards,
sathish


-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg:usage of insmod

2001-05-25 Thread SATHISH.J

Hi all,

Sorry for disturbing you with my doubt.

I tried to insert a module(my own object file called dssp.o) into the
running kernel and i got the following:


[root@juhie fs]# insmod  -o ./dssp.o -f dssp
Using /lib/modules/2.2.14-12/fs/dssp.o
/lib/modules/2.2.14-12/fs/dssp.o: couldn't find the kernel version the
module was compiled for


I could not make out why this error message came. Please help me out with
this.


Thanks in advance

regards,
sathish

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg ramfs mkfs

2001-05-25 Thread SATHISH.J

Hi all,

Please excuse me if my doubt is silly but do help me in answering this.

I compiled the ramfilesystem under fs/ramfs and got the object file
inode.o.

1.Should I do insmod to insert this module. 
2.After inserting this module how can I use "mkfs" to make this file
system befor mounting it.

Please help with the answers as I am highly confused.

Thanks in advance,

Regards,
sathish.j

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg ramfs mkfs

2001-05-25 Thread SATHISH.J

Hi all,

Please excuse me if my doubt is silly but do help me in answering this.

I compiled the ramfilesystem under fs/ramfs and got the object file
inode.o.

1.Should I do insmod to insert this module. 
2.After inserting this module how can I use mkfs to make this file
system befor mounting it.

Please help with the answers as I am highly confused.

Thanks in advance,

Regards,
sathish.j

-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Reg:usage of insmod

2001-05-25 Thread SATHISH.J

Hi all,

Sorry for disturbing you with my doubt.

I tried to insert a module(my own object file called dssp.o) into the
running kernel and i got the following:


[root@juhie fs]# insmod  -o ./dssp.o -f dssp
Using /lib/modules/2.2.14-12/fs/dssp.o
/lib/modules/2.2.14-12/fs/dssp.o: couldn't find the kernel version the
module was compiled for


I could not make out why this error message came. Please help me out with
this.


Thanks in advance

regards,
sathish

-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/