Skip to contentSkip to conversation

minor and major locality of key in reiser4

DISCUSSION Pallavi Dalya 2 participants 2 messages Dec 27, 2004

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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_INDEX has 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