minor and major locality of key in reiser4
hello,
The tree in reiser4 is fully ordered by a key. What information do we aggregate in the key so that later the information can be segregated from it. What is minor and major locality packing of the key.
The key is defined as
union reiser4_key{
d64 el[KEY_LAST_INDEX];
int pad;
};
Its specified that KEY_LAST_INDEX has the value of three. Where is this defined.
Pallavi
---------------------------------
Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now
Hello
Quoted 5 lines · Pallavi Dalya
hello,
The tree in reiser4 is fully ordered by a key. What information
do we aggregate in the key so that later the information can be segregated from it. What is minor and major locality packing of the key.
major locality is by default objectid of directory. it occupies highest 60 bits of first key component.
minor locality occupies lowest 4 bits of first key component. it displaces valious data of file: file name, stat data (analog of on-disk inode), file data.
Quoted 11 lines
The key is defined as
union reiser4_key{
d64 el[KEY_LAST_INDEX];
int pad;
};Its specified that
KEY_LAST_INDEXhas the value of three. Where is this defined.
sorry, I am not sure what do you mean.KEY_LAST_INDEX is defined in reiser4/key.h.
it is last value of reiser4_key_field_index enum.
Quoted 8 lines
Pallavi
______________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
Download Messenger Now