From: Akira Hayakawa <ruby.wktk@gmail.com>
To: dm-devel@redhat.com
Subject: [Question] dm-cache table
Date: Mon, 25 Nov 2013 19:54:39 +0900 [thread overview]
Message-ID: <52932C6F.5000306@gmail.com> (raw)
Hi,
dm-cache saves the ctr args in .ctr (copy_ctr_copy)
and uses it to make table.
case STATUSTYPE_TABLE:
format_dev_t(buf, cache->metadata_dev->bdev->bd_dev);
DMEMIT("%s ", buf);
format_dev_t(buf, cache->cache_dev->bdev->bd_dev);
DMEMIT("%s ", buf);
format_dev_t(buf, cache->origin_dev->bdev->bd_dev);
DMEMIT("%s", buf);
for (i = 0; i < cache->nr_ctr_args - 1; i++)
DMEMIT(" %s", cache->ctr_args[i]);
if (cache->nr_ctr_args)
DMEMIT(" %s", cache->ctr_args[cache->nr_ctr_args - 1]);
}
If it accepted migrate_threshold in .ctr and the parameter
changed later. The actual value and what is seen in table
become inconsistent right? Is this intentionally designed?
If table is just the copy of the ctr args,
why don't we implement it in dm framework?
Akira
next reply other threads:[~2013-11-25 10:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-25 10:54 Akira Hayakawa [this message]
2013-11-25 12:05 ` [Question] dm-cache table Joe Thornber
2013-11-27 1:54 ` Akira Hayakawa
2013-11-27 2:58 ` Alasdair G Kergon
2013-11-27 12:29 ` Joe Thornber
2013-12-01 2:56 ` Akira Hayakawa
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=52932C6F.5000306@gmail.com \
--to=ruby.wktk@gmail.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.