linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [mdadm git pull] platform support v2 and other fixes
@ 2008-12-09  1:29 Dan Williams
  2008-12-18  6:07 ` Neil Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Williams @ 2008-12-09  1:29 UTC (permalink / raw)
  To: NeilBrown; +Cc: linux-raid

Hi Neil,

So here is a second attempt at platform support.  I asked around about
scanning for the option-rom and the solution I settled on was to port
the kernel's "Adapter ROM" detection code to userspace (probe_roms.c
from arch/x86/kernel/probe_roms_32.c).  This at least makes mdadm bug
compatible with the kernel, and avoids scanning the entire region
indiscriminately.

Create support got two major fixes:
1/ calculating a common start offset by merging get_extents() results
2/ explicitly passing the target member disks in the metadata update
message

Despite the platform support and these fixes I am still investigating
whether mdadm can create configurations that the option-rom does not
understand.  Stay tuned...

Lastly I added a regression test to stress the overlapping create case,
it adds some infrastructure for tests to define their own environment.

As always, please have a look.

Thanks,
Dan

The following changes since commit 5a52a340905d1a9d0a268ce2621f55db6b3fd423:
  NeilBrown (1):
        Merge branch 'master' into devel-3.0

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/djbw/mdadm.git devel

Dan Williams (17):
      fix ->metadata_version checking in Wait()
      wait_for container assembly
      imsm: fix setting of device size for raid1
      imsm: correct start offset handling at create time
      imsm: pass disk info in create message
      port arch/x86/kernel/probe_roms_32.c for use in 'platform' support
      imsm: detect option-rom capabilities
      imsm: sysfs support routines for determining device connectivity
      imsm: validate arrays being created against firmware capabilities
      introduce --detail-platform to display platform raid capabilities
      imsm: provide a detail_platform method
      imsm: convert dev_tbl to devlist
      imsm: reverse swapped arguments to posix_memalign in imsm_prepare_update
      imsm: don't take chunk_size into account for raid1
      test: enable per-test custom environment setup/teardown
      workaround a hald interaction and quiet cleanup
      imsm: test overlapping creates

 Assemble.c               |    1 +
 Detail.c                 |   41 +++
 Makefile                 |   13 +-
 Monitor.c                |    2 +-
 ReadMe.c                 |    2 +
 mdadm.8                  |   35 ++-
 mdadm.c                  |    4 +
 mdadm.h                  |    6 +
 platform-intel.c         |  239 +++++++++++++
 platform-intel.h         |  129 +++++++
 probe_roms.c             |  279 +++++++++++++++
 probe_roms.h             |   24 ++
 super-ddf.c              |    1 +
 super-intel.c            |  845 ++++++++++++++++++++++++++++++++++++++++------
 super0.c                 |    1 +
 super1.c                 |    1 +
 test                     |   21 ++-
 tests/08imsm-overlap     |   25 ++
 tests/env-08imsm-overlap |    1 +
 tests/env-imsm           |   68 ++++
 20 files changed, 1620 insertions(+), 118 deletions(-)
 create mode 100644 platform-intel.c
 create mode 100644 platform-intel.h
 create mode 100644 probe_roms.c
 create mode 100644 probe_roms.h
 create mode 100644 tests/08imsm-overlap
 create mode 120000 tests/env-08imsm-overlap
 create mode 100644 tests/env-imsm



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [mdadm git pull] platform support v2 and other fixes
  2008-12-09  1:29 [mdadm git pull] platform support v2 and other fixes Dan Williams
@ 2008-12-18  6:07 ` Neil Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Neil Brown @ 2008-12-18  6:07 UTC (permalink / raw)
  To: Dan Williams; +Cc: NeilBrown, linux-raid

On Monday December 8, dan.j.williams@intel.com wrote:
> Hi Neil,
> 
> So here is a second attempt at platform support.  I asked around about
> scanning for the option-rom and the solution I settled on was to port
> the kernel's "Adapter ROM" detection code to userspace (probe_roms.c
> from arch/x86/kernel/probe_roms_32.c).  This at least makes mdadm bug
> compatible with the kernel, and avoids scanning the entire region
> indiscriminately.
> 
> Create support got two major fixes:
> 1/ calculating a common start offset by merging get_extents() results
> 2/ explicitly passing the target member disks in the metadata update
> message
> 
> Despite the platform support and these fixes I am still investigating
> whether mdadm can create configurations that the option-rom does not
> understand.  Stay tuned...
> 
> Lastly I added a regression test to stress the overlapping create case,
> it adds some infrastructure for tests to define their own environment.
> 
> As always, please have a look.

Thanks.
I confess I haven't read all of the details, but I've looked at the
"interesting" parts (for some value of 'interesting') and they seem to
make sense.
Pulled and pushed.

Thanks.
NeilBrown

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-12-18  6:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-09  1:29 [mdadm git pull] platform support v2 and other fixes Dan Williams
2008-12-18  6:07 ` Neil Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).