Re: block allocation for ext2_mkdir

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

 



On Fri, Dec 19, 2008 at 4:09 AM, Jan Kara <jack@xxxxxxx> wrote:
>> On Fri, Dec 19, 2008 at 12:12 AM, Rohit Sharma <imreckless@xxxxxxxxx> wrote:
>> > How does ext2 allocate blocks for directory.
>> >
>> > ext2_mkdir               calls            ext2_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. ??
>> >
>>
>> Does ext2 uses ext2_get_block to allocate blocks for both files and
>> directories. ??
>  Yes, exactly. Ext2 (unlike ext3 or ext4) treats directories the same
> ways as ordinary files and thus ext2_get_block is used for block
> allocation.
>

Can i modify this function to restrict allocation of blocks
to a particular block group ?

Like i want that my abc.txt file should be in block group 5 suppose, then
what should i do?

>                                                                Honza
>
> --
> Jan Kara <jack@xxxxxxx>
> SuSE CR Labs
>

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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