All of lore.kernel.org
 help / color / mirror / Atom feed
From: Malahal Naineni <malahal@us.ibm.com>
To: dm-devel@redhat.com
Subject: Re: Is there a way to see updated contents of a	DM target's underlying device while the DM target is in use?
Date: Wed, 30 Jun 2010 17:54:54 -0700	[thread overview]
Message-ID: <20100701005454.GA24284@us.ibm.com> (raw)
In-Reply-To: <4BD43A85686FC34D819098DB1C3999D99E419AA2@orsmsx502.amr.corp.intel.com>

Riches Jr, RobertX M [robertx.m.riches.jr@intel.com] wrote:
> However, I am able to reproduce the symptom using the standard dm-linear module supplied with the x86_64 kernel that comes with Ubuntu Karmic.  With the attached script, the first 'od' on /dev/vg1/lv1, done before 'dmsetup remove', shows the first part of the file contains 0x00.  A second 'od' after 'dmsetup remove' shows the file contains random data.
> 
> I didn't see any queues or caches in dm-linear that would need to be flushed.
> 
> Any other suggestions?

If you write to a block device devA and read from it on the same system,
you would get the expected data. In your case, you have devA and devB
(devB is a mapped device on devA, but that doesn't matter), you write to
devA and read from devB. You won't see what you wrote because of block
device caching. Try fsync() on the block device fred01 before copying or
try suspend on the linear dev (fred01 in your case).

Thanks, Malahal.

  parent reply	other threads:[~2010-07-01  0:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-30 22:54 Is there a way to see updated contents of a DM target's underlying device while the DM target is in use? Riches Jr, RobertX M
2010-06-30 23:08 ` Alasdair G Kergon
2010-06-30 23:53   ` Riches Jr, RobertX M
2010-07-01  0:51     ` Alasdair G Kergon
2010-07-01  1:01       ` Alasdair G Kergon
2010-07-01  1:03       ` Malahal Naineni
2010-07-01  1:49         ` Alasdair G Kergon
2010-07-01 16:46       ` Riches Jr, RobertX M
2010-07-01 19:00         ` Malahal Naineni
2010-07-02 14:52           ` Hannes Reinecke
2010-07-01  0:54     ` Malahal Naineni [this message]
2010-07-01  0:22 ` Neil Brown
2010-07-01  0:58   ` Malahal Naineni

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=20100701005454.GA24284@us.ibm.com \
    --to=malahal@us.ibm.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.