File system Query

2013-06-14 Thread Dibyayan Chakraborty
Hi, Please describe the functions of this function "mount_bdev()" defined in the header file "Linux/fs/super.c". I guess it somehow initiates a safe execution of the fill_super function passed as parameter but i want to know the actual steps performed by that function. -- With Regards Dibyayan C

File System query

2013-06-17 Thread Dibyayan Chakraborty
Hi, I have the following question regarding the linux file system implementation. In linux/fs.h I saw the "struct super_operation" structure. I saw that two of the member function pointers are write_inode() and put_inode(). But In the ext2,ext3,ext4 implementation i saw that it uses the only write

File system query

2013-06-17 Thread Dibyayan Chakraborty
Hi, I am working on a project which requires to implement a file system with journaling capability. While i found a number of simple implementations of file systems , they all were lacking the journaling capability. like https://github.com/raczzoli/testfs or http://hi.baidu.com/yanyulou/item/e31a1

File system query

2013-06-24 Thread Dibyayan Chakraborty
Hi, I came by a really weird macro code in linux/jbd.hwhich is BUFFER_TRACE(bh,info) do{} while(0). Please explain the necessity of this. -- With Regards Dibyayan Chakraborty ___ Kerneln

Re: File system Query

2013-06-15 Thread Dibyayan Chakraborty
Hi, Yes. I found the source and read it. But I cant understand the following things. 1. Why mutex lock is used in the code ? I know it is used for process synchronisation but why that section of the code is critical ? 2. What is the purpose of the "sget()" function ? 3. And what is the job of

Re: File system Query

2013-06-15 Thread Valdis . Kletnieks
On Sat, 15 Jun 2013 11:02:46 +0530, Dibyayan Chakraborty said: > Please describe the functions of this function "mount_bdev()" defined in > the header file "Linux/fs/super.c". > > I guess it somehow initiates a safe execution of the fill_super function > passed as parameter but i want to know the

Re: File system Query

2013-06-16 Thread Valdis . Kletnieks
On Sat, 15 Jun 2013 18:53:22 +0530, Dibyayan Chakraborty said: > But I cant understand the following things. Thanks... Specific questions are *much* easier to answer. ;) > 1. Why mutex lock is used in the code ? I know it is used for process > synchronisation but why that section of the code is

Re: File system query

2013-06-20 Thread Dibyayan Chakraborty
Hi, I have been following the prescribed articles and it has been a great help. I am obviously one step closer to implementing the journaling in file system. But i didn't et the following things. What would be the correct sequence of steps in implementing it ? is it something like this ? 1. At th

Re: File system query

2013-06-20 Thread Valdis . Kletnieks
On Fri, 21 Jun 2013 07:06:37 +0530, Dibyayan Chakraborty said: > I am obviously one step closer to implementing the journaling in file > system. But i didn't et the following things. > > What would be the correct sequence of steps in implementing it? That will depend on how *your* file system imp

Re: File system query

2013-06-20 Thread Dibyayan Chakraborty
Hi, I am not familiar with btrfs. So i would like to follow in the foot steps of ext3/ext4 file system. I figure that the most basic functionality (and mandatory for my project) is to recover from a system crash taking place before a file write is complete. So, in order to this what should be the

Re: File system query

2013-06-20 Thread Valdis . Kletnieks
On Fri, 21 Jun 2013 08:42:35 +0530, Dibyayan Chakraborty said: > I figure that the most basic functionality (and mandatory for my project) > is to recover from a system crash taking place before a file write is > complete. So, in order to this what should be the steps ? As I said, that will depen

Re: File system query

2013-06-25 Thread Valdis . Kletnieks
On Tue, 25 Jun 2013 09:56:43 +0300, Alexandru Juncu said: > On 23 June 2013 17:18, Dibyayan Chakraborty wrote: > > Hi, > > I came by a really weird macro code in linux/jbd.h which is > > > > BUFFER_TRACE(bh,info) do{} while(0). > > > > Please explain the necessity of this. > > I'm not familiar wi