Accessing on-disk datastructures from a module

Manish Katiyar mkatiyar at gmail.com
Wed Jan 19 14:15:51 EST 2011


On Wed, Jan 19, 2011 at 10:45 AM, mohit verma <mohit89mlnc at gmail.com> wrote:
>
>
> On Wed, Jan 19, 2011 at 1:21 PM, Martin DeMello <martindemello at gmail.com>
> wrote:
>>
>> On Wed, Jan 19, 2011 at 1:18 PM, Manish Katiyar <mkatiyar at gmail.com>
>> wrote:
>> >
>> > Once you have your reserved inode, you can open it using iget to get
>> > the inode pointer. After that it would be same way as you would have
>> > done if you were allowed file ops in kernel. For eg.. If my reserved
>> > inode is 100 and I'm using ext2, it would be something like
>> > [...]
>>
>> Thanks a lot, that's really helpful!
>
> hello guys,
> can anyone  tell me how to make a disk based file reserved ?
> as manish said : buy making a file reserved for a file system the above task
> can be achieved.but how to make it reserved?

Just don't allocate that inode to anyone else and treat it specially
in your code. Same was as ROOT_INODE (typically 2) is handled.


>>
>> martin
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
>
> --
> ........................
> MOHIT VERMA
>



-- 
Thanks -
Manish
==================================
[$\*.^ -- I miss being one of them
==================================



More information about the Kernelnewbies mailing list