Re: Accessing disk blocks from user space

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

 



hi
but i want to maintain my own inode structure and so on. the only way i
find is to change the ext2/3 code to support my file system. also the 2Gb
may not be sufficient.  btw can i access a disk block jus by its
address(if i find it by some means)
bye

 On Fri, 12 Dec 2003, Bijoy Thomas
wrote:

> 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/
>

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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux