OSDN Git Service

blkid: Fix MD 0.90 superblock detection on little endian systems
authorSergey Vlasov <vsu@altlinux.ru>
Tue, 10 Apr 2007 15:59:46 +0000 (11:59 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 10 Apr 2007 15:59:46 +0000 (11:59 -0400)
commit6b8be16e3ac9c5fc350ea25d864df7bb6e2f6f4c
treeb9631a4087d97856f0ddd8d33b2e4861bec56b91
parent62fc8cef4532570f07c4c5aa522f5a31f5b99d3a
blkid: Fix MD 0.90 superblock detection on little endian systems

MD 0.90 superblock format is host endian - need to check for bith big
endian and little endian magic.  Without this change MD components
created on little endian systems were not detected as such, which
could then lead to false positives when detecting filesystems.

Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
lib/blkid/probe.c