Linux RAID subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/7] mdadm support for caching layer in raid 5/6
@ 2015-05-14  6:43 Song Liu
  2015-05-14  6:43 ` [PATCH 1/7] Show device as cache in --detail Song Liu
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Song Liu @ 2015-05-14  6:43 UTC (permalink / raw)
  To: linux-raid; +Cc: shli, dan.j.williams, neilb, hch, Song Liu

Hi, 

These are mdadm patches to support cache layer in raid 5/6. Shaohua
has sent the kernel patch earlier with subject "a caching layer 
for raid 5/6". 

These patches add write cache support for the following commands:

  mdadm --detail
  mdadm --create
  mdadm --assemble
  mdadm --incremental
  mdadm --examine
  mdadm --zero-super

Cache device is assigned with dev_role 0xFFFD (where 0xFFFF is for 
spare and 0xFFFE is for failed). Note that there is compatibility
issue that older mdadm will show cache device as spare in --detail:

    Number   Major   Minor   RaidDevice State
       0       8       32        0      active sync   /dev/sdc
       1       8       48        1      active sync   /dev/sdd
       2       8       64        2      active sync   /dev/sde
       3       8       80        3      active sync   /dev/sdf

       4       8       17        -      spare   /dev/sdb1

Also, older mdadm will show cache device as "Active device 65533" 
in --examine: 

   Device Role : Active device 65533
   Array State : AAAA ('A' == active, '.' == missing, 'R' == replacing)


Song Liu (7):
  Show device as cache in --detail
  Enable create array with write cache (--write-cache DEVICE).
  Create write-cache superblock in mdadm --create
  Assemble array with writecache
  Check write cache in incremental
  Zero write-cache superblock in --zero-super
  Add information about write-cache superblock to --examine

 Assemble.c    |  52 +++++++++++++----
 Create.c      |  21 +++++--
 Detail.c      |   3 +-
 Examine.c     |  29 +++++++++-
 Incremental.c |  37 ++++++++++--
 Kill.c        |  19 ++++++
 ReadMe.c      |   1 +
 md_p.h        |  74 ++++++++++++++++++++++++
 mdadm.c       |  19 ++++++
 mdadm.h       |  11 +++-
 super1.c      | 182 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 util.c        |   3 +-
 12 files changed, 422 insertions(+), 29 deletions(-)

-- 
1.8.1


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

end of thread, other threads:[~2015-05-14 18:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-14  6:43 [PATCH 0/7] mdadm support for caching layer in raid 5/6 Song Liu
2015-05-14  6:43 ` [PATCH 1/7] Show device as cache in --detail Song Liu
2015-05-14  6:43 ` [PATCH 2/7] Enable create array with write cache (--write-cache DEVICE) Song Liu
2015-05-14  6:43 ` [PATCH 3/7] Create write-cache superblock in mdadm --create Song Liu
2015-05-14  6:43 ` [PATCH 4/7] Assemble array with writecache Song Liu
2015-05-14  6:43 ` [PATCH 5/7] Check write cache in incremental Song Liu
2015-05-14  6:43 ` [PATCH 6/7] Zero write-cache superblock in --zero-super Song Liu
2015-05-14  6:43 ` [PATCH 7/7] Add information about write-cache superblock to --examine Song Liu
     [not found] ` <14d521c83b0.276a.cf392d89e21755b689a9b33faa59c92f@cse.yorku.ca>
2015-05-14 11:30   ` [PATCH 0/7] mdadm support for caching layer in raid 5/6 Jason Keltz
2015-05-14 18:01     ` Song Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox