How to get the size of the block device ???? (Important)

Sanjay Kumar (sanju93csd@yahoo.co.in)
Tue, 17 Dec 2002 14:22:47 +0000 (GMT)


Hi,
I am Sanjay Kumar and wants to write my own file
system on Linux. I have almost written the code.
But,now i have a problem while writing the code
for "mkfs" for my filesystem.

Problem Summary : I need the size of the block device
in bytes on which my file system will be created.
Actually, there is a feild in the super block, needs
the total no of blocks on the device while while
creating the filesystem. So, Can you Plz. help me out
of this problem.

I got your email id from :

http://lwn.net/2001/0906/a/last-sector.php3

Sanjay Kumar.
M.C.A.,
Univeristy of Pune,
India.

________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
visit http://in.tv.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/