[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [dm-devel] device mapper v/s block device driver



On Thu, May 09, 2013 at 04:27:05PM -0600, neha naik wrote:
>        Are there any advantages of using block device driver instead of
> device mapper (or vice versa)

device-mapper is a framework for implementing virtual devices.  dm
devices can stack on each other nicely.

If you're writing a driver for real hardware, write a plain block
device driver.  Otherwise I'd start by looking at dm.

You may find your virtual dev can be more efficiently implemented
outside the dm framework.  For instance dm-cache can only see one bio
at a time within dm, which is tedious.  But make sure you've proved to
yourself and the community that the performance benefit is significant
enough to warrant reimplementing things that dm provides for free
(like bio splitting).

- Joe


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]