|
|
In phase 2 of ext2 yaan we will be testing block allocation for inodes.
We will be adding an extra field in inode. This will be an OHSM flag.
If this flag is enabled then we will allocate blocks according to tiers,
else we proceed to normal allocation.
We create this flag in such a way that we can mask it to get tier id.
This field will be 'unsigned int'.We will create an inline function in
OHSM module that will be called by ext2. we will send the tier ID to this
function, which will refer to the mapping table and return block group
range. We will allocate data blocks accordingly.
|