From: Mike Snitzer <snitzer@redhat.com>
To: dm-devel@redhat.com
Subject: Re: dm cache: verify metadata device is exclussive
Date: Tue, 30 Jul 2013 07:11:19 -0400 [thread overview]
Message-ID: <20130730111119.GA9185@redhat.com> (raw)
In-Reply-To: <1374713456-20807-1-git-send-email-snitzer@redhat.com>
On Wed, Jul 24 2013 at 8:50pm -0400,
Mike Snitzer <snitzer@redhat.com> wrote:
> Do not allow a cache device to use a metadata device that is already
> in use by another cache device.
>
> Add list member to the cache structure. Also reorder members in the
> cache structure to eliminate 6 out of 7 holes (reclaiming 24 bytes).
>
> Example:
> echo "0 8192 linear 253:1 0" | dmsetup create metadata
> echo "0 2097152 linear 253:1 8192" | dmsetup create ssd
> echo "0 33554432 linear 253:0 0" | dmsetup create origin
> echo "0 33554432 cache /dev/mapper/metadata /dev/mapper/ssd /dev/mapper/origin 512 0 default 0" | dmsetup create cache1
> echo "0 33554432 cache /dev/mapper/metadata /dev/mapper/ssd /dev/mapper/origin 512 0 default 0" | dmsetup create cache2
> device-mapper: reload ioctl on cache2 failed: Device or resource busy
> Command failed
>
> Kernel log shows:
> device-mapper: table: 253:8: cache: metadata device already in use by a cache
> device-mapper: ioctl: error adding target to table
Self-NACK.
This patch doesn't handle reloading a cache device. The cache struct
member reshuffle may be useful to better align on cachelines and
eliminate holes but I'll repost a separate patch accordingly.
prev parent reply other threads:[~2013-07-30 11:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-25 0:50 [PATCH] dm cache: verify metadata device is exclussive Mike Snitzer
2013-07-30 11:11 ` Mike Snitzer [this message]
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=20130730111119.GA9185@redhat.com \
--to=snitzer@redhat.com \
--cc=dm-devel@redhat.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.