i guess you just havta read block size no:of bytes using the read syscall if ur block size is defined as #define BLOCK_SIZE 1024 then to get a block just read(fd,buf,BLOCK_SIZE); and u can lseek 1024 bytes to get to various blocks. for the file size ... i think u may be stuck with 2GB size .... Bijoy. On Fri, 12 Dec 2003, Anandanam Rama Kotaiah wrote: > hi all > i want some help regarding disk block access. I want to simulate a file > system designed. Now for tht can i use ext2/3 fs as the base and simulate > the inode and data blcks designed by me. If at all i can use how do i > access the data blks directly from C code. I can use a file to store the > metadata but its max size is limited to 2 GB. > > thnx in advance > bye > > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ > > -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/