All of lore.kernel.org
 help / color / mirror / Atom feed
* [Question] dm-cache table
@ 2013-11-25 10:54 Akira Hayakawa
  2013-11-25 12:05 ` Joe Thornber
  0 siblings, 1 reply; 6+ messages in thread
From: Akira Hayakawa @ 2013-11-25 10:54 UTC (permalink / raw)
  To: dm-devel

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-12-01  2:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-25 10:54 [Question] dm-cache table Akira Hayakawa
2013-11-25 12:05 ` 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

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.