reading data blocks in reiser4
hello,
what are the internal operations to read a file in reiser4 ..
i understand that the semantic layer converts the name into key of an object(this key is received from the directory entry) and the storage layer searches for the node in the tree. also all the data of the file is stored in the unformatted leaf and only the tails of the files is stored in the items (the tail policy plugins). Also the key leads us to the stat data of a file for accessing the permission of the file and it gives us the offset of the actual data...is this offset a address of the node where the files direct and indirect data is stored ?
what role does a inode play in the complete process?
Pallavi
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Hello
Quoted 7 lines · Pallavi Dalya
hello,
what are the internal operations to read a file in reiser4 ..
i understand that the semantic layer converts the name into key of an object(this key is received from the directory entry) and the storage layer searches for the node in the tree. also all the data of the file is stored in the unformatted leaf and only the tails of the files is stored in the items (the tail policy plugins).
no. default file in reiser4 is either stored in unformatted nodes or in tail items. Tail policy plugin is used to choose how to store files.
Quoted 3 lines
Also the key leads us to the stat data of a file for accessing the permission of the file and it gives us the offset of the actual data...
File is represented by items. All items have a key. All keys of items representing a file have common part. When you know that common part - you can compose a key of any position in a file as well as key of stat data. Then you search in the tree for whatever is needed.
Quoted 3 lines
is this offset a address of the node where the files direct and indirect data is stored ?
With key you find an item and position in it. This item may contain data you were looking for or contain a pointer to unformatted node containing those data.
Quoted 1 line
what role does a inode play in the complete process?
I guess you are about in-core inode? It is used to communicate with linux VFS.
Quoted 7 lines
Pallavi
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com