Re: block allocation for ext2_mkdir

2008-12-22 Thread Peter Teoh
Hm.i like thesewill read up morecannot comment anything at the moment though.as good as a newbie like you :-) On Sun, Dec 21, 2008 at 6:57 PM, Rohit Sharma wrote: > On Sun, Dec 21, 2008 at 10:50 AM, Sandeep K Sinha > wrote: >> Thanks a lot Peter for taking out time and lookin

Re: block allocation for ext2_mkdir

2008-12-22 Thread Rohit Sharma
On Mon, Dec 22, 2008 at 6:22 AM, Peter Teoh wrote: > On Sun, Dec 21, 2008 at 1:20 PM, Sandeep K Sinha > wrote: >> Thanks a lot Peter for taking out time and looking into the issue at >> such a deeper level. >> >> Thanks again, >> >> > u are welcome.it both my pleasure and pressure :-). merr

Re: block allocation for ext2_mkdir

2008-12-21 Thread Peter Teoh
On Sun, Dec 21, 2008 at 1:20 PM, Sandeep K Sinha wrote: > Thanks a lot Peter for taking out time and looking into the issue at > such a deeper level. > > Thanks again, > > u are welcome.it both my pleasure and pressure :-). merry christmas!!! -- Regards, Peter Teoh Ernest Hemingway - "Nev

Re: block allocation for ext2_mkdir

2008-12-21 Thread Rohit Sharma
On Sun, Dec 21, 2008 at 10:50 AM, Sandeep K Sinha wrote: > Thanks a lot Peter for taking out time and looking into the issue at > such a deeper level. > > Thanks again, > > > On Sun, Dec 21, 2008 at 6:48 AM, Peter Teoh wrote: >> On Sat, Dec 20, 2008 at 3:18 AM, Rohit Sharma wrote: >>> in ext2/ba

Re: block allocation for ext2_mkdir

2008-12-20 Thread Sandeep K Sinha
Thanks a lot Peter for taking out time and looking into the issue at such a deeper level. Thanks again, On Sun, Dec 21, 2008 at 6:48 AM, Peter Teoh wrote: > On Sat, Dec 20, 2008 at 3:18 AM, Rohit Sharma wrote: >> in ext2/balloc.c >> i saw a function ext2_new_blocks() >> its the core function t

Re: block allocation for ext2_mkdir

2008-12-20 Thread Peter Teoh
On Sat, Dec 20, 2008 at 3:18 AM, Rohit Sharma wrote: > in ext2/balloc.c > i saw a function ext2_new_blocks() > its the core function to allocate blocks, it has been specified there. > > So all the blocks that are allocated in the file system is through > this function only , > am i correct ? In t

Re: block allocation for ext2_mkdir

2008-12-19 Thread Sandeep K Sinha
On Sat, Dec 20, 2008 at 12:31 AM, Rohit Sharma wrote: > I am not sure but ext2_alloc_blocks function > in inode.c, allocate blocks for indirect blocks. > You are right, The allocation can be from direct or indirect blocks depending on the availability. What I feel is that you dont need any kind of

Re: block allocation for ext2_mkdir

2008-12-19 Thread Rohit Sharma
Is there a difference between how ext2 allocates block between inode's indirect blocks and data blocks. On Fri, Dec 19, 2008 at 8:59 PM, Peter Teoh wrote: > On Fri, Dec 19, 2008 at 7:18 PM, Rohit Sharma wrote: >> On Fri, Dec 19, 2008 at 3:05 PM, Peter Teoh wrote: >>> On Fri, Dec 19, 2008 at 3:

Re: block allocation for ext2_mkdir

2008-12-19 Thread Rohit Sharma
I am not sure but ext2_alloc_blocks function in inode.c, allocate blocks for indirect blocks. On Sat, Dec 20, 2008 at 12:19 AM, Rohit Sharma wrote: > Is there a difference between how ext2 allocates block between > inode's indirect blocks and data blocks. > > > On Fri, Dec 19, 2008 at 8:59 PM,

Re: block allocation for ext2_mkdir

2008-12-19 Thread Peter Teoh
On Fri, Dec 19, 2008 at 7:18 PM, Rohit Sharma wrote: > On Fri, Dec 19, 2008 at 3:05 PM, Peter Teoh wrote: >> On Fri, Dec 19, 2008 at 3:42 PM, Rohit Sharma wrote: >>> On Fri, Dec 19, 2008 at 4:09 AM, Jan Kara wrote: > On Fri, Dec 19, 2008 at 12:12 AM, Rohit Sharma > wrote: > > How

Re: block allocation for ext2_mkdir

2008-12-19 Thread Rohit Sharma
On Fri, Dec 19, 2008 at 3:05 PM, Peter Teoh wrote: > On Fri, Dec 19, 2008 at 3:42 PM, Rohit Sharma wrote: >> On Fri, Dec 19, 2008 at 4:09 AM, Jan Kara wrote: On Fri, Dec 19, 2008 at 12:12 AM, Rohit Sharma wrote: > How does ext2 allocate blocks for directory. > > ext2_m

Re: block allocation for ext2_mkdir

2008-12-19 Thread Peter Teoh
On Fri, Dec 19, 2008 at 3:42 PM, Rohit Sharma wrote: > On Fri, Dec 19, 2008 at 4:09 AM, Jan Kara wrote: >>> On Fri, Dec 19, 2008 at 12:12 AM, Rohit Sharma wrote: >>> > How does ext2 allocate blocks for directory. >>> > >>> > ext2_mkdir callsext2_make_empty >>> > >>> > e

Re: block allocation for ext2_mkdir

2008-12-19 Thread Sandeep K Sinha
On Fri, Dec 19, 2008 at 1:12 PM, Rohit Sharma wrote: > On Fri, Dec 19, 2008 at 4:09 AM, Jan Kara wrote: >>> On Fri, Dec 19, 2008 at 12:12 AM, Rohit Sharma wrote: >>> > How does ext2 allocate blocks for directory. >>> > >>> > ext2_mkdir callsext2_make_empty >>> > >>> > e

Re: block allocation for ext2_mkdir

2008-12-18 Thread Rohit Sharma
On Fri, Dec 19, 2008 at 4:09 AM, Jan Kara wrote: >> On Fri, Dec 19, 2008 at 12:12 AM, Rohit Sharma wrote: >> > How does ext2 allocate blocks for directory. >> > >> > ext2_mkdir callsext2_make_empty >> > >> > ext2_make_empty calls __ext2_write_begin >> > >>

Re: block allocation for ext2_mkdir

2008-12-18 Thread Jan Kara
> On Fri, Dec 19, 2008 at 12:12 AM, Rohit Sharma wrote: > > How does ext2 allocate blocks for directory. > > > > ext2_mkdir callsext2_make_empty > > > > ext2_make_empty calls __ext2_write_begin > > > > __ ext2_write_begin calls block_write_begin

Re: block allocation for ext2_mkdir

2008-12-18 Thread Rohit Sharma
On Fri, Dec 19, 2008 at 12:12 AM, Rohit Sharma wrote: > How does ext2 allocate blocks for directory. > > ext2_mkdir callsext2_make_empty > > ext2_make_empty calls __ext2_write_begin > > __ ext2_write_begin calls block_write_begin > > my query is

block allocation for ext2_mkdir

2008-12-18 Thread Rohit Sharma
How does ext2 allocate blocks for directory. ext2_mkdir callsext2_make_empty ext2_make_empty calls __ext2_write_begin __ ext2_write_begin calls block_write_begin my query is that how does this function allocates blocks for directories. ?? --