[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

file size ? (inode->i_size ?)



Hello.

I'm trying to find out the size of an open file.
I'm doing printk("%d\n",file->f_dentry->d_inode->i_size);
but i get the number 4585 no matter what is the real size
of the file (even empty) !

please what is my problem ?

Thank You.
GoodBye.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/