From: Zdenek Kabelac <zkabelac@redhat.com>
To: device-mapper development <dm-devel@redhat.com>
Cc: monica g <monica.knmt@gmail.com>
Subject: Re: Not able to create a device mapper target node
Date: Tue, 25 Jun 2013 10:19:24 +0200 [thread overview]
Message-ID: <51C9528C.6010700@redhat.com> (raw)
In-Reply-To: <CABmd-rm-6P-+bkoHVAK25pEVgVBNswELepV5qvweTUd1J2Poag@mail.gmail.com>
Dne 24.6.2013 09:19, monica g napsal(a):
> Hi,
>
> I wrote a basic device mapper driver which caches reads.
>
> I gave dm msg prefix as below
> #define DM_MSG_PREFIX "cacheread".
>
> When i try to create a device mapper node using the below command
> echo "0 `blockdev --getsize /dev/sda2` cacheread /dev/sda2 0" | dmsetup create
> cacheread
>
> the system hangs.I am not getting any error messages.
Why not looking into a basic linear driver -
linux/drivers/md/dm-stripe.c
and start updating this driver for your needs.
Kernel device driver development is not easily debugable from userspace.
Also you might be interested to look at dm-cache driver available from 3.9
kernel and which does much more advanced caching of reads as well as writes....
Regards
Zdenek
>
> When i try to create a device mapper node for linear target(this target is
> already present with the device mapper code) using below command
>
> echo "0 `blockdev --getsize /dev/sda2` linear /dev/sda2 0" | dmsetup create linear
> it succeeds and creates device node linear in /dev/mapper directory.
>
> I am stuck with this issue and not able to proceed furthur.
>
> Please let me know if you have any suggestions.
>
> Any help is truely appreciated.
>
> Thanks in advance.
>
> Regards,
> Monica
>
>
>
>
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel
>
next prev parent reply other threads:[~2013-06-25 8:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-24 7:19 Not able to create a device mapper target node monica g
2013-06-25 8:19 ` Zdenek Kabelac [this message]
2013-06-27 14:02 ` Mikulas Patocka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51C9528C.6010700@redhat.com \
--to=zkabelac@redhat.com \
--cc=dm-devel@redhat.com \
--cc=monica.knmt@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.