Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/5] [RFC] RAID-level terminology change
@ 2013-03-09 20:31 Hugo Mills
  2013-03-09 20:31 ` [PATCH 1/5] Use nCmSpP format for mkfs Hugo Mills
                   ` (10 more replies)
  0 siblings, 11 replies; 37+ messages in thread
From: Hugo Mills @ 2013-03-09 20:31 UTC (permalink / raw)
  To: linux-btrfs

   Some time ago, and occasionally since, we've discussed altering the
"RAID-n" terminology to change it to an "nCmSpP" format, where n is the
number of copies, m is the number of (data) devices in a stripe per copy,
and p is the number of parity devices in a stripe.

   The current kernel implementation uses as many devices as it can in the
striped modes (RAID-0, -10, -5, -6), and in this implementation, that is
written as "mS" (with a literal "m"). The mS and pP sections are omitted
if the value is 1S or 0P.

   The magic look-up table for old-style / new-style is:

single 		 1C (or omitted, in btrfs fi df output)
RAID-0		 1CmS
RAID-1		 2C
DUP			 2CD
RAID-10		 2CmS
RAID-5		 1CmS1P
RAID-6		 1CmS2P

   The following patch set modifies userspace tools to accept C/S/P formats
in input (mkfs and the restriper). The older formats are also accepted. It
also prints the newer formats by default in btrfs fi df, with an option to
show the older format for the traditionalists.

   I'm not sure whether we should omit the 1C in btrfs fi df output, or
make it explicit even in the "single" case.

   Hugo.

Hugo Mills (5):
  Use nCmSpP format for mkfs
  Move parse_profile to utils.c
  Convert balance filter parser to use common nCmSpP replication-level
    parser
  Change output of btrfs fi df to report new (or old) RAID names
  Add man page description for nCmSpP replication levels

 cmds-balance.c      |   23 +++------
 cmds-filesystem.c   |  135 +++++++++++++++++++++++++++++++++++++++++++--------
 man/btrfs.8.in      |    9 ++++
 man/mkfs.btrfs.8.in |   24 ++++++++-
 mkfs.c              |   35 ++++---------
 utils.c             |   94 +++++++++++++++++++++++++++++++++++
 utils.h             |    1 +
 7 files changed, 258 insertions(+), 63 deletions(-)

-- 
1.7.10.4


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

end of thread, other threads:[~2013-03-27  5:25 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-09 20:31 [PATCH 0/5] [RFC] RAID-level terminology change Hugo Mills
2013-03-09 20:31 ` [PATCH 1/5] Use nCmSpP format for mkfs Hugo Mills
2013-03-09 20:31 ` [PATCH 2/5] Move parse_profile to utils.c Hugo Mills
2013-03-09 20:31 ` [PATCH 3/5] Convert balance filter parser to use common nCmSpP replication-level parser Hugo Mills
2013-03-09 20:31 ` [PATCH 4/5] Change output of btrfs fi df to report new (or old) RAID names Hugo Mills
2013-03-09 20:31 ` [PATCH 5/5] Add man page description for nCmSpP replication levels Hugo Mills
2013-03-10 14:01   ` Goffredo Baroncelli
2013-03-10 17:20     ` Hugo Mills
2013-03-10 17:52       ` Goffredo Baroncelli
2013-03-09 21:38 ` [PATCH 0/5] [RFC] RAID-level terminology change Harald Glatt
     [not found] ` <CAFWF=am4ki529Zez4123gYk3BD+Z9RONRpAK7NZe=skHzcdMiw@mail.gmail.com>
2013-03-09 21:46   ` Hugo Mills
2013-03-09 22:25 ` Roger Binns
2013-03-10  1:44   ` Hugo Mills
2013-03-10  5:41     ` Roger Binns
2013-03-10  6:29       ` Harald Glatt
2013-03-10  6:37         ` Harald Glatt
2013-03-10 11:31           ` Martin Steigerwald
2013-03-10 11:48           ` Roger Binns
2013-03-10 22:04       ` Hugo Mills
2013-03-11  0:21         ` Roger Binns
2013-03-27  4:27           ` Brendan Hide
2013-03-27  5:24             ` Roger Binns
2013-03-10 11:23 ` Martin Steigerwald
2013-03-10 14:11   ` Goffredo Baroncelli
2013-03-10 21:36   ` Hugo Mills
2013-03-10 21:45     ` Harald Glatt
2013-03-10 22:59       ` Goffredo Baroncelli
2013-03-10 22:06         ` Harald Glatt
2013-03-10 23:06   ` Diego Calleja
2013-03-10 15:43 ` Goffredo Baroncelli
2013-03-10 22:24   ` Hugo Mills
2013-03-10 22:42     ` Harald Glatt
2013-03-10 23:40   ` sam tygier
2013-03-10 23:49     ` Hugo Mills
2013-03-11 14:14       ` David Sterba
2013-03-10 23:55 ` sam tygier
2013-03-11  8:56   ` Hugo Mills

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