Skip to contentSkip to conversation

Book chapter

linux-lvm Moshe Bar 3 participants 3 messages Jul 5, 2001 – Jul 7, 2001

lore
Share & tools
lore

Moshe Bar

author
#0 lore raw

Hi Heinz

I am writing a chapter about LVM in my book. I would like to know more about the internal data structures and the algorithms used.

Can you tell me more about them (next to what is in the source code) or point me to some document about the internals of LVM (interaction with VFS, etc.).

Many thanks

moshe bar

#1 lore raw
Quoted 7 lines · Moshe Bar

I am writing a chapter about LVM in my book. I would like to know more about the internal data structures and the algorithms used.

Can you tell me more about them (next to what is in the source code) or point me to some document about the internals of LVM (interaction with VFS, etc.).

It's a block device layer thing, so it doesn't interact with the VFS. What the LVM layer _seems_ to do is simply remap an IO request to the device it's supposed to go to and let the request get into the IO layer again...

(then again, I could be wrong here, the LVM code isn't the easiest to wade through)

Rik
--
Executive summary of a recent Microsoft press release:
"we are concerned about the GNU General Public License (GPL)"

		http://www.surriel.com/

http://www.conectiva.com/ http://distro.conectiva.com/

#2 lore raw
Quoted 6 lines · Rik van Riel
Quoted 4 lines · Moshe Bar

I am writing a chapter about LVM in my book. I would like to know more about the internal data structures and the algorithms used.

Quoted 8 lines
Quoted 3 lines

Can you tell me more about them (next to what is in the source code) or point me to some document about the internals of LVM (interaction with VFS, etc.).

It's a block device layer thing, so it doesn't interact with the VFS. What the LVM layer _seems_ to do is simply remap an IO request to the device it's supposed to go to and let the request get into the IO layer again...

Rik's correct, LVM has nothing to do with the VFS. If you wish to explore the code start with lvm_map() which maps a buffer destined for a logical volume onto a physical device.

Quoted 2 lines

(then again, I could be wrong here, the LVM code isn't the easiest to wade through)

Agreed.

- Joe