From: Loic Dachary <loic@dachary.org>
To: Ilya Dryomov <idryomov@gmail.com>
Cc: Ceph Development <ceph-devel@vger.kernel.org>,
"Stolte, Felix" <f.stolte@fz-juelich.de>
Subject: Re: testing the /dev/cciss/c0d0 device names
Date: Mon, 7 Dec 2015 10:29:39 +0100 [thread overview]
Message-ID: <56655183.7000007@dachary.org> (raw)
In-Reply-To: <CAOi1vP-jdgunEx4zt27ETZHbNGTzFxGp-rEbWJViD5OWLpS69A@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1410 bytes --]
Hi,
On 06/12/2015 20:15, Ilya Dryomov wrote:
> On Sat, Dec 5, 2015 at 7:36 PM, Loic Dachary <loic@dachary.org> wrote:
>> Hi Ilya,
>>
>> ceph-disk has special handling for device names like /dev/cciss/c0d1 [1] and it was partially broken when support for device mapper was introduced. Ideally there would be a way to test that support when running the ceph-disk suite [2]. Do you know of a way to do that without having the hardware for which this driver is designed ?
>>
>> Maybe this convention (/dev/cciss/c0d0 being mapped to /sys/block/cciss!c0d0 is not unique to this driver and I could use another to validate the name conversion from X/Y to X!Y and vice versa is handled as it should ?
>
> No, it's not unique. driver core does strreplace(s, '/', '!') at
> register time to work around such block devices. The list includes
> DAC960, aoeblk, cciss, cpqarray, sx8 and probably more, but I don't
> think anything widespread uses this naming scheme. IIRC dm actually
> won't let you name a device with anything that contains a slash.
>
> If you really wanted you could set up aoeblk I guess, but a simple unit
> test should be be more than enough ;)
Thanks for the information. I'll refrain from attempting integration tests and try to make it solid with unit tests :-)
Cheers
>
> Thanks,
>
> Ilya
>
--
Loïc Dachary, Artisan Logiciel Libre
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
prev parent reply other threads:[~2015-12-07 9:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-05 18:36 testing the /dev/cciss/c0d0 device names Loic Dachary
2015-12-06 19:15 ` Ilya Dryomov
2015-12-07 9:29 ` Loic Dachary [this message]
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=56655183.7000007@dachary.org \
--to=loic@dachary.org \
--cc=ceph-devel@vger.kernel.org \
--cc=f.stolte@fz-juelich.de \
--cc=idryomov@gmail.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.