diff options
author | Benjamin Cama <benoar@free.fr> | 2010-04-25 22:39:05 +0200 |
---|---|---|
committer | maximilian attems <max@stro.at> | 2010-07-07 14:06:25 +0200 |
commit | 021a3d610276e41e7f95a7469bdc0ea6205162de (patch) | |
tree | 6c149a5aca396a83d0af0ed67b9582dbd611c743 | |
parent | 529d9d2653e0a7ea8073b4c9c7a15504c44800be (diff) | |
download | klibc-021a3d610276e41e7f95a7469bdc0ea6205162de.tar.gz |
[klibc] fstype: btrfs size endianness fix
Tested OK on both little endian (amd64) and big endian (powerpc).
Signed-off-by: Benjamin Cama <benoar@free.fr>
Signed-off-by: maximilian attems <max@stro.at>
-rw-r--r-- | usr/kinit/fstype/fstype.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/kinit/fstype/fstype.c b/usr/kinit/fstype/fstype.c index d57b937211fff..451d60c211bae 100644 --- a/usr/kinit/fstype/fstype.c +++ b/usr/kinit/fstype/fstype.c @@ -460,7 +460,7 @@ static int btrfs_image(const void *buf, unsigned long long *bytes) (const struct btrfs_super_block *)buf; if (!memcmp(sb->magic, BTRFS_MAGIC, BTRFS_MAGIC_L)) { - *bytes = sb->total_bytes; + *bytes = (unsigned long long)__le64_to_cpu(sb->total_bytes); return 1; } return 0; |