search for: btrfs_magic_l

Displaying 4 results from an estimated 4 matches for "btrfs_magic_l".

2014 Nov 15
0
[PATCH] BTRFS_MAGIC_N is a 64bit value
...suffix. Signed-off-by: MartinS <ams at ludd.ltu.se> --- diff --git a/core/fs/btrfs/btrfs.h b/core/fs/btrfs/btrfs.h index 1568e4d..8f519a9 100644 --- a/core/fs/btrfs/btrfs.h +++ b/core/fs/btrfs/btrfs.h @@ -32,7 +32,7 @@ typedef u64 __le64; #define BTRFS_MAGIC "_BHRfS_M" #define BTRFS_MAGIC_L 8 -#define BTRFS_MAGIC_N 0x4d5f53665248425f +#define BTRFS_MAGIC_N 0x4d5f53665248425fULL #define BTRFS_SUPER_FLAG_METADUMP (1ULL << 33) -- MartinS
2014 Nov 15
0
core/fs/btrfs/btrfs.h correction
...TRFS_MAGIC_N. It is a 64bit value, so it needs the ULL suffix. diff --git a/core/fs/btrfs/btrfs.h b/core/fs/btrfs/btrfs.h index 1568e4d..8f519a9 100644 --- a/core/fs/btrfs/btrfs.h +++ b/core/fs/btrfs/btrfs.h @@ -32,7 +32,7 @@ typedef u64 __le64; #define BTRFS_MAGIC "_BHRfS_M" #define BTRFS_MAGIC_L 8 -#define BTRFS_MAGIC_N 0x4d5f53665248425f +#define BTRFS_MAGIC_N 0x4d5f53665248425fULL #define BTRFS_SUPER_FLAG_METADUMP (1ULL << 33) -- MartinS
2010 Apr 25
2
[git pull] small fixes, sh4, getruage() README's
....c b/usr/kinit/fstype/fstype.c index d57b937..451d60c 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; commit 30c21662ec3c036aa551dd75375a4d8d7e008ad6 Author: Aurelien Jarno <aurel32 at debian.org> Date: Fri Apr 16 18:17:58 2010 +0200 [klibc] sh4: syscalls...
2010 Jul 07
0
[git pull v2] x86_32, sh4, getrusage()
....c b/usr/kinit/fstype/fstype.c index d57b937..451d60c 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; commit 529d9d2653e0a7ea8073b4c9c7a15504c44800be Author: Aurelien Jarno <aurel32 at debian.org> Date: Fri Apr 16 18:17:58 2010 +0200 [klibc] sh4: syscalls...