summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-05-01 18:37:45 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2012-05-01 18:37:45 +0200
commit63f3e201a53cb80f2debeddc8da33ddbb0a6f9c0 (patch)
tree49d3adca156fb12252cda979ac70eb266f22ce12 /src
parentdb17f12092b74dec09641ce946f4fb04f37864bf (diff)
Report Linux raid md endianness
Diffstat (limited to 'src')
-rw-r--r--src/md.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/md.c b/src/md.c
index 4340471..02a896e 100644
--- a/src/md.c
+++ b/src/md.c
@@ -247,7 +247,7 @@ static int set_MD_info(const struct mdp_superblock_s *sb, partition_t *partition
{
unsigned int i;
sprintf(partition->fsname,"md%u",(unsigned int)le32(sb->md_minor));
- sprintf(partition->info,"md %u.%u.%u Raid %u: devices",
+ sprintf(partition->info,"md %u.%u.%u L.Endian Raid %u: devices",
(unsigned int)le32(sb->major_version),
(unsigned int)le32(sb->minor_version),
(unsigned int)le32(sb->patch_version),
@@ -273,7 +273,7 @@ static int set_MD_info(const struct mdp_superblock_s *sb, partition_t *partition
{
const struct mdp_superblock_1 *sb1=(const struct mdp_superblock_1 *)sb;
set_part_name(partition,sb1->set_name,32);
- sprintf(partition->info,"md %u.x Raid %u - Array Slot : %lu",
+ sprintf(partition->info,"md %u.x L.Endian Raid %u - Array Slot : %lu",
(unsigned int)le32(sb1->major_version),
(unsigned int)le32(sb1->level),
(long unsigned)le32(sb1->dev_number));
@@ -310,7 +310,7 @@ static int set_MD_info_be(const struct mdp_superblock_s *sb, partition_t *partit
{
unsigned int i;
sprintf(partition->fsname,"md%u",(unsigned int)be32(sb->md_minor));
- sprintf(partition->info,"md %u.%u.%u Raid %u: devices",
+ sprintf(partition->info,"md %u.%u.%u B.Endian Raid %u: devices",
(unsigned int)be32(sb->major_version),
(unsigned int)be32(sb->minor_version),
(unsigned int)be32(sb->patch_version),
@@ -336,7 +336,7 @@ static int set_MD_info_be(const struct mdp_superblock_s *sb, partition_t *partit
{
const struct mdp_superblock_1 *sb1=(const struct mdp_superblock_1 *)sb;
set_part_name(partition,sb1->set_name,32);
- sprintf(partition->info,"md %u.x Raid %u - Array Slot : %lu",
+ sprintf(partition->info,"md %u.x B.Endian Raid %u - Array Slot : %lu",
(unsigned int)be32(sb1->major_version),
(unsigned int)be32(sb1->level),
(long unsigned)be32(sb1->dev_number));