On Wed, Jan 19, 2011 at 10:45 AM, mohit verma <mohit89mlnc@xxxxxxxxx> wrote: > > > On Wed, Jan 19, 2011 at 1:21 PM, Martin DeMello <martindemello@xxxxxxxxx> > wrote: >> >> On Wed, Jan 19, 2011 at 1:18 PM, Manish Katiyar <mkatiyar@xxxxxxxxx> >> 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@xxxxxxxxxxxxxxxxx >> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > > > > -- > ........................ > MOHIT VERMA > -- Thanks - Manish ================================== [$\*.^ -- I miss being one of them ================================== _______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies