From: NeilBrown <neilb@suse.de>
To: dm-devel@redhat.com
Subject: [PATCH dmraid 1/1] Ensure metadata dump of pdc metadata has the correct offset.
Date: Fri, 11 Dec 2009 14:27:11 +1100 [thread overview]
Message-ID: <20091211033030.695580934@suse.de> (raw)
In-Reply-To: 20091211032710.161471708@suse.de
[-- Attachment #1: pdc-metadata-dump-fix --]
[-- Type: text/plain, Size: 717 bytes --]
a read_metadata function needds to set *offset so that file_metadata
can create the correct xxx/dev-offset file.
pdf_read_metadata does not set *offset.
This patch add the appropriate setting.
Signed-off-by: NeilBrown <neilb@suse.de>
---
1.0.0.rc16/lib/format/ataraid/pdc.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
--- dmraid.orig/1.0.0.rc16/lib/format/ataraid/pdc.c
+++ dmraid/1.0.0.rc16/lib/format/ataraid/pdc.c
@@ -202,8 +202,11 @@ pdc_read_metadata(struct lib_context *lc
break;
/* Memorize main metadata sector. */
- } else if (!info->u32)
+ } else if (!info->u32) {
info->u32 = *s;
+ *offset = sub ? di->sectors - *s : *s;
+ }
+
}
}
}
next prev parent reply other threads:[~2009-12-11 3:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-11 3:27 [PATCH dmraid 0/1] pdc metadata bug fix NeilBrown
2009-12-11 3:27 ` NeilBrown [this message]
2009-12-14 14:35 ` [PATCH dmraid 1/1] Ensure metadata dump of pdc metadata has the correct offset Heinz Mauelshagen
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=20091211033030.695580934@suse.de \
--to=neilb@suse.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox