From: Tarcisio Fedrizzi <tarcisio.fedrizzi@gmail.com>
To: dm-devel@redhat.com
Subject: Possible kpartx bug investigation/report
Date: Fri, 10 Dec 2010 10:01:38 +0100 [thread overview]
Message-ID: <4D01EC72.5060205@gmail.com> (raw)
Hi,
I'm while I was trying to get a device working on multipath I had
a problem with kpartx. The problem is the following: I mounted an
iSCSI deviec that is exported with block size of 4K. The multipath side
works
correctly, the problem arises when kpartx maps the partition contained
in the device. When mounting the partition I get an error saying that the
partition doesn't contain a filesystem. After some digging I found that
kpartx
calculates a wrong offset and size because it treats the offset and the
size as
they was of 512b. I mean that they not get multiplied by 4096 / 512 = 8. By
using dmsetup and multiplying by 8 the offset and size I get a device that
mounts correctly, the same by patching kpartx/gpt.c and adding a
multiplication of offset/size by get_sector_size(fd) / 512.
Since I'm not an expert in this field I cannot state for sure that the
problem
is this and doesn't depend on something else like some fault I've done or
a buggy implementation of iSCSI by the NAS I'm using. I then kindly ask
if you can
help me to determine if this is a kpartx bug or something else so I can
get it
working in the correct way or file a bug.
Thanks in advance,
Best regards,
Tarcisio Fedrizzi.
reply other threads:[~2010-12-10 9:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4D01EC72.5060205@gmail.com \
--to=tarcisio.fedrizzi@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.