Mailinglist Archive: yast-devel (36 mails)

< Previous Next >
[yast-devel] Change to Storage Target Map
  • From: Arvin Schnell <aschnell@xxxxxxx>
  • Date: Thu, 7 May 2009 12:00:43 +0200
  • Message-id: <20090507100043.GA29203@xxxxxxx>

Hi,

I would like to make a change to the storage target map.

Currently hard disks used by dm multipath or dm raid can contain
partitions in the target map. I want to remove those partitions
entries in from the target map:

So currently:

"/dev/mapper/isw_cfcdifeiii_test" : $[
"devices" : [
"/dev/sdc",
"/dev/sdd"
],
"partitions" : [
$[
"detected_fs" : `ext3,
"device" : "/dev/mapper/isw_cfcdifeiii_test_part1",
"fsid" : 253,
...


"/dev/sdc" : $[
"partitions" : [
$[
"detected_fs" : `ext3,
"device" : "/dev/sdc1",
"fsid" : 253,
...
"used_by" : "isw_cfcdifeiii_test",
"used_by_device" : "/dev/mapper/isw_cfcdifeiii_test",
"used_by_type" : `UB_DMRAID,

...

will become:

"/dev/mapper/isw_cfcdifeiii_test" : $[
"devices" : [
"/dev/sdc",
"/dev/sdd"
],
"partitions" : [
$[
"detected_fs" : `ext3,
"device" : "/dev/mapper/isw_cfcdifeiii_test_part1",
"fsid" : 253,
...


"/dev/sdc" : $[
"partitions" : [
// HERE IS THE DIFFERENCE
]
...
"used_by" : "isw_cfcdifeiii_test",
"used_by_device" : "/dev/mapper/isw_cfcdifeiii_test",
"used_by_type" : `UB_DMRAID,

The change shouldn't affect any code. Those partitions entries
are unreliable and cannot be used anyway. If you see a problem
please say so now.

The motivation behind this is simple: In the future libstorage
can be changed to not even probe partitions on hard disks used by
dm multipath or dm raid. That probing has caused bugs in the
past.

Regards,
Arvin

--
Arvin Schnell, <aschnell@xxxxxxx>
Senior Software Engineer, Research & Development
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG N├╝rnberg)
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages