Skip to contentSkip to conversation

Dumb question

DISCUSSION Daniel Phillips 2 participants 2 messages Apr 11, 2005 Device mapper

lore
Share & tools
lore
#0 lore raw

Hi guys,

Here is a dumb question: Why does dmsetup use (start, length) for each target line instead of just (length)? Is it useful to leave some parts of a virtual device unmapped, and if so, why not require them to be mapped explicitly to zero or error?

Regards,

Daniel

#1 lore raw
Quoted 2 lines · Daniel Phillips

Here is a dumb question: Why does dmsetup use (start, length) for each target line instead of just (length)?

We decided to require this:
(a) to make the tables more readable in their raw form
(b) as additional validation against bugs

Quoted 3 lines

Is it useful to leave some parts
of a virtual device unmapped, and if so, why not require them to be mapped explicitly to zero or error?

They must be. Each line has to start where the previous one ended or you are supposed to get an error.

Alasdair

Signature · 1 line
[email protected]